Changeset 79a0317 for imaps-frontend/node_modules/reflect.getprototypeof
- Timestamp:
- 01/21/25 03:08:24 (4 weeks ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/reflect.getprototypeof
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/reflect.getprototypeof/CHANGELOG.md
r0c6b92a r79a0317 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.10](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.9...v1.0.10) - 2025-01-02 9 10 ### Commits 11 12 - [Refactor] use `es-object-atoms` and `get-proto` directly [`2c55da0`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/2c55da02fb56d9ce7a19e505f487dfb088256d24) 13 - [Refactor] use `isObject` helper instead of `Type` [`e4c24a4`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/e4c24a4cc1b9928da3eb1f0a032703235d32855e) 14 - [Deps] update `es-abstract`, `get-intrinsic` [`54005fb`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/54005fb9df56fb399e0c526600cb7799d23ef64f) 15 - [Deps] update `es-abstract` [`e71b3b7`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/e71b3b75847d4af71e42ff049bd2b4d55f0324fc) 16 17 ## [v1.0.9](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.8...v1.0.9) - 2024-12-18 18 19 ### Commits 20 21 - [Fix] avoid a crash with node `--disable-proto=throw` flag [`73f449d`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/73f449dff08fe574a4cd937d7265aceb1774de05) 22 - [Deps] update `dunder-proto`, `es-abstract`, `get-intrinsic`, `which-builtin-type` [`80c8227`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/80c8227aac6cef446ac8460f8bbdd9a83bd1d131) 23 24 ## [v1.0.8](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.7...v1.0.8) - 2024-12-06 25 26 ### Commits 27 28 - [Refactor] share the getDunderProto helper [`f4be71b`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/f4be71b2941f217311210a00d84d8338b4880e2a) 29 - [Refactor] extract helper to `dunder-proto` [`51dcd35`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/51dcd3547ef9808c9fee7aa4a638d3d5d93db70c) 30 - [Deps] update `call-bind` [`c06e8d3`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/c06e8d3c1c9b567ca5bd6bb8542ae2e342f276ff) 31 - [Deps] update `gopd` [`c951a70`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/c951a709d5483fecc4041287a676d881295d1940) 32 - [Deps] update `gopd` [`8bd7b85`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/8bd7b8524aacc0574c979e3fe4f82adc51b03f3f) 33 - [Deps] update `which-builtin-type` [`f46f624`](https://github.com/es-shims/Reflect.getPrototypeOf/commit/f46f62423c1c452063f73d34a363c127410742b2) 7 34 8 35 ## [v1.0.7](https://github.com/es-shims/Reflect.getPrototypeOf/compare/v1.0.6...v1.0.7) - 2024-11-23 -
imaps-frontend/node_modules/reflect.getprototypeof/implementation.js
r0c6b92a r79a0317 3 3 var GetIntrinsic = require('get-intrinsic'); 4 4 var IsCallable = require('es-abstract/2024/IsCallable'); 5 var Type = require('es-abstract/2024/Type');5 var isObject = require('es-abstract/helpers/isObject'); 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');10 8 11 var $gPO = GetIntrinsic('%Object.getPrototypeOf%', true); 12 var $ObjectPrototype = GetIntrinsic('%Object.prototype%'); 13 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); 9 var gPO = require('get-proto'); 10 var $Object = require('es-object-atoms'); 18 11 19 12 module.exports = function getPrototypeOf(O) { 20 if ( Type(O) !== 'Object') {13 if (!isObject(O)) { 21 14 throw new $TypeError('Reflect.getPrototypeOf called on non-object'); 22 15 } 23 16 24 if ( $gPO) {25 return $gPO(O);17 if (gPO) { 18 return gPO(O); 26 19 } 27 20 28 if (getDunder) {29 var proto = getDunder(O);30 if (proto || proto === null) {31 return proto;32 }33 }34 21 var type = whichBuiltinType(O); 35 22 if (type) { … … 43 30 } 44 31 if (O instanceof Object) { 45 return $Object Prototype;32 return $Object.prototype; 46 33 } 47 34 -
imaps-frontend/node_modules/reflect.getprototypeof/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "reflect.getprototypeof", 3 "version": "1.0.7", 4 "description": "An ES2015 mostly-spec-compliant `Reflect.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible", 5 "main": "index.js", 6 "type": "commonjs", 7 "exports": { 8 ".": "./index.js", 9 "./auto": "./auto.js", 10 "./polyfill": "./polyfill.js", 11 "./implementation": "./implementation.js", 12 "./shim": "./shim.js", 13 "./package.json": "./package.json" 14 }, 15 "scripts": { 16 "prepack": "npmignore --auto --commentLines=autogenerated", 17 "prepublish": "not-in-publish || npm run prepublishOnly", 18 "prepublishOnly": "safe-publish-latest", 19 "prelint": "evalmd README.md", 20 "lint": "eslint --ext=js,mjs .", 21 "postlint": "es-shim-api --bound", 22 "pretest": "npm run lint", 23 "tests-only": "nyc tape 'test/**/*.js'", 24 "test": "npm run tests-only", 25 "posttest": "npx npm@'>=10.2' audit --production", 26 "version": "auto-changelog && git add CHANGELOG.md", 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)\")\"" 28 }, 29 "repository": { 30 "type": "git", 31 "url": "git+https://github.com/es-shims/Reflect.getPrototypeOf.git" 32 }, 33 "keywords": [ 34 "Reflect.getPrototypeOf", 35 "Object.getPrototypeOf", 36 "proto", 37 "__proto__", 38 "[[Prototype]]", 39 "getPrototypeOf", 40 "ES5", 41 "shim", 42 "polyfill", 43 "es-shim API", 44 "browser" 45 ], 46 "author": "Jordan Harband <ljharb@gmail.com>", 47 "funding": { 48 "url": "https://github.com/sponsors/ljharb" 49 }, 50 "license": "MIT", 51 "bugs": { 52 "url": "https://github.com/es-shims/Reflect.getPrototypeOf/issues" 53 }, 54 "homepage": "https://github.com/es-shims/Reflect.getPrototypeOf", 55 "engines": { 56 "node": ">= 0.4" 57 }, 58 "dependencies": { 59 "call-bind": "^1.0.7", 60 "define-properties": "^1.2.1", 61 "es-abstract": "^1.23.5", 62 "es-errors": "^1.3.0", 63 "get-intrinsic": "^1.2.4", 64 "gopd": "^1.0.1", 65 "which-builtin-type": "^1.1.4" 66 }, 67 "devDependencies": { 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 "eslint": "=8.8.0", 73 "evalmd": "^0.0.19", 74 "functions-have-names": "^1.2.3", 75 "in-publish": "^2.0.1", 76 "npmignore": "^0.3.1", 77 "nyc": "^10.3.2", 78 "safe-publish-latest": "^2.0.0", 79 "tape": "^5.9.0" 80 }, 81 "auto-changelog": { 82 "output": "CHANGELOG.md", 83 "template": "keepachangelog", 84 "unreleased": false, 85 "commitLimit": false, 86 "backfillLimit": false, 87 "hideCredit": true 88 }, 89 "publishConfig": { 90 "ignore": [ 91 ".github/workflows" 92 ] 93 }, 94 "testling": { 95 "files": "test/implementation.js" 96 } 2 "_from": "reflect.getprototypeof@^1.0.9", 3 "_id": "reflect.getprototypeof@1.0.10", 4 "_inBundle": false, 5 "_integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", 6 "_location": "/reflect.getprototypeof", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "reflect.getprototypeof@^1.0.9", 12 "name": "reflect.getprototypeof", 13 "escapedName": "reflect.getprototypeof", 14 "rawSpec": "^1.0.9", 15 "saveSpec": null, 16 "fetchSpec": "^1.0.9" 17 }, 18 "_requiredBy": [ 19 "/typed-array-byte-offset", 20 "/typed-array-length" 21 ], 22 "_resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", 23 "_shasum": "c629219e78a3316d8b604c765ef68996964e7bf9", 24 "_spec": "reflect.getprototypeof@^1.0.9", 25 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/typed-array-byte-offset", 26 "author": { 27 "name": "Jordan Harband", 28 "email": "ljharb@gmail.com" 29 }, 30 "auto-changelog": { 31 "output": "CHANGELOG.md", 32 "template": "keepachangelog", 33 "unreleased": false, 34 "commitLimit": false, 35 "backfillLimit": false, 36 "hideCredit": true 37 }, 38 "bugs": { 39 "url": "https://github.com/es-shims/Reflect.getPrototypeOf/issues" 40 }, 41 "bundleDependencies": false, 42 "dependencies": { 43 "call-bind": "^1.0.8", 44 "define-properties": "^1.2.1", 45 "es-abstract": "^1.23.9", 46 "es-errors": "^1.3.0", 47 "es-object-atoms": "^1.0.0", 48 "get-intrinsic": "^1.2.7", 49 "get-proto": "^1.0.1", 50 "which-builtin-type": "^1.2.1" 51 }, 52 "deprecated": false, 53 "description": "An ES2015 mostly-spec-compliant `Reflect.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible", 54 "devDependencies": { 55 "@es-shims/api": "^2.5.1", 56 "@ljharb/eslint-config": "^21.1.1", 57 "auto-changelog": "^2.5.0", 58 "encoding": "^0.1.13", 59 "eslint": "=8.8.0", 60 "evalmd": "^0.0.19", 61 "functions-have-names": "^1.2.3", 62 "in-publish": "^2.0.1", 63 "npmignore": "^0.3.1", 64 "nyc": "^10.3.2", 65 "safe-publish-latest": "^2.0.0", 66 "tape": "^5.9.0" 67 }, 68 "engines": { 69 "node": ">= 0.4" 70 }, 71 "exports": { 72 ".": "./index.js", 73 "./auto": "./auto.js", 74 "./polyfill": "./polyfill.js", 75 "./implementation": "./implementation.js", 76 "./shim": "./shim.js", 77 "./package.json": "./package.json" 78 }, 79 "funding": { 80 "url": "https://github.com/sponsors/ljharb" 81 }, 82 "homepage": "https://github.com/es-shims/Reflect.getPrototypeOf", 83 "keywords": [ 84 "Reflect.getPrototypeOf", 85 "Object.getPrototypeOf", 86 "proto", 87 "__proto__", 88 "[[Prototype]]", 89 "getPrototypeOf", 90 "ES5", 91 "shim", 92 "polyfill", 93 "es-shim API", 94 "browser" 95 ], 96 "license": "MIT", 97 "main": "index.js", 98 "name": "reflect.getprototypeof", 99 "publishConfig": { 100 "ignore": [ 101 ".github/workflows" 102 ] 103 }, 104 "repository": { 105 "type": "git", 106 "url": "git+https://github.com/es-shims/Reflect.getPrototypeOf.git" 107 }, 108 "scripts": { 109 "lint": "eslint --ext=js,mjs .", 110 "postlint": "es-shim-api --bound", 111 "posttest": "npx npm@'>=10.2' audit --production", 112 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 113 "prelint": "evalmd README.md", 114 "prepack": "npmignore --auto --commentLines=autogenerated", 115 "prepublish": "not-in-publish || npm run prepublishOnly", 116 "prepublishOnly": "safe-publish-latest", 117 "pretest": "npm run lint", 118 "test": "npm run tests-only", 119 "tests-only": "nyc tape 'test/**/*.js'", 120 "version": "auto-changelog && git add CHANGELOG.md" 121 }, 122 "testling": { 123 "files": "test/implementation.js" 124 }, 125 "type": "commonjs", 126 "version": "1.0.10" 97 127 } -
imaps-frontend/node_modules/reflect.getprototypeof/polyfill.js
r0c6b92a r79a0317 1 1 'use strict'; 2 3 var Type = require('es-abstract/2024/Type');4 5 var $TypeError = require('es-errors/type');6 7 var callBind = require('call-bind');8 var gOPD = require('gopd');9 2 10 3 var implementation = require('./implementation'); 11 4 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); 16 17 var getProto = function getPrototypeOf(value) { 18 if (Type(value) !== 'Object') { 19 throw new $TypeError('Reflect.getPrototypeOf called on non-object'); 20 } 21 // eslint-disable-next-line no-proto 22 return getDunder ? getDunder(value) : value.__proto__; 23 }; 5 var getProto = require('get-proto'); 24 6 25 7 module.exports = function getPolyfill() { … … 27 9 return Reflect.getPrototypeOf; 28 10 } 29 if (hasProto) { 30 return getProto; 31 } 32 return implementation; 11 return getProto 12 ? function getPrototypeOf(O) { return getProto(O); } 13 : implementation; 33 14 };
Note:
See TracChangeset
for help on using the changeset viewer.