Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
13
node_modules/define-properties/.editorconfig
generated
vendored
Normal file
13
node_modules/define-properties/.editorconfig
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab;
|
||||
insert_final_newline = true;
|
||||
quote_type = auto;
|
||||
space_after_anonymous_functions = true;
|
||||
space_after_control_statements = true;
|
||||
spaces_around_operators = true;
|
||||
trim_trailing_whitespace = true;
|
||||
spaces_in_brackets = false;
|
||||
end_of_line = lf;
|
||||
|
19
node_modules/define-properties/.eslintrc
generated
vendored
Normal file
19
node_modules/define-properties/.eslintrc
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"id-length": [2, { "min": 1, "max": 35 }],
|
||||
"max-params": [2, 4],
|
||||
},
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": "test/**",
|
||||
"rules": {
|
||||
"max-lines-per-function": 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
12
node_modules/define-properties/.github/FUNDING.yml
generated
vendored
Normal file
12
node_modules/define-properties/.github/FUNDING.yml
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/define-properties
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
9
node_modules/define-properties/.nycrc
generated
vendored
Normal file
9
node_modules/define-properties/.nycrc
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"all": true,
|
||||
"check-coverage": false,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"test"
|
||||
]
|
||||
}
|
91
node_modules/define-properties/CHANGELOG.md
generated
vendored
Normal file
91
node_modules/define-properties/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,91 @@
|
|||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.2.1](https://github.com/ljharb/define-properties/compare/v1.2.0...v1.2.1) - 2023-09-12
|
||||
|
||||
### Commits
|
||||
|
||||
- [Refactor] use `define-data-property` [`e7782a7`](https://github.com/ljharb/define-properties/commit/e7782a7480a62f8b6e141b49371e6de4df176c97)
|
||||
- [actions] use reusable rebase action [`cd249c3`](https://github.com/ljharb/define-properties/commit/cd249c3920607bc8eeb7c0cd5b672b810983cac5)
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`8205f97`](https://github.com/ljharb/define-properties/commit/8205f9734a4da8ee5b3b29798788567a09b330e8)
|
||||
|
||||
## [v1.2.0](https://github.com/ljharb/define-properties/compare/v1.1.4...v1.2.0) - 2023-02-10
|
||||
|
||||
### Commits
|
||||
|
||||
- [New] if the predicate is boolean `true`, it compares the existing value with `===` as the predicate [`d8dd6fc`](https://github.com/ljharb/define-properties/commit/d8dd6fca40d7c5878a4b643b91e66ae5a513a194)
|
||||
- [meta] add `auto-changelog` [`7ebe2b0`](https://github.com/ljharb/define-properties/commit/7ebe2b0a0f90e62b842942cd45e86864fe75d9f6)
|
||||
- [meta] use `npmignore` to autogenerate an npmignore file [`647478a`](https://github.com/ljharb/define-properties/commit/647478a8401fbf053fb633c0a3a7c982da6bad74)
|
||||
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e620d70`](https://github.com/ljharb/define-properties/commit/e620d707d2e1118a38796f22a862200eb0a53fff)
|
||||
- [Dev Deps] update `aud`, `tape` [`f1e5072`](https://github.com/ljharb/define-properties/commit/f1e507225c2551a99ed4fe40d3fe71b0f44acf88)
|
||||
- [actions] update checkout action [`628b3af`](https://github.com/ljharb/define-properties/commit/628b3af5c74b8f0963296d811a8f6fa657baf964)
|
||||
|
||||
<!-- auto-changelog-above -->
|
||||
|
||||
1.1.4 / 2022-04-14
|
||||
=================
|
||||
* [Refactor] use `has-property-descriptors`
|
||||
* [readme] add github actions/codecov badges
|
||||
* [Docs] fix header parsing; remove testling
|
||||
* [Deps] update `object-keys`
|
||||
* [meta] use `prepublishOnly` script for npm 7+
|
||||
* [meta] add `funding` field; create FUNDING.yml
|
||||
* [actions] add "Allow Edits" workflow; automatic rebasing / merge commit blocking
|
||||
* [actions] reuse common workflows
|
||||
* [actions] update codecov uploader
|
||||
* [actions] use `node/install` instead of `node/run`; use `codecov` action
|
||||
* [Tests] migrate tests to Github Actions
|
||||
* [Tests] run `nyc` on all tests; use `tape` runner
|
||||
* [Tests] use shared travis-ci config
|
||||
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
|
||||
* [Tests] remove `jscs`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape`; add `aud`, `safe-publish-latest`
|
||||
|
||||
1.1.3 / 2018-08-14
|
||||
=================
|
||||
* [Refactor] use a for loop instead of `foreach` to make for smaller bundle sizes
|
||||
* [Robustness] cache `Array.prototype.concat` and `Object.defineProperty`
|
||||
* [Deps] update `object-keys`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`, `tape`, `jscs`; remove unused eccheck script + dep
|
||||
* [Tests] use pretest/posttest for linting/security
|
||||
* [Tests] fix npm upgrades on older nodes
|
||||
|
||||
1.1.2 / 2015-10-14
|
||||
=================
|
||||
* [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG
|
||||
* [Deps] Update `object-keys`
|
||||
* [Dev Deps] update `jscs`, `tape`, `eslint`, `@ljharb/eslint-config`, `nsp`
|
||||
* [Tests] up to `io.js` `v3.3`, `node` `v4.2`
|
||||
|
||||
1.1.1 / 2015-07-21
|
||||
=================
|
||||
* [Deps] Update `object-keys`
|
||||
* [Dev Deps] Update `tape`, `eslint`
|
||||
* [Tests] Test on `io.js` `v2.4`
|
||||
|
||||
1.1.0 / 2015-07-01
|
||||
=================
|
||||
* [New] Add support for symbol-valued properties.
|
||||
* [Dev Deps] Update `nsp`, `eslint`
|
||||
* [Tests] Test up to `io.js` `v2.3`
|
||||
|
||||
1.0.3 / 2015-05-30
|
||||
=================
|
||||
* Using a more reliable check for supported property descriptors.
|
||||
|
||||
1.0.2 / 2015-05-23
|
||||
=================
|
||||
* Test up to `io.js` `v2.0`
|
||||
* Update `tape`, `jscs`, `nsp`, `eslint`, `object-keys`, `editorconfig-tools`, `covert`
|
||||
|
||||
1.0.1 / 2015-01-06
|
||||
=================
|
||||
* Update `object-keys` to fix ES3 support
|
||||
|
||||
1.0.0 / 2015-01-04
|
||||
=================
|
||||
* v1.0.0
|
21
node_modules/define-properties/LICENSE
generated
vendored
Normal file
21
node_modules/define-properties/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (C) 2015 Jordan Harband
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
84
node_modules/define-properties/README.md
generated
vendored
Normal file
84
node_modules/define-properties/README.md
generated
vendored
Normal file
|
@ -0,0 +1,84 @@
|
|||
# define-properties <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
||||
|
||||
[![github actions][actions-image]][actions-url]
|
||||
[![coverage][codecov-image]][codecov-url]
|
||||
[![dependency status][deps-svg]][deps-url]
|
||||
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][npm-badge-png]][package-url]
|
||||
|
||||
Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.
|
||||
Existing properties are not overridden. Accepts a map of property names to a predicate that, when true, force-overrides.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var define = require('define-properties');
|
||||
var assert = require('assert');
|
||||
|
||||
var obj = define({ a: 1, b: 2 }, {
|
||||
a: 10,
|
||||
b: 20,
|
||||
c: 30
|
||||
});
|
||||
assert(obj.a === 1);
|
||||
assert(obj.b === 2);
|
||||
assert(obj.c === 30);
|
||||
if (define.supportsDescriptors) {
|
||||
assert.deepEqual(Object.keys(obj), ['a', 'b']);
|
||||
assert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'c'), {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: 30,
|
||||
writable: false
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
Then, with predicates:
|
||||
```js
|
||||
var define = require('define-properties');
|
||||
var assert = require('assert');
|
||||
|
||||
var obj = define({ a: 1, b: 2, c: 3 }, {
|
||||
a: 10,
|
||||
b: 20,
|
||||
c: 30
|
||||
}, {
|
||||
a: function () { return false; },
|
||||
b: function () { return true; }
|
||||
});
|
||||
assert(obj.a === 1);
|
||||
assert(obj.b === 20);
|
||||
assert(obj.c === 3);
|
||||
if (define.supportsDescriptors) {
|
||||
assert.deepEqual(Object.keys(obj), ['a', 'c']);
|
||||
assert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'b'), {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: 20,
|
||||
writable: false
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[package-url]: https://npmjs.org/package/define-properties
|
||||
[npm-version-svg]: https://versionbadg.es/ljharb/define-properties.svg
|
||||
[deps-svg]: https://david-dm.org/ljharb/define-properties.svg
|
||||
[deps-url]: https://david-dm.org/ljharb/define-properties
|
||||
[dev-deps-svg]: https://david-dm.org/ljharb/define-properties/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/ljharb/define-properties#info=devDependencies
|
||||
[npm-badge-png]: https://nodei.co/npm/define-properties.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/define-properties.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/define-properties.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=define-properties
|
||||
[codecov-image]: https://codecov.io/gh/ljharb/define-properties/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/ljharb/define-properties/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-properties
|
||||
[actions-url]: https://github.com/ljharb/define-properties/actions
|
47
node_modules/define-properties/index.js
generated
vendored
Normal file
47
node_modules/define-properties/index.js
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
'use strict';
|
||||
|
||||
var keys = require('object-keys');
|
||||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
||||
|
||||
var toStr = Object.prototype.toString;
|
||||
var concat = Array.prototype.concat;
|
||||
var defineDataProperty = require('define-data-property');
|
||||
|
||||
var isFunction = function (fn) {
|
||||
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
|
||||
};
|
||||
|
||||
var supportsDescriptors = require('has-property-descriptors')();
|
||||
|
||||
var defineProperty = function (object, name, value, predicate) {
|
||||
if (name in object) {
|
||||
if (predicate === true) {
|
||||
if (object[name] === value) {
|
||||
return;
|
||||
}
|
||||
} else if (!isFunction(predicate) || !predicate()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (supportsDescriptors) {
|
||||
defineDataProperty(object, name, value, true);
|
||||
} else {
|
||||
defineDataProperty(object, name, value);
|
||||
}
|
||||
};
|
||||
|
||||
var defineProperties = function (object, map) {
|
||||
var predicates = arguments.length > 2 ? arguments[2] : {};
|
||||
var props = keys(map);
|
||||
if (hasSymbols) {
|
||||
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
||||
}
|
||||
for (var i = 0; i < props.length; i += 1) {
|
||||
defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
|
||||
}
|
||||
};
|
||||
|
||||
defineProperties.supportsDescriptors = !!supportsDescriptors;
|
||||
|
||||
module.exports = defineProperties;
|
88
node_modules/define-properties/package.json
generated
vendored
Normal file
88
node_modules/define-properties/package.json
generated
vendored
Normal file
|
@ -0,0 +1,88 @@
|
|||
{
|
||||
"name": "define-properties",
|
||||
"version": "1.2.1",
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"description": "Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only",
|
||||
"posttest": "aud --production",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"lint": "eslint --ext=js,mjs .",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/ljharb/define-properties.git"
|
||||
},
|
||||
"keywords": [
|
||||
"Object.defineProperty",
|
||||
"Object.defineProperties",
|
||||
"object",
|
||||
"property descriptor",
|
||||
"descriptor",
|
||||
"define",
|
||||
"ES5"
|
||||
],
|
||||
"dependencies": {
|
||||
"define-data-property": "^1.0.1",
|
||||
"has-property-descriptors": "^1.0.0",
|
||||
"object-keys": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^21.1.0",
|
||||
"aud": "^2.0.3",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"eslint": "=8.8.0",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.0",
|
||||
"nyc": "^10.3.2",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.6.6"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false,
|
||||
"hideCredit": true,
|
||||
"startingVersion": "1.1.5"
|
||||
},
|
||||
"publishConfig": {
|
||||
"ignore": [
|
||||
".github/workflows",
|
||||
"test/"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue