Changeset 79a0317 for imaps-frontend/node_modules/has-proto
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/has-proto
- Files:
-
- 6 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/has-proto/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.2.0](https://github.com/inspect-js/has-proto/compare/v1.1.0...v1.2.0) - 2024-12-06 9 10 ### Commits 11 12 - [Refactor] use `dunder-proto` instead of `call-bind` [`6e5e76c`](https://github.com/inspect-js/has-proto/commit/6e5e76ce3bf4c01ebb99b38dcd61bee1ba35073f) 13 - [actions] split out node 10-20, and 20+ [`3b8e9e6`](https://github.com/inspect-js/has-proto/commit/3b8e9e651431ef5e9725dae68881b8107e812ee0) 14 - [Dev Deps] update `@ljharb/tsconfig`, `gopd` [`57bcd00`](https://github.com/inspect-js/has-proto/commit/57bcd000625c7d1e7f41fd10b4a8e1ea380029dd) 15 - [actions] skip `npm ls` in node < 10 [`ce3a4d7`](https://github.com/inspect-js/has-proto/commit/ce3a4d76d4f15d94540cb5f2ae50967cc6299ee3) 16 17 ## [v1.1.0](https://github.com/inspect-js/has-proto/compare/v1.0.3...v1.1.0) - 2024-12-01 18 19 ### Commits 20 21 - [New] add `accessor` and `mutator` endpoints [`144f6a9`](https://github.com/inspect-js/has-proto/commit/144f6a9c2a3925f25058d5d5ea7eab3be57767d9) 22 - [types] use shared config [`8b597cf`](https://github.com/inspect-js/has-proto/commit/8b597cff2b09f0351bc357cac0e0c7b0c8bb7e70) 23 - [Refactor] cache result at module level [`88418bd`](https://github.com/inspect-js/has-proto/commit/88418bde7e0c37c7d9aa6cc79150e774004c01d8) 24 - [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `tape` [`d246200`](https://github.com/inspect-js/has-proto/commit/d246200bae6ceceebb495df7f8eb0f27a017b63f) 25 - [Deps] update `gopd`, `reflect.getprototypeof` [`6f72364`](https://github.com/inspect-js/has-proto/commit/6f723645da9b5bef0aaae4a1aa66c07a1fed179f) 26 - [Tests] add `@arethetypeswrong/cli` [`8194e1a`](https://github.com/inspect-js/has-proto/commit/8194e1a607233f63c5bd0b91112c0423b3296ac9) 27 - [Tests] replace `aud` with `npm audit` [`fd7ad11`](https://github.com/inspect-js/has-proto/commit/fd7ad111dc35488b3200a763204dba0f6087defc) 28 - [Dev Deps] update `@types/tape` [`2695808`](https://github.com/inspect-js/has-proto/commit/26958086aec0b1cbfdddd4f10e54d2de1facf85c) 29 - [Dev Deps] add missing peer dep [`fa4b2f7`](https://github.com/inspect-js/has-proto/commit/fa4b2f77f7c0071e1c06b5590c9bada8e6b2edce) 7 30 8 31 ## [v1.0.3](https://github.com/inspect-js/has-proto/compare/v1.0.2...v1.0.3) - 2024-02-19 -
imaps-frontend/node_modules/has-proto/README.md
r0c6b92a r79a0317 17 17 18 18 assert.equal(typeof hasProto(), 'boolean'); 19 20 var hasProtoAccessor = require('has-proto/accessor')(); 21 if (hasProtoAccessor) { 22 assert.equal([].__proto__, Array.prototype); 23 } else { 24 assert(!('__proto__' in Object.prototype)); 25 } 26 27 var hasProtoMutator = require('has-proto/mutator'); 28 var obj = {}; 29 assert('toString' in obj); 30 31 obj.__proto__ = null; 32 if (hasProtoMutator) { 33 assert(!('toString' in obj)); 34 } else { 35 assert('toString' in obj); 36 assert.equal(obj.__proto__, null); 37 } 19 38 ``` 20 39 -
imaps-frontend/node_modules/has-proto/index.js
r0c6b92a r79a0317 6 6 }; 7 7 8 var $Object = Object; 8 // @ts-expect-error: TS errors on an inherited property for some reason 9 var result = { __proto__: test }.foo === test.foo 10 && !(test instanceof Object); 9 11 10 12 /** @type {import('.')} */ 11 13 module.exports = function hasProto() { 12 // @ts-expect-error: TS errors on an inherited property for some reason 13 return { __proto__: test }.foo === test.foo 14 && !(test instanceof $Object); 14 return result; 15 15 }; -
imaps-frontend/node_modules/has-proto/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "has-proto", 3 "version": "1.0.3", 4 "description": "Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?", 5 "main": "index.js", 6 "exports": { 7 ".": "./index.js", 8 "./package.json": "./package.json" 9 }, 10 "sideEffects": false, 11 "scripts": { 12 "prepack": "npmignore --auto --commentLines=autogenerated", 13 "prepublishOnly": "safe-publish-latest", 14 "prepublish": "not-in-publish || npm run prepublishOnly", 15 "lint": "eslint --ext=js,mjs .", 16 "postlint": "tsc -p .", 17 "pretest": "npm run lint", 18 "tests-only": "tape 'test/**/*.js'", 19 "test": "npm run tests-only", 20 "posttest": "aud --production", 21 "version": "auto-changelog && git add CHANGELOG.md", 22 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 23 }, 24 "repository": { 25 "type": "git", 26 "url": "git+https://github.com/inspect-js/has-proto.git" 27 }, 28 "keywords": [ 29 "prototype", 30 "proto", 31 "set", 32 "get", 33 "__proto__", 34 "getPrototypeOf", 35 "setPrototypeOf", 36 "has" 37 ], 38 "author": "Jordan Harband <ljharb@gmail.com>", 39 "funding": { 40 "url": "https://github.com/sponsors/ljharb" 41 }, 42 "license": "MIT", 43 "bugs": { 44 "url": "https://github.com/inspect-js/has-proto/issues" 45 }, 46 "homepage": "https://github.com/inspect-js/has-proto#readme", 47 "testling": { 48 "files": "test/index.js" 49 }, 50 "devDependencies": { 51 "@ljharb/eslint-config": "^21.1.0", 52 "@types/tape": "^5.6.4", 53 "aud": "^2.0.4", 54 "auto-changelog": "^2.4.0", 55 "eslint": "=8.8.0", 56 "in-publish": "^2.0.1", 57 "npmignore": "^0.3.1", 58 "safe-publish-latest": "^2.0.0", 59 "tape": "^5.7.5", 60 "typescript": "next" 61 }, 62 "engines": { 63 "node": ">= 0.4" 64 }, 65 "auto-changelog": { 66 "output": "CHANGELOG.md", 67 "template": "keepachangelog", 68 "unreleased": false, 69 "commitLimit": false, 70 "backfillLimit": false, 71 "hideCredit": true 72 }, 73 "publishConfig": { 74 "ignore": [ 75 ".github/workflows" 76 ] 77 } 2 "_from": "has-proto@^1.2.0", 3 "_id": "has-proto@1.2.0", 4 "_inBundle": false, 5 "_integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", 6 "_location": "/has-proto", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "has-proto@^1.2.0", 12 "name": "has-proto", 13 "escapedName": "has-proto", 14 "rawSpec": "^1.2.0", 15 "saveSpec": null, 16 "fetchSpec": "^1.2.0" 17 }, 18 "_requiredBy": [ 19 "/es-abstract", 20 "/es-iterator-helpers", 21 "/typed-array-byte-length", 22 "/typed-array-byte-offset" 23 ], 24 "_resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", 25 "_shasum": "5de5a6eabd95fdffd9818b43055e8065e39fe9d5", 26 "_spec": "has-proto@^1.2.0", 27 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/es-abstract", 28 "author": { 29 "name": "Jordan Harband", 30 "email": "ljharb@gmail.com" 31 }, 32 "auto-changelog": { 33 "output": "CHANGELOG.md", 34 "template": "keepachangelog", 35 "unreleased": false, 36 "commitLimit": false, 37 "backfillLimit": false, 38 "hideCredit": true 39 }, 40 "bugs": { 41 "url": "https://github.com/inspect-js/has-proto/issues" 42 }, 43 "bundleDependencies": false, 44 "dependencies": { 45 "dunder-proto": "^1.0.0" 46 }, 47 "deprecated": false, 48 "description": "Does this environment have the ability to get the [[Prototype]] of an object on creation with `__proto__`?", 49 "devDependencies": { 50 "@arethetypeswrong/cli": "^0.17.0", 51 "@ljharb/eslint-config": "^21.1.1", 52 "@ljharb/tsconfig": "^0.2.2", 53 "@types/gopd": "^1.0.3", 54 "@types/tape": "^5.6.5", 55 "auto-changelog": "^2.5.0", 56 "encoding": "^0.1.13", 57 "eslint": "=8.8.0", 58 "evalmd": "^0.0.19", 59 "gopd": "^1.2.0", 60 "in-publish": "^2.0.1", 61 "npmignore": "^0.3.1", 62 "reflect.getprototypeof": "^1.0.7", 63 "safe-publish-latest": "^2.0.0", 64 "tape": "^5.9.0", 65 "typescript": "next" 66 }, 67 "engines": { 68 "node": ">= 0.4" 69 }, 70 "exports": { 71 ".": "./index.js", 72 "./accessor": "./accessor.js", 73 "./mutator": "./mutator.js", 74 "./package.json": "./package.json" 75 }, 76 "funding": { 77 "url": "https://github.com/sponsors/ljharb" 78 }, 79 "homepage": "https://github.com/inspect-js/has-proto#readme", 80 "keywords": [ 81 "prototype", 82 "proto", 83 "set", 84 "get", 85 "__proto__", 86 "getPrototypeOf", 87 "setPrototypeOf", 88 "has" 89 ], 90 "license": "MIT", 91 "main": "index.js", 92 "name": "has-proto", 93 "publishConfig": { 94 "ignore": [ 95 ".github/workflows", 96 "types" 97 ] 98 }, 99 "repository": { 100 "type": "git", 101 "url": "git+https://github.com/inspect-js/has-proto.git" 102 }, 103 "scripts": { 104 "lint": "eslint --ext=js,mjs .", 105 "postlint": "tsc -p . && attw -P", 106 "posttest": "npx npm@'>=10.2' audit --production", 107 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 108 "prelint": "evalmd README.md", 109 "prepack": "npmignore --auto --commentLines=autogenerated", 110 "prepublish": "not-in-publish || npm run prepublishOnly", 111 "prepublishOnly": "safe-publish-latest", 112 "pretest": "npm run lint", 113 "test": "npm run tests-only", 114 "tests-only": "tape 'test/**/*.js'", 115 "version": "auto-changelog && git add CHANGELOG.md" 116 }, 117 "sideEffects": false, 118 "testling": { 119 "files": "test/index.js" 120 }, 121 "version": "1.2.0" 78 122 } -
imaps-frontend/node_modules/has-proto/test/index.js
r0c6b92a r79a0317 2 2 3 3 var test = require('tape'); 4 var gPO = require('reflect.getprototypeof/polyfill')(); 5 var gOPD = require('gopd'); 6 4 7 var hasProto = require('../'); 8 9 var getter = require('dunder-proto/get'); 5 10 6 11 test('hasProto', function (t) { … … 11 16 if (result) { 12 17 t.notOk('toString' in obj, 'null object lacks toString'); 18 if (gOPD && getter) { 19 t.equal(getter(obj), null); 20 } 13 21 } else { 14 22 t.ok('toString' in obj, 'without proto, null object has toString'); 15 t.equal( obj.__proto__, null); // eslint-disable-line no-proto23 t.equal(gPO(obj), Object.prototype); 16 24 } 17 25 18 26 t.end(); 19 27 }); 28 -
imaps-frontend/node_modules/has-proto/tsconfig.json
r0c6b92a r79a0317 1 1 { 2 "compilerOptions": { 3 /* Visit https://aka.ms/tsconfig to read more about this file */ 4 5 /* Projects */ 6 7 /* Language and Environment */ 8 "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 9 // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ 10 // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 11 "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 12 // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ 13 14 /* Modules */ 15 "module": "commonjs", /* Specify what module code is generated. */ 16 // "rootDir": "./", /* Specify the root folder within your source files. */ 17 // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ 18 // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 19 // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 20 // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 21 "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */ 22 "resolveJsonModule": true, /* Enable importing .json files. */ 23 // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ 24 25 /* JavaScript Support */ 26 "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ 27 "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ 28 "maxNodeModuleJsDepth": 0, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ 29 30 /* Emit */ 31 "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 32 "declarationMap": true, /* Create sourcemaps for d.ts files. */ 33 "noEmit": true, /* Disable emitting files from a compilation. */ 34 35 /* Interop Constraints */ 36 "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ 37 "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ 38 "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ 39 40 /* Type Checking */ 41 "strict": true, /* Enable all strict type-checking options. */ 42 43 /* Completeness */ 44 //"skipLibCheck": true /* Skip type checking all .d.ts files. */ 45 }, 46 "exclude": [ 47 "coverage" 48 ] 2 "extends": "@ljharb/tsconfig", 3 "exclude": [ 4 "coverage", 5 ], 6 "compilerOptions": { 7 "typeRoots": [ 8 "types", 9 ], 10 }, 49 11 }
Note:
See TracChangeset
for help on using the changeset viewer.