{"_id":"reflect.ownkeys","_rev":"2793534","name":"reflect.ownkeys","description":"ES2015 spec-compliant shim for Reflect.ownKeys","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"glenjamin","email":""},{"name":"ljharb","email":""}],"time":{"modified":"2022-06-23T12:02:48.000Z","created":"2016-02-06T01:27:48.512Z","1.1.0":"2021-10-04T23:13:25.416Z","1.0.2":"2020-12-24T21:41:24.010Z","1.0.1":"2020-02-01T07:51:21.737Z","1.0.0":"2020-01-15T21:41:47.559Z","0.2.0":"2016-02-06T01:27:48.512Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/es-shims/Reflect.ownKeys.git"},"versions":{"1.1.0":{"name":"reflect.ownkeys","version":"1.1.0","description":"ES2015 spec-compliant shim for Reflect.ownKeys","main":"index.js","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./auto":"./auto.js","./shim":"./shim.js","./polyfill":"./polyfill.js","./implementation":"./implementation.js","./package":"./package.json","./package.json":"./package.json"},"scripts":{"prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","tests-esm":"nyc node test/index.mjs","test":"npm run tests-only && npm run tests-esm","posttest":"aud --production","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+https://github.com/es-shims/Reflect.ownKeys.git"},"keywords":["es6","es2015","reflect","ownkeys","polyfill","shim","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"contributors":[{"name":"Glen Mailer","email":"glen@stainlessed.co.uk"}],"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Reflect.ownKeys/issues"},"homepage":"https://github.com/es-shims/Reflect.ownKeys","devDependencies":{"@es-shims/api":"^2.2.2","@ljharb/eslint-config":"^18.0.0","aud":"^1.1.5","auto-changelog":"^2.3.0","eslint":"^7.32.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","has-symbols":"^1.0.2","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.3.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.19.1","globalthis":"^1.0.2"},"gitHead":"24314819116f798b771c8fea3508f4bc7d460b14","_id":"reflect.ownkeys@1.1.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"shasum":"a31da5839aa294738159eedcb326072ec9187166","size":7537,"noattachment":false,"key":"/reflect.ownkeys/-/reflect.ownkeys-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reflect.ownkeys/download/reflect.ownkeys-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"glenjamin","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reflect.ownkeys_1.1.0_1633389205256_0.6467127891447364"},"_hasShrinkwrap":false,"publish_time":1633389205416,"_cnpm_publish_time":1633389205416,"_cnpmcore_publish_time":"2021-12-16T16:20:11.627Z"},"1.0.2":{"name":"reflect.ownkeys","version":"1.0.2","description":"ES2015 spec-compliant shim for Reflect.ownKeys","main":"index.js","exports":{".":[{"default":"./index.js"},"./index.js"],"./auto":[{"default":"./auto.js"},"./auto.js"],"./shim":[{"default":"./shim.js"},"./shim.js"],"./polyfill":[{"default":"./polyfill.js"},"./polyfill.js"],"./implementation":[{"default":"./implementation.js"},"./implementation.js"],"./package":"./package.json","./package.json":"./package.json"},"scripts":{"prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"aud --production","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+https://github.com/es-shims/Reflect.ownKeys.git"},"keywords":["es6","es2015","reflect","ownkeys","polyfill","shim","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"contributors":[{"name":"Glen Mailer","email":"glen@stainlessed.co.uk"}],"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Reflect.ownKeys/issues"},"homepage":"https://github.com/es-shims/Reflect.ownKeys","devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.3.0","aud":"^1.1.3","auto-changelog":"^2.2.1","call-bind":"^1.0.0","eslint":"^7.16.0","functions-have-names":"^1.2.2","has-strict-mode":"^1.0.1","has-symbols":"^1.0.1","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.0.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.18.0-next.1","globalthis":"^1.0.1"},"gitHead":"271b7d7f1e533ed2373aa35f53b8df8e26f00ce8","_id":"reflect.ownkeys@1.0.2","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"shasum":"f79a8da20292a66a933d60125d79eccb1ee917b2","size":6385,"noattachment":false,"key":"/reflect.ownkeys/-/reflect.ownkeys-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/reflect.ownkeys/download/reflect.ownkeys-1.0.2.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"glenjamin","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reflect.ownkeys_1.0.2_1608846083903_0.2842083436925782"},"_hasShrinkwrap":false,"publish_time":1608846084010,"_cnpm_publish_time":1608846084010,"_cnpmcore_publish_time":"2021-12-16T16:20:11.910Z"},"1.0.1":{"name":"reflect.ownkeys","version":"1.0.1","description":"ES2015 spec-compliant shim for Reflect.ownKeys","main":"index.js","exports":{".":[{"default":"./index.js"},"./index.js"],"./auto":[{"default":"./auto.js"},"./auto.js"],"./shim":[{"default":"./shim.js"},"./shim.js"],"./polyfill":[{"default":"./polyfill.js"},"./polyfill.js"],"./implementation":[{"default":"./implementation.js"},"./implementation.js"],"./package":"./package.json","./package.json":"./package.json"},"scripts":{"prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"node test","test":"npm run tests-only","posttest":"npx aud","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+https://github.com/es-shims/Reflect.ownKeys.git"},"keywords":["es6","es2015","reflect","ownkeys","polyfill","shim","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"contributors":[{"name":"Glen Mailer","email":"glen@stainlessed.co.uk"}],"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Reflect.ownKeys/issues"},"homepage":"https://github.com/es-shims/Reflect.ownKeys","devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^16.0.0","auto-changelog":"^1.16.2","eslint":"^6.8.0","has-symbols":"^1.0.1","safe-publish-latest":"^1.1.4","tape":"^5.0.0-next.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.4","globalthis":"^1.0.1"},"gitHead":"9538c86ac015dd8e55715a6a15234fd6cd930d60","_id":"reflect.ownkeys@1.0.1","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"shasum":"8fe822ab76fb82a192a7fc0a8ab77e35a4bb0bf3","size":5182,"noattachment":false,"key":"/reflect.ownkeys/-/reflect.ownkeys-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/reflect.ownkeys/download/reflect.ownkeys-1.0.1.tgz"},"maintainers":[{"name":"glenjamin","email":""},{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reflect.ownkeys_1.0.1_1580543481616_0.6905988931655056"},"_hasShrinkwrap":false,"publish_time":1580543481737,"_cnpm_publish_time":1580543481737,"_cnpmcore_publish_time":"2021-12-16T16:20:12.138Z"},"1.0.0":{"name":"reflect.ownkeys","version":"1.0.0","description":"ES2015 spec-compliant shim for Reflect.ownKeys","main":"index.js","exports":{".":[{"default":"./index.js"},"./index.js"],"./auto":[{"default":"./auto.js"},"./auto.js"],"./shim":[{"default":"./shim.js"},"./shim.js"],"./polyfill":[{"default":"./polyfill.js"},"./polyfill.js"],"./implementation":[{"default":"./implementation.js"},"./implementation.js"],"./package":"./package.json","./package.json":"./package.json"},"scripts":{"prepublish":"safe-publish-latest","lint":"eslint .","postlint":"es-shim-api --bound","pretest":"npm run lint","tests-only":"node test","test":"npm run tests-only","posttest":"npx aud","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+https://github.com/es-shims/Reflect.ownKeys.git"},"keywords":["es6","es2015","reflect","ownkeys","polyfill","shim","es-shim API"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"contributors":[{"name":"Glen Mailer","email":"glen@stainlessed.co.uk"}],"funding":{"url":"https://github.com/sponsors/ljharb"},"license":"MIT","bugs":{"url":"https://github.com/es-shims/Reflect.ownKeys/issues"},"homepage":"https://github.com/es-shims/Reflect.ownKeys","devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.1.0","auto-changelog":"^1.16.2","eslint":"^6.8.0","has-symbols":"^1.0.1","safe-publish-latest":"^1.1.4","tape":"^5.0.0-next.3"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false},"dependencies":{"define-properties":"^1.1.3","es-abstract":"^1.17.2","globalthis":"^1.0.1"},"gitHead":"491ad96b64cde2ef65b873731c929ce18593f95c","_id":"reflect.ownkeys@1.0.0","_nodeVersion":"13.6.0","_npmVersion":"6.13.4","dist":{"shasum":"56a72b601e62d17345bbe0613f3be9e5f2654945","size":4897,"noattachment":false,"key":"/reflect.ownkeys/-/reflect.ownkeys-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reflect.ownkeys/download/reflect.ownkeys-1.0.0.tgz"},"maintainers":[{"name":"glenjamin","email":""},{"name":"ljharb","email":""}],"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/reflect.ownkeys_1.0.0_1579124507414_0.13104665480248756"},"_hasShrinkwrap":false,"publish_time":1579124507559,"_cnpm_publish_time":1579124507559,"_cnpmcore_publish_time":"2021-12-16T16:20:12.542Z"},"0.2.0":{"name":"reflect.ownkeys","version":"0.2.0","description":"Polyfill for ES6's Reflect.ownKeys","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/glenjamin/Reflect.ownKeys.git"},"keywords":["es6","reflect","ownkeys","polyfill"],"author":{"name":"Glen Mailer","email":"glen@stainlessed.co.uk"},"license":"MIT","bugs":{"url":"https://github.com/glenjamin/Reflect.ownKeys/issues"},"homepage":"https://github.com/glenjamin/Reflect.ownKeys","devDependencies":{"mocha":"^2.4.5"},"gitHead":"d83a69e594c56f2635c09219e87ce0ae9277f494","_id":"reflect.ownkeys@0.2.0","_shasum":"749aceec7f3fdf8b63f927a04809e90c5c0b3460","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.3.0","_npmUser":{"name":"glenjamin","email":"glenjamin@gmail.com"},"dist":{"shasum":"749aceec7f3fdf8b63f927a04809e90c5c0b3460","size":2403,"noattachment":false,"key":"/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reflect.ownkeys/download/reflect.ownkeys-0.2.0.tgz"},"maintainers":[{"name":"glenjamin","email":""},{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/reflect.ownkeys-0.2.0.tgz_1454722066018_0.4041709369048476"},"directories":{},"publish_time":1454722068512,"_cnpm_publish_time":1454722068512,"_hasShrinkwrap":false}},"readme":"# reflect.ownkeys <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 ES2015 spec-compliant `Reflect.ownKeys` shim. Invoke its \"shim\" method to shim `Reflect.ownKeys` if it is unavailable or noncompliant.\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://tc39.es/ecma262/#sec-reflect.ownkeys).\n\nMost common usage:\n```js\nvar assert = require('assert');\nvar ownKeys = require('reflect.ownkeys');\n\nvar obj = { a: 1, b: 2, c: 3 };\nvar expected = ['a', 'b', 'c'];\n\nif (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {\n\t// for environments with Symbol support\n\tvar sym = Symbol();\n\tobj[sym] = 4;\n\tobj.d = sym;\n\texpected.push(sym, 'd');\n}\n\nassert.deepEqual(ownKeys(obj), expected);\n\nif (!Reflect.ownKeys) {\n\townKeys.shim();\n}\n\nassert.deepEqual(Reflect.ownKeys(obj), expected);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/reflect.ownkeys\n[npm-version-svg]: https://versionbadg.es/es-shims/Reflect.ownKeys.svg\n[deps-svg]: https://david-dm.org/es-shims/Reflect.ownKeys.svg\n[deps-url]: https://david-dm.org/es-shims/Reflect.ownKeys\n[dev-deps-svg]: https://david-dm.org/es-shims/Reflect.ownKeys/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Reflect.ownKeys#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/reflect.ownkeys.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/reflect.ownkeys.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/reflect.ownkeys.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=reflect.ownkeys\n[codecov-image]: https://codecov.io/gh/es-shims/Reflect.ownKeys/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/es-shims/Reflect.ownKeys/\n[actions-image]: https://img.shields.io/github/check-runs/es-shims/Reflect.ownKeys/main\n[actions-url]: https://github.com/es-shims/Reflect.ownKeys/actions\n","_attachments":{},"homepage":"https://github.com/es-shims/Reflect.ownKeys","bugs":{"url":"https://github.com/es-shims/Reflect.ownKeys/issues"},"license":"MIT"}