{"name":"object.getownpropertydescriptors","version":"2.1.9","author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"funding":{"url":"https://github.com/sponsors/ljharb"},"description":"ES2017 spec-compliant shim for `Object.getOwnPropertyDescriptors` that works in ES5.","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 --silent lint","test":"npm run --silent tests-only","posttest":"npx npm@\">= 10.2\" audit --production","tests-only":"nyc tape 'test/**/*.js'","lint":"eslint --ext=js,mjs .","postlint":"es-shim-api --bound","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/es-shims/object.getownpropertydescriptors.git"},"keywords":["Object.getOwnPropertyDescriptors","descriptor","property descriptor","ES8","ES2017","shim","polyfill","getOwnPropertyDescriptor","es-shim API"],"dependencies":{"array.prototype.reduce":"^1.0.8","call-bind":"^1.0.8","define-properties":"^1.2.1","es-abstract":"^1.24.0","es-object-atoms":"^1.1.1","gopd":"^1.2.0","safe-array-concat":"^1.1.3"},"devDependencies":{"@es-shims/api":"^2.5.1","@ljharb/eslint-config":"^22.1.0","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"^9.39.1","functions-have-names":"^1.2.3","has-strict-mode":"^1.1.0","in-publish":"^2.0.1","jiti":"^0.0.0","mock-property":"^1.1.0","npmignore":"^0.3.2","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0"},"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"]},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true,"startingVersion":"2.1.6"},"publishConfig":{"ignore":[".github/workflows"]},"gitHead":"f1f1e6f7aa1607fa50b234d06b5885709847c04d","_id":"object.getownpropertydescriptors@2.1.9","bugs":{"url":"https://github.com/es-shims/object.getownpropertydescriptors/issues"},"homepage":"https://github.com/es-shims/object.getownpropertydescriptors#readme","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-mt8YM6XwsTTovI+kdZdHSxoyF2DI59up034orlC9NfweclcWOt7CVascNNLp6U+bjFVCVCIh9PwS76tDM/rH8g==","shasum":"bf9e7520f14d50de88dee2b9c9eca841166322dc","tarball":"http://registry-npm.ywwl.com/object.getownpropertydescriptors/download/object.getownpropertydescriptors-2.1.9.tgz","fileCount":16,"unpackedSize":24592,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCD8ttqd42rY76uPJSRnabnh5R3iC4TVn8gjuWoaUPOQwIhAPii9dz7D7Bb38R6x9MseKFSejARP5OPOv6bkrN7VIpu"}],"size":7836,"noattachment":false,"key":"/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.9.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/object.getownpropertydescriptors_2.1.9_1765400602567_0.3995520279396263"},"_hasShrinkwrap":false,"readme":"# object.getownpropertydescriptors <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-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\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/es-shims/Object.getOwnPropertyDescriptors.svg\n[travis-svg]: https://travis-ci.org/es-shims/Object.getOwnPropertyDescriptors.svg\n[travis-url]: https://travis-ci.org/es-shims/Object.getOwnPropertyDescriptors\n[deps-svg]: https://david-dm.org/es-shims/Object.getOwnPropertyDescriptors.svg\n[deps-url]: https://david-dm.org/es-shims/Object.getOwnPropertyDescriptors\n[dev-deps-svg]: https://david-dm.org/es-shims/Object.getOwnPropertyDescriptors/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Object.getOwnPropertyDescriptors#info=devDependencies\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[codecov-image]: https://codecov.io/gh/es-shims/Object.getOwnPropertyDescriptors/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Object.getOwnPropertyDescriptors/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/Object.getOwnPropertyDescriptors\n[actions-url]: https://github.com/es-shims/Object.getOwnPropertyDescriptors/actions\n","publish_time":1765400602734,"_cnpm_publish_time":1765400602734,"dist-tags":{"latest":"2.1.9"}}