{ "_args": [ [ { "raw": "object.getownpropertydescriptors@^2.0.3", "scope": null, "escapedName": "object.getownpropertydescriptors", "name": "object.getownpropertydescriptors", "rawSpec": "^2.0.3", "spec": ">=2.0.3 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/util.promisify" ] ], "_from": "object.getownpropertydescriptors@>=2.0.3 <3.0.0", "_id": "object.getownpropertydescriptors@2.0.3", "_inCache": true, "_location": "/object.getownpropertydescriptors", "_nodeVersion": "6.3.1", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/object.getownpropertydescriptors-2.0.3.tgz_1469574593235_0.23603621823713183" }, "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "_npmVersion": "3.10.3", "_phantomChildren": {}, "_requested": { "raw": "object.getownpropertydescriptors@^2.0.3", "scope": null, "escapedName": "object.getownpropertydescriptors", "name": "object.getownpropertydescriptors", "rawSpec": "^2.0.3", "spec": ">=2.0.3 <3.0.0", "type": "range" }, "_requiredBy": [ "/util.promisify" ], "_resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", "_shasum": "8758c846f5b407adab0f236e0986f14b051caa16", "_shrinkwrap": null, "_spec": "object.getownpropertydescriptors@^2.0.3", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/util.promisify", "author": { "name": "Jordan Harband" }, "bugs": { "url": "https://github.com/ljharb/object.getownpropertydescriptors/issues" }, "dependencies": { "define-properties": "^1.1.2", "es-abstract": "^1.5.1" }, "description": "ES2017 spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.", "devDependencies": { "@es-shims/api": "^1.2.0", "@ljharb/eslint-config": "^6.0.0", "covert": "^1.1.0", "eslint": "^3.1.1", "jscs": "^3.0.7", "nsp": "^2.6.1", "replace": "^0.3.0", "semver": "^5.3.0", "tape": "^4.6.0" }, "directories": {}, "dist": { "shasum": "8758c846f5b407adab0f236e0986f14b051caa16", "tarball": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz" }, "engines": { "node": ">= 0.8" }, "gitHead": "43bcf3e85f678fec5e06fbb0644608b05d3bd5f7", "homepage": "https://github.com/ljharb/object.getownpropertydescriptors#readme", "keywords": [ "Object.getOwnPropertyDescriptors", "descriptor", "property descriptor", "ES8", "ES2017", "shim", "polyfill", "getOwnPropertyDescriptor", "es-shim API" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "ljharb", "email": "ljharb@gmail.com" } ], "name": "object.getownpropertydescriptors", "optionalDependencies": {}, "readme": "#object.getownpropertydescriptors [![Version Badge][npm-version-svg]][package-url]\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n[![browser support][testling-svg]][testling-url]\n\nAn ES2017 spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.\nInvoke its \"shim\" method to shim `Object.getOwnPropertyDescriptors` if it is unavailable, and if `Object.getOwnPropertyDescriptor` is available.\n\nThis 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://github.com/tc39/ecma262/pull/582).\n\n## Example\n\n```js\nvar getDescriptors = require('object.getownpropertydescriptors');\nvar assert = require('assert');\nvar obj = { normal: Infinity };\nvar enumDescriptor = {\n\tenumerable: false,\n\twritable: false,\n\tconfigurable: true,\n\tvalue: true\n};\nvar writableDescriptor = {\n\tenumerable: true,\n\twritable: true,\n\tconfigurable: true,\n\tvalue: 42\n};\nvar symbol = Symbol();\nvar symDescriptor = {\n\tenumerable: true,\n\twritable: true,\n\tconfigurable: false,\n\tvalue: [symbol]\n};\n\nObject.defineProperty(obj, 'enumerable', enumDescriptor);\nObject.defineProperty(obj, 'writable', writableDescriptor);\nObject.defineProperty(obj, 'symbol', symDescriptor);\n\nvar descriptors = getDescriptors(obj);\n\nassert.deepEqual(descriptors, {\n\tnormal: {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tconfigurable: true,\n\t\tvalue: Infinity\n\t},\n\tenumerable: enumDescriptor,\n\twritable: writableDescriptor,\n\tsymbol: symDescriptor\n});\n```\n\n```js\nvar getDescriptors = require('object.getownpropertydescriptors');\nvar assert = require('assert');\n/* when Object.getOwnPropertyDescriptors is not present */\ndelete Object.getOwnPropertyDescriptors;\nvar shimmedDescriptors = getDescriptors.shim();\nassert.equal(shimmedDescriptors, getDescriptors);\nassert.deepEqual(shimmedDescriptors(obj), getDescriptors(obj));\n```\n\n```js\nvar getDescriptors = require('object.getownpropertydescriptors');\nvar assert = require('assert');\n/* when Object.getOwnPropertyDescriptors is present */\nvar shimmedDescriptors = getDescriptors.shim();\nassert.notEqual(shimmedDescriptors, getDescriptors);\nassert.deepEqual(shimmedDescriptors(obj), getDescriptors(obj));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/object.getownpropertydescriptors\n[npm-version-svg]: http://versionbadg.es/ljharb/object.getownpropertydescriptors.svg\n[travis-svg]: https://travis-ci.org/ljharb/object.getownpropertydescriptors.svg\n[travis-url]: https://travis-ci.org/ljharb/object.getownpropertydescriptors\n[deps-svg]: https://david-dm.org/ljharb/object.getownpropertydescriptors.svg\n[deps-url]: https://david-dm.org/ljharb/object.getownpropertydescriptors\n[dev-deps-svg]: https://david-dm.org/ljharb/object.getownpropertydescriptors/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/object.getownpropertydescriptors#info=devDependencies\n[testling-svg]: https://ci.testling.com/ljharb/object.getownpropertydescriptors.png\n[testling-url]: https://ci.testling.com/ljharb/object.getownpropertydescriptors\n[npm-badge-png]: https://nodei.co/npm/object.getownpropertydescriptors.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/object.getownpropertydescriptors.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/object.getownpropertydescriptors.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=object.getownpropertydescriptors\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/ljharb/object.getownpropertydescriptors.git" }, "scripts": { "coverage": "covert test/*.js", "coverage:quiet": "covert test/*.js --quiet", "eslint": "eslint test/*.js *.js", "jscs": "jscs test/*.js *.js", "lint": "npm run --silent jscs && npm run --silent eslint", "posttest": "npm run --silent security", "pretest": "npm run --silent lint && es-shim-api", "security": "nsp check", "test": "npm run --silent tests-only", "test:module": "node test/index.js", "test:shimmed": "node test/shimmed.js", "tests-only": "npm run --silent test:shimmed && npm run --silent test:module" }, "testling": { "files": [ "test/index.js", "test/shimmed.js" ], "browsers": [ "iexplore/9.0..latest", "firefox/4.0..6.0", "firefox/15.0..latest", "firefox/nightly", "chrome/5.0..10.0", "chrome/20.0..latest", "chrome/canary", "opera/12.0..latest", "opera/next", "safari/5.0..latest", "ipad/6.0..latest", "iphone/6.0..latest", "android-browser/4.2" ] }, "version": "2.0.3" }