{"_id":"es-define-property","_rev":"3689947","name":"es-define-property","description":"`Object.defineProperty`, but not IE 8's broken one.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"ljharb","email":""}],"time":{"modified":"2025-02-13T05:46:47.000Z","created":"2024-02-13T02:31:54.424Z","1.0.1":"2024-12-06T18:16:02.148Z","1.0.0":"2024-02-13T02:31:54.424Z"},"users":{},"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ljharb/es-define-property.git"},"versions":{"1.0.1":{"name":"es-define-property","version":"1.0.1","description":"`Object.defineProperty`, but not IE 8's broken one.","main":"index.js","types":"./index.d.ts","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p .","pretest":"npm run lint","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --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/ljharb/es-define-property.git"},"keywords":["javascript","ecmascript","object","define","property","defineProperty","Object.defineProperty"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-define-property/issues"},"homepage":"https://github.com/ljharb/es-define-property#readme","devDependencies":{"@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/gopd":"^1.0.3","@types/tape":"^5.6.5","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"^8.8.0","evalmd":"^0.0.19","gopd":"^1.2.0","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"engines":{"node":">= 0.4"},"testling":{"files":"test/index.js"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"es-define-property@1.0.1","gitHead":"50ef129225ae17336a774f0eefc4e6bc88c79b8e","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"983eb2f9a6724e9303f61addf011c72e09e0b0fa","size":4431,"noattachment":false,"key":"/es-define-property/-/es-define-property-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/es-define-property/download/es-define-property-1.0.1.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-define-property_1.0.1_1733508961978_0.6145947741890689"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-06T18:16:02.148Z","publish_time":1733508962148,"_source_registry_name":"default","_cnpm_publish_time":1733508962148},"1.0.0":{"name":"es-define-property","version":"1.0.0","description":"`Object.defineProperty`, but not IE 8's broken one.","main":"index.js","types":"./index.d.ts","exports":{".":"./index.js","./package.json":"./package.json"},"sideEffects":false,"scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublish":"not-in-publish || npm run prepublishOnly","prepublishOnly":"safe-publish-latest","prelint":"evalmd README.md","lint":"eslint --ext=js,mjs .","postlint":"tsc -p .","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/ljharb/es-define-property.git"},"keywords":["javascript","ecmascript","object","define","property","defineProperty","Object.defineProperty"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/es-define-property/issues"},"homepage":"https://github.com/ljharb/es-define-property#readme","dependencies":{"get-intrinsic":"^1.2.4"},"devDependencies":{"@ljharb/eslint-config":"^21.1.0","@types/get-intrinsic":"^1.2.2","@types/gopd":"^1.0.3","@types/tape":"^5.6.4","aud":"^2.0.4","auto-changelog":"^2.4.0","eslint":"^8.8.0","evalmd":"^0.0.19","gopd":"^1.0.1","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","safe-publish-latest":"^2.0.0","tape":"^5.7.4","typescript":"next"},"engines":{"node":">= 0.4"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"publishConfig":{"ignore":[".github/workflows"]},"_id":"es-define-property@1.0.0","gitHead":"0bf3fdce5a39949109f9ffcc81cb60d16317129a","_nodeVersion":"21.6.0","_npmVersion":"10.2.4","dist":{"shasum":"c7faefbdff8b2696cf5f46921edfb77cc4ba3845","size":4991,"noattachment":false,"key":"/es-define-property/-/es-define-property-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/es-define-property/download/es-define-property-1.0.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"maintainers":[{"name":"ljharb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/es-define-property_1.0.0_1707791514214_0.019314970069257864"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-13T02:31:54.424Z","publish_time":1707791514424,"_source_registry_name":"default","_cnpm_publish_time":1707791514424}},"readme":"# es-define-property <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n`Object.defineProperty`, but not IE 8's broken one.\n\n## Example\n\n```js\nconst assert = require('assert');\n\nconst $defineProperty = require('es-define-property');\n\nif ($defineProperty) {\n    assert.equal($defineProperty, Object.defineProperty);\n} else if (Object.defineProperty) {\n    assert.equal($defineProperty, false, 'this is IE 8');\n} else {\n    assert.equal($defineProperty, false, 'this is an ES3 engine');\n}\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n## Security\n\nPlease email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.\n\n[package-url]: https://npmjs.org/package/es-define-property\n[npm-version-svg]: https://versionbadg.es/ljharb/es-define-property.svg\n[deps-svg]: https://david-dm.org/ljharb/es-define-property.svg\n[deps-url]: https://david-dm.org/ljharb/es-define-property\n[dev-deps-svg]: https://david-dm.org/ljharb/es-define-property/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/es-define-property#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/es-define-property.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/es-define-property.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/es-define-property.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=es-define-property\n[codecov-image]: https://codecov.io/gh/ljharb/es-define-property/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/es-define-property/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-define-property\n[actions-url]: https://github.com/ljharb/es-define-property/actions\n","_attachments":{},"homepage":"https://github.com/ljharb/es-define-property#readme","bugs":{"url":"https://github.com/ljharb/es-define-property/issues"},"license":"MIT"}