Changeset 0c6b92a for imaps-frontend/node_modules/reflect.getprototypeof
- Timestamp:
- 12/12/24 17:06:06 (5 weeks ago)
- Branches:
- main
- Parents:
- d565449
- Location:
- imaps-frontend/node_modules/reflect.getprototypeof
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/reflect.getprototypeof/.eslintrc
rd565449 r0c6b92a 6 6 "rules": { 7 7 "id-length": 0, 8 "max-statements": [2, 2 0],8 "max-statements": [2, 25], 9 9 "new-cap": [2, { 10 10 "capIsNewExceptions": [ -
imaps-frontend/node_modules/reflect.getprototypeof/CHANGELOG.md
rd565449 r0c6b92a 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [v1.0.7](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.6...v1.0.7) - 2024-11-23 9 10 ### Commits 11 12 - [Fix] cache `Object.prototype[__proto__]` getter [`68acea1`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/68acea171951197f83bb107af9e186ce68a5a78f) 13 - [Tests] remove unused test file [`055596a`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/055596aa2e050e08d35f8f19aa642e9b61a54f7f) 14 - [actions] split out node 10-20, and 20+ [`99a57c2`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/99a57c2551d11de70ea90b934e02b04ff3cec6c0) 15 - [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `auto-changelog`, `tape` [`fe4bb92`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/fe4bb92a4d629e629f42f76567d837f8f17643a4) 16 - [Deps] update `es-abstract`, `globalthis`, `which-builtin-type` [`867aeb3`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/867aeb3c434ee03fd819da09d23a32a2c71290dc) 17 - [Tests] replace `aud` with `npm audit` [`5129c11`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/5129c112e18e3475afe42a836ac5d4d7ddfcfc18) 18 - [Deps] remove unused dep; add missing dev dep [`23cf537`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/23cf537aeac98bf27a8d39e24048e1c9fa4df7a7) 19 - [Dev Deps] add missing peer dep [`18862fa`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/18862fa57d2aa86825998db935ac6ffe23dec113) 7 20 8 21 ## [v1.0.6](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.5...v1.0.6) - 2024-03-16 -
imaps-frontend/node_modules/reflect.getprototypeof/implementation.js
rd565449 r0c6b92a 6 6 var whichBuiltinType = require('which-builtin-type'); 7 7 var $TypeError = require('es-errors/type'); 8 var callBind = require('call-bind'); 9 var gOPD = require('gopd'); 8 10 9 11 var $gPO = GetIntrinsic('%Object.getPrototypeOf%', true); … … 11 13 12 14 var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto 15 16 var dunderGetter = !$gPO && hasProto && gOPD && gOPD(Object.prototype, '__proto__'); 17 var getDunder = dunderGetter && dunderGetter.get && callBind(dunderGetter.get); 13 18 14 19 module.exports = function getPrototypeOf(O) { … … 21 26 } 22 27 23 if (hasProto) { 24 // eslint-disable-next-line no-proto 25 var proto = O.__proto__; 28 if (getDunder) { 29 var proto = getDunder(O); 26 30 if (proto || proto === null) { 27 31 return proto; -
imaps-frontend/node_modules/reflect.getprototypeof/package.json
rd565449 r0c6b92a 1 1 { 2 2 "name": "reflect.getprototypeof", 3 "version": "1.0. 6",3 "version": "1.0.7", 4 4 "description": "An ES2015 mostly-spec-compliant `Reflect.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible", 5 5 "main": "index.js", … … 23 23 "tests-only": "nyc tape 'test/**/*.js'", 24 24 "test": "npm run tests-only", 25 "posttest": " aud--production",25 "posttest": "npx npm@'>=10.2' audit --production", 26 26 "version": "auto-changelog && git add CHANGELOG.md", 27 27 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" … … 59 59 "call-bind": "^1.0.7", 60 60 "define-properties": "^1.2.1", 61 "es-abstract": "^1.23. 1",61 "es-abstract": "^1.23.5", 62 62 "es-errors": "^1.3.0", 63 63 "get-intrinsic": "^1.2.4", 64 "g lobalthis": "^1.0.3",65 "which-builtin-type": "^1.1. 3"64 "gopd": "^1.0.1", 65 "which-builtin-type": "^1.1.4" 66 66 }, 67 67 "devDependencies": { 68 "@es-shims/api": "^2. 4.2",69 "@ljharb/eslint-config": "^21.1. 0",70 "au d": "^2.0.4",71 " auto-changelog": "^2.4.0",68 "@es-shims/api": "^2.5.1", 69 "@ljharb/eslint-config": "^21.1.1", 70 "auto-changelog": "^2.5.0", 71 "encoding": "^0.1.13", 72 72 "eslint": "=8.8.0", 73 73 "evalmd": "^0.0.19", 74 "functions-have-names": "^1.2.3", 74 75 "in-publish": "^2.0.1", 75 76 "npmignore": "^0.3.1", 76 77 "nyc": "^10.3.2", 77 78 "safe-publish-latest": "^2.0.0", 78 "tape": "^5. 7.5"79 "tape": "^5.9.0" 79 80 }, 80 81 "auto-changelog": { … … 90 91 ".github/workflows" 91 92 ] 93 }, 94 "testling": { 95 "files": "test/implementation.js" 92 96 } 93 97 } -
imaps-frontend/node_modules/reflect.getprototypeof/polyfill.js
rd565449 r0c6b92a 5 5 var $TypeError = require('es-errors/type'); 6 6 7 var callBind = require('call-bind'); 8 var gOPD = require('gopd'); 9 7 10 var implementation = require('./implementation'); 8 11 9 12 var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto 13 14 var dunderGetter = hasProto && gOPD && gOPD(Object.prototype, '__proto__'); 15 var getDunder = dunderGetter && dunderGetter.get && callBind(dunderGetter.get); 10 16 11 17 var getProto = function getPrototypeOf(value) { … … 13 19 throw new $TypeError('Reflect.getPrototypeOf called on non-object'); 14 20 } 15 return value.__proto__; // eslint-disable-line no-proto 21 // eslint-disable-next-line no-proto 22 return getDunder ? getDunder(value) : value.__proto__; 16 23 }; 17 24 -
imaps-frontend/node_modules/reflect.getprototypeof/test/tests.js
rd565449 r0c6b92a 23 23 t.equal(getPrototypeOf([]), Array.prototype); 24 24 t.equal(getPrototypeOf({}), Object.prototype); 25 26 var obj = { __proto__: null }; 27 if ('toString' in obj) { 28 t.comment('no null objects in this engine'); 29 t.equal(getPrototypeOf(obj), Object.prototype, '"null" object has Object.prototype as [[Prototype]]'); 30 } else { 31 t.equal(getPrototypeOf(obj), null, 'null object has null [[Prototype]]'); 32 } 25 33 };
Note:
See TracChangeset
for help on using the changeset viewer.