initial commit
This commit is contained in:
20
node_modules/object.values/.editorconfig
generated
vendored
Normal file
20
node_modules/object.values/.editorconfig
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
max_line_length = 150
|
||||
|
||||
[CHANGELOG.md]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.json]
|
||||
max_line_length = off
|
||||
|
||||
[Makefile]
|
||||
max_line_length = off
|
||||
11
node_modules/object.values/.eslintrc
generated
vendored
Normal file
11
node_modules/object.values/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"new-cap": [2, { "capIsNewExceptions": ["RequireObjectCoercible"] }],
|
||||
"no-magic-numbers": [0],
|
||||
"no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"]
|
||||
}
|
||||
}
|
||||
269
node_modules/object.values/.travis.yml
generated
vendored
Normal file
269
node_modules/object.values/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,269 @@
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
node_js:
|
||||
- "11.6"
|
||||
- "10.15"
|
||||
- "9.11"
|
||||
- "8.15"
|
||||
- "7.10"
|
||||
- "6.16"
|
||||
- "5.12"
|
||||
- "4.9"
|
||||
- "iojs-v3.3"
|
||||
- "iojs-v2.5"
|
||||
- "iojs-v1.8"
|
||||
- "0.12"
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
before_install:
|
||||
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
|
||||
- 'nvm install-latest-npm'
|
||||
install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
||||
script:
|
||||
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
|
||||
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
|
||||
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
|
||||
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
|
||||
sudo: false
|
||||
env:
|
||||
- TEST=true
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- node_js: "lts/*"
|
||||
env: PRETEST=true
|
||||
- node_js: "lts/*"
|
||||
env: POSTTEST=true
|
||||
- node_js: "11.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.15"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
allow_failures:
|
||||
- os: osx
|
||||
- env: TEST=true ALLOW_FAILURE=true
|
||||
33
node_modules/object.values/CHANGELOG.md
generated
vendored
Normal file
33
node_modules/object.values/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
1.1.0 / 2019-01-01
|
||||
=================
|
||||
* [New] add `auto` entry point`
|
||||
* [Deps] update `define-properties`, `es-abstract`, `function-bind`, `has`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape`
|
||||
* [Tests] up to `node` `v11.6`, `v10.15`, `v9.11`, `v8.15`, `v7.10`, `v6.16`, `v4.9`; use `nvm install-latest-npm`
|
||||
* [Tests] use `npm audit` instead of `nsp`
|
||||
* [Tests] remove `jscs`
|
||||
|
||||
1.0.4 / 2016-12-04
|
||||
=================
|
||||
* [Docs] update to reflect ES2017 inclusion
|
||||
* [Deps] update `es-abstract`, `function-bind`, `define-properties`
|
||||
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`
|
||||
* [Tests] up to `node` `v7.2`, `v6.9`, `v4.6`; improve test matrix.
|
||||
|
||||
1.0.3 / 2015-10-06
|
||||
=================
|
||||
* [Fix] Not-yet-visited keys made non-enumerable on a `[[Get]]` must not show up in the output (https://github.com/ljharb/proposal-object-values-entries/issues/5)
|
||||
|
||||
1.0.2 / 2015-09-25
|
||||
=================
|
||||
* [Fix] Not-yet-visited keys deleted on a `[[Get]]` must not show up in the output (#1)
|
||||
|
||||
1.0.1 / 2015-09-21
|
||||
=================
|
||||
* [Docs] update version badge URL
|
||||
* [Tests] on `io.js` `v3.3`, up to `node` `v4.1`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`
|
||||
|
||||
1.0.0 / 2015-09-02
|
||||
=================
|
||||
* v1.0.0
|
||||
22
node_modules/object.values/LICENSE
generated
vendored
Normal file
22
node_modules/object.values/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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.
|
||||
|
||||
59
node_modules/object.values/README.md
generated
vendored
Normal file
59
node_modules/object.values/README.md
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
# object.values <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
||||
|
||||
[![Build Status][travis-svg]][travis-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]
|
||||
|
||||
[![browser support][testling-svg]][testling-url]
|
||||
|
||||
An ES2017 spec-compliant `Object.values` shim. Invoke its "shim" method to shim `Object.values` if it is unavailable or noncompliant.
|
||||
|
||||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.github.io/ecma262/#sec-object.values).
|
||||
|
||||
Most common usage:
|
||||
```js
|
||||
var assert = require('assert');
|
||||
var values = require('object.values');
|
||||
|
||||
var obj = { a: 1, b: 2, c: 3 };
|
||||
var expected = [1, 2, 3];
|
||||
|
||||
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
|
||||
// for environments with Symbol support
|
||||
var sym = Symbol();
|
||||
obj[sym] = 4;
|
||||
obj.d = sym;
|
||||
expected.push(sym);
|
||||
}
|
||||
|
||||
assert.deepEqual(values(obj), expected);
|
||||
|
||||
if (!Object.values) {
|
||||
values.shim();
|
||||
}
|
||||
|
||||
assert.deepEqual(Object.values(obj), expected);
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[package-url]: https://npmjs.com/package/object.values
|
||||
[npm-version-svg]: http://versionbadg.es/es-shims/Object.values.svg
|
||||
[travis-svg]: https://travis-ci.org/es-shims/Object.values.svg
|
||||
[travis-url]: https://travis-ci.org/es-shims/Object.values
|
||||
[deps-svg]: https://david-dm.org/es-shims/Object.values.svg
|
||||
[deps-url]: https://david-dm.org/es-shims/Object.values
|
||||
[dev-deps-svg]: https://david-dm.org/es-shims/Object.values/dev-status.svg
|
||||
[dev-deps-url]: https://david-dm.org/es-shims/Object.values#info=devDependencies
|
||||
[testling-svg]: https://ci.testling.com/es-shims/Object.values.png
|
||||
[testling-url]: https://ci.testling.com/es-shims/Object.values
|
||||
[npm-badge-png]: https://nodei.co/npm/object.values.png?downloads=true&stars=true
|
||||
[license-image]: http://img.shields.io/npm/l/object.values.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: http://img.shields.io/npm/dm/object.values.svg
|
||||
[downloads-url]: http://npm-stat.com/charts.html?package=object.values
|
||||
3
node_modules/object.values/auto.js
generated
vendored
Normal file
3
node_modules/object.values/auto.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
require('./shim')();
|
||||
17
node_modules/object.values/implementation.js
generated
vendored
Normal file
17
node_modules/object.values/implementation.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var ES = require('es-abstract/es7');
|
||||
var has = require('has');
|
||||
var bind = require('function-bind');
|
||||
var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);
|
||||
|
||||
module.exports = function values(O) {
|
||||
var obj = ES.RequireObjectCoercible(O);
|
||||
var vals = [];
|
||||
for (var key in obj) {
|
||||
if (has(obj, key) && isEnumerable(obj, key)) {
|
||||
vals.push(obj[key]);
|
||||
}
|
||||
}
|
||||
return vals;
|
||||
};
|
||||
17
node_modules/object.values/index.js
generated
vendored
Normal file
17
node_modules/object.values/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var define = require('define-properties');
|
||||
|
||||
var implementation = require('./implementation');
|
||||
var getPolyfill = require('./polyfill');
|
||||
var shim = require('./shim');
|
||||
|
||||
var polyfill = getPolyfill();
|
||||
|
||||
define(polyfill, {
|
||||
getPolyfill: getPolyfill,
|
||||
implementation: implementation,
|
||||
shim: shim
|
||||
});
|
||||
|
||||
module.exports = polyfill;
|
||||
108
node_modules/object.values/package.json
generated
vendored
Normal file
108
node_modules/object.values/package.json
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"_from": "object.values@^1.1.0",
|
||||
"_id": "object.values@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg==",
|
||||
"_location": "/object.values",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "object.values@^1.1.0",
|
||||
"name": "object.values",
|
||||
"escapedName": "object.values",
|
||||
"rawSpec": "^1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/svgo"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.0.tgz",
|
||||
"_shasum": "bf6810ef5da3e5325790eaaa2be213ea84624da9",
|
||||
"_spec": "object.values@^1.1.0",
|
||||
"_where": "D:\\Air66 Files\\dev_sites\\www.airurl.dev.cc\\user\\plugins\\air66Theme\\node_modules\\svgo",
|
||||
"author": {
|
||||
"name": "Jordan Harband"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/es-shims/Object.values/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"define-properties": "^1.1.3",
|
||||
"es-abstract": "^1.12.0",
|
||||
"function-bind": "^1.1.1",
|
||||
"has": "^1.0.3"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "ES2017 spec-compliant Object.values shim.",
|
||||
"devDependencies": {
|
||||
"@es-shims/api": "^2.1.2",
|
||||
"@ljharb/eslint-config": "^13.1.1",
|
||||
"array-map": "^0.0.0",
|
||||
"covert": "^1.1.1",
|
||||
"eslint": "^5.11.1",
|
||||
"object-keys": "^1.0.12",
|
||||
"tape": "^4.9.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"homepage": "https://github.com/es-shims/Object.values#readme",
|
||||
"keywords": [
|
||||
"Object.values",
|
||||
"Object.keys",
|
||||
"Object.entries",
|
||||
"values",
|
||||
"ES7",
|
||||
"ES8",
|
||||
"ES2017",
|
||||
"shim",
|
||||
"object",
|
||||
"keys",
|
||||
"entries",
|
||||
"polyfill",
|
||||
"es-shim API"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "object.values",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/es-shims/Object.values.git"
|
||||
},
|
||||
"scripts": {
|
||||
"audit": "npm audit",
|
||||
"coverage": "covert test/*.js",
|
||||
"coverage-quiet": "covert test/*.js --quiet",
|
||||
"lint": "eslint .",
|
||||
"postaudit": "rm package-lock.json",
|
||||
"posttest": "npm run audit",
|
||||
"preaudit": "npm install --package-lock --package-lock-only",
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run --silent tests-only",
|
||||
"test:module": "node test/index.js",
|
||||
"test:shimmed": "node test/shimmed.js",
|
||||
"tests-only": "es-shim-api && npm run --silent test:shimmed && npm run --silent test:module"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/9.0..latest",
|
||||
"firefox/4.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/11.6..latest",
|
||||
"opera/next",
|
||||
"safari/5.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"version": "1.1.0"
|
||||
}
|
||||
7
node_modules/object.values/polyfill.js
generated
vendored
Normal file
7
node_modules/object.values/polyfill.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var implementation = require('./implementation');
|
||||
|
||||
module.exports = function getPolyfill() {
|
||||
return typeof Object.values === 'function' ? Object.values : implementation;
|
||||
};
|
||||
14
node_modules/object.values/shim.js
generated
vendored
Normal file
14
node_modules/object.values/shim.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
var getPolyfill = require('./polyfill');
|
||||
var define = require('define-properties');
|
||||
|
||||
module.exports = function shimValues() {
|
||||
var polyfill = getPolyfill();
|
||||
define(Object, { values: polyfill }, {
|
||||
values: function testValues() {
|
||||
return Object.values !== polyfill;
|
||||
}
|
||||
});
|
||||
return polyfill;
|
||||
};
|
||||
11
node_modules/object.values/test/.eslintrc
generated
vendored
Normal file
11
node_modules/object.values/test/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"rules": {
|
||||
"array-bracket-newline": 0,
|
||||
"max-lines-per-function": 0,
|
||||
"max-nested-callbacks": [2, 3],
|
||||
"max-statements": [2, 12],
|
||||
"max-statements-per-line": [2, { "max": 2 }],
|
||||
"no-invalid-this": [1],
|
||||
"object-curly-newline": 0,
|
||||
}
|
||||
}
|
||||
17
node_modules/object.values/test/index.js
generated
vendored
Normal file
17
node_modules/object.values/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var values = require('../');
|
||||
var test = require('tape');
|
||||
var runTests = require('./tests');
|
||||
|
||||
test('as a function', function (t) {
|
||||
t.test('bad array/this value', function (st) {
|
||||
st['throws'](function () { values(undefined); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { values(null); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
runTests(values, t);
|
||||
|
||||
t.end();
|
||||
});
|
||||
36
node_modules/object.values/test/shimmed.js
generated
vendored
Normal file
36
node_modules/object.values/test/shimmed.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
'use strict';
|
||||
|
||||
var values = require('../');
|
||||
values.shim();
|
||||
|
||||
var test = require('tape');
|
||||
var defineProperties = require('define-properties');
|
||||
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
var functionsHaveNames = function f() {}.name === 'f';
|
||||
|
||||
var runTests = require('./tests');
|
||||
|
||||
test('shimmed', function (t) {
|
||||
t.equal(Object.values.length, 1, 'Object.values has a length of 1');
|
||||
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
|
||||
st.equal(Object.values.name, 'values', 'Object.values has name "values"');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
|
||||
et.equal(false, isEnumerable.call(Object, 'values'), 'Object.values is not enumerable');
|
||||
et.end();
|
||||
});
|
||||
|
||||
var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
|
||||
|
||||
t.test('bad object value', { skip: !supportsStrictMode }, function (st) {
|
||||
st['throws'](function () { return Object.values(undefined); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { return Object.values(null); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
runTests(Object.values, t);
|
||||
|
||||
t.end();
|
||||
});
|
||||
84
node_modules/object.values/test/tests.js
generated
vendored
Normal file
84
node_modules/object.values/test/tests.js
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
'use strict';
|
||||
|
||||
/* global Symbol */
|
||||
|
||||
var keys = require('object-keys');
|
||||
var map = require('array-map');
|
||||
var define = require('define-properties');
|
||||
|
||||
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
||||
|
||||
module.exports = function (values, t) {
|
||||
var a = {};
|
||||
var b = {};
|
||||
var c = {};
|
||||
var obj = { a: a, b: b, c: c };
|
||||
|
||||
t.deepEqual(values(obj), [a, b, c], 'basic support');
|
||||
t.deepEqual(values({ a: a, b: a, c: c }), [a, a, c], 'duplicate values are included');
|
||||
|
||||
t.test('values are in the same order as keys', function (st) {
|
||||
var object = { a: a, b: b };
|
||||
object[0] = 3;
|
||||
object.c = c;
|
||||
object[1] = 4;
|
||||
delete object[0];
|
||||
var objKeys = keys(object);
|
||||
var objValues = map(objKeys, function (key) {
|
||||
return object[key];
|
||||
});
|
||||
st.deepEqual(values(object), objValues, 'values match key order');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('non-enumerable properties are omitted', { skip: !Object.defineProperty }, function (st) {
|
||||
var object = { a: a, b: b };
|
||||
Object.defineProperty(object, 'c', { enumerable: false, value: c });
|
||||
st.deepEqual(values(object), [a, b], 'non-enumerable property‘s value is omitted');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('inherited properties are omitted', function (st) {
|
||||
var F = function G() {};
|
||||
F.prototype.a = a;
|
||||
var f = new F();
|
||||
f.b = b;
|
||||
st.deepEqual(values(f), [b], 'only own properties are included');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('Symbol properties are omitted', { skip: !hasSymbols }, function (st) {
|
||||
var object = { a: a, b: b, c: c };
|
||||
var enumSym = Symbol('enum');
|
||||
var nonEnumSym = Symbol('non enum');
|
||||
object[enumSym] = enumSym;
|
||||
object.d = enumSym;
|
||||
Object.defineProperty(object, nonEnumSym, { enumerable: false, value: nonEnumSym });
|
||||
st.deepEqual(values(object), [a, b, c, enumSym], 'symbol properties are omitted');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('not-yet-visited keys deleted on [[Get]] must not show up in output', { skip: !define.supportsDescriptors }, function (st) {
|
||||
var o = { a: 1, b: 2, c: 3 };
|
||||
Object.defineProperty(o, 'a', {
|
||||
get: function () {
|
||||
delete this.b;
|
||||
return 1;
|
||||
}
|
||||
});
|
||||
st.deepEqual(values(o), [1, 3], 'when "b" is deleted prior to being visited, it should not show up');
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('not-yet-visited keys made non-enumerable on [[Get]] must not show up in output', { skip: !define.supportsDescriptors }, function (st) {
|
||||
var o = { a: 'A', b: 'B' };
|
||||
Object.defineProperty(o, 'a', {
|
||||
get: function () {
|
||||
Object.defineProperty(o, 'b', { enumerable: false });
|
||||
return 'A';
|
||||
}
|
||||
});
|
||||
st.deepEqual(values(o), ['A'], 'when "b" is made non-enumerable prior to being visited, it should not show up');
|
||||
st.end();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user