Changeset 79a0317 for imaps-frontend/node_modules/es-object-atoms
- Timestamp:
- 01/21/25 03:08:24 (3 days ago)
- Branches:
- main
- Parents:
- 0c6b92a
- Location:
- imaps-frontend/node_modules/es-object-atoms
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-object-atoms/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.1.1](https://github.com/ljharb/es-object-atoms/compare/v1.1.0...v1.1.1) - 2025-01-14 9 10 ### Commits 11 12 - [types] `ToObject`: improve types [`cfe8c8a`](https://github.com/ljharb/es-object-atoms/commit/cfe8c8a105c44820cb22e26f62d12ef0ad9715c8) 13 14 ## [v1.1.0](https://github.com/ljharb/es-object-atoms/compare/v1.0.1...v1.1.0) - 2025-01-14 15 16 ### Commits 17 18 - [New] add `isObject` [`51e4042`](https://github.com/ljharb/es-object-atoms/commit/51e4042df722eb3165f40dc5f4bf33d0197ecb07) 19 20 ## [v1.0.1](https://github.com/ljharb/es-object-atoms/compare/v1.0.0...v1.0.1) - 2025-01-13 21 22 ### Commits 23 24 - [Dev Deps] update `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/tape`, `auto-changelog`, `tape` [`38ab9eb`](https://github.com/ljharb/es-object-atoms/commit/38ab9eb00b62c2f4668644f5e513d9b414ebd595) 25 - [types] improve types [`7d1beb8`](https://github.com/ljharb/es-object-atoms/commit/7d1beb887958b78b6a728a210a1c8370ab7e2aa1) 26 - [Tests] replace `aud` with `npm audit` [`25863ba`](https://github.com/ljharb/es-object-atoms/commit/25863baf99178f1d1ad33d1120498db28631907e) 27 - [Dev Deps] add missing peer dep [`c012309`](https://github.com/ljharb/es-object-atoms/commit/c0123091287e6132d6f4240496340c427433df28) 7 28 8 29 ## v1.0.0 - 2024-03-16 -
imaps-frontend/node_modules/es-object-atoms/README.md
r0c6b92a r79a0317 16 16 17 17 const $Object = require('es-object-atoms'); 18 const isObject = require('es-object-atoms/isObject'); 18 19 const ToObject = require('es-object-atoms/ToObject'); 19 20 const RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible'); … … 24 25 assert.throws(() => RequireObjectCoercible(null), TypeError); 25 26 assert.throws(() => RequireObjectCoercible(undefined), TypeError); 27 28 assert.equal(isObject(undefined), false); 29 assert.equal(isObject(null), false); 30 assert.equal(isObject({}), true); 31 assert.equal(isObject([]), true); 32 assert.equal(isObject(function () {}), true); 26 33 27 34 assert.deepEqual(RequireObjectCoercible(true), true); -
imaps-frontend/node_modules/es-object-atoms/RequireObjectCoercible.d.ts
r0c6b92a r79a0317 1 declare function RequireObjectCoercible<T extends {} = {}>(value: T, optMessage?: string): T;1 declare function RequireObjectCoercible<T extends {}>(value: T, optMessage?: string): T; 2 2 3 3 export = RequireObjectCoercible; -
imaps-frontend/node_modules/es-object-atoms/ToObject.d.ts
r0c6b92a r79a0317 1 declare function ToObject<T = {}>(value: T extends object ? T : {}): T extends object ? T : object; 1 declare function ToObject<T extends object>(value: number): Number; 2 declare function ToObject<T extends object>(value: boolean): Boolean; 3 declare function ToObject<T extends object>(value: string): String; 4 declare function ToObject<T extends object>(value: bigint): BigInt; 5 declare function ToObject<T extends object>(value: T): T; 2 6 3 7 export = ToObject; -
imaps-frontend/node_modules/es-object-atoms/package.json
r0c6b92a r79a0317 1 1 { 2 "name": "es-object-atoms", 3 "version": "1.0.0", 4 "description": "ES Object-related atoms: Object, ToObject, RequireObjectCoercible", 5 "main": "index.js", 6 "exports": { 7 ".": "./index.js", 8 "./RequireObjectCoercible": "./RequireObjectCoercible.js", 9 "./ToObject": "./ToObject.js", 10 "./package.json": "./package.json" 11 }, 12 "sideEffects": false, 13 "scripts": { 14 "prepack": "npmignore --auto --commentLines=autogenerated", 15 "prepublishOnly": "safe-publish-latest", 16 "prepublish": "not-in-publish || npm run prepublishOnly", 17 "pretest": "npm run lint", 18 "test": "npm run tests-only", 19 "tests-only": "nyc tape 'test/**/*.js'", 20 "posttest": "aud --production", 21 "prelint": "evalmd README.md", 22 "lint": "eslint --ext=js,mjs .", 23 "postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", 24 "version": "auto-changelog && git add CHANGELOG.md", 25 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" 26 }, 27 "repository": { 28 "type": "git", 29 "url": "git+https://github.com/ljharb/es-object-atoms.git" 30 }, 31 "keywords": [ 32 "javascript", 33 "ecmascript", 34 "object", 35 "toobject", 36 "coercible" 37 ], 38 "author": "Jordan Harband <ljharb@gmail.com>", 39 "license": "MIT", 40 "bugs": { 41 "url": "https://github.com/ljharb/es-object-atoms/issues" 42 }, 43 "homepage": "https://github.com/ljharb/es-object-atoms#readme", 44 "dependencies": { 45 "es-errors": "^1.3.0" 46 }, 47 "devDependencies": { 48 "@ljharb/eslint-config": "^21.1.0", 49 "@ljharb/tsconfig": "^0.2.0", 50 "@types/tape": "^5.6.4", 51 "aud": "^2.0.4", 52 "auto-changelog": "^2.4.0", 53 "eclint": "^2.8.1", 54 "eslint": "^8.8.0", 55 "evalmd": "^0.0.19", 56 "in-publish": "^2.0.1", 57 "npmignore": "^0.3.1", 58 "nyc": "^10.3.2", 59 "safe-publish-latest": "^2.0.0", 60 "tape": "^5.7.5", 61 "typescript": "next" 62 }, 63 "auto-changelog": { 64 "output": "CHANGELOG.md", 65 "template": "keepachangelog", 66 "unreleased": false, 67 "commitLimit": false, 68 "backfillLimit": false, 69 "hideCredit": true 70 }, 71 "publishConfig": { 72 "ignore": [ 73 ".github/workflows" 74 ] 75 }, 76 "engines": { 77 "node": ">= 0.4" 78 } 2 "_from": "es-object-atoms@^1.0.0", 3 "_id": "es-object-atoms@1.1.1", 4 "_inBundle": false, 5 "_integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 6 "_location": "/es-object-atoms", 7 "_phantomChildren": {}, 8 "_requested": { 9 "type": "range", 10 "registry": true, 11 "raw": "es-object-atoms@^1.0.0", 12 "name": "es-object-atoms", 13 "escapedName": "es-object-atoms", 14 "rawSpec": "^1.0.0", 15 "saveSpec": null, 16 "fetchSpec": "^1.0.0" 17 }, 18 "_requiredBy": [ 19 "/array-includes", 20 "/array.prototype.findlast", 21 "/es-abstract", 22 "/get-intrinsic", 23 "/get-proto", 24 "/iterator.prototype", 25 "/object.assign", 26 "/object.entries", 27 "/object.fromentries", 28 "/object.values", 29 "/reflect.getprototypeof", 30 "/set-proto", 31 "/string.prototype.matchall", 32 "/string.prototype.trim", 33 "/string.prototype.trimend", 34 "/string.prototype.trimstart" 35 ], 36 "_resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 37 "_shasum": "1c4f2c4837327597ce69d2ca190a7fdd172338c1", 38 "_spec": "es-object-atoms@^1.0.0", 39 "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/array-includes", 40 "author": { 41 "name": "Jordan Harband", 42 "email": "ljharb@gmail.com" 43 }, 44 "auto-changelog": { 45 "output": "CHANGELOG.md", 46 "template": "keepachangelog", 47 "unreleased": false, 48 "commitLimit": false, 49 "backfillLimit": false, 50 "hideCredit": true 51 }, 52 "bugs": { 53 "url": "https://github.com/ljharb/es-object-atoms/issues" 54 }, 55 "bundleDependencies": false, 56 "dependencies": { 57 "es-errors": "^1.3.0" 58 }, 59 "deprecated": false, 60 "description": "ES Object-related atoms: Object, ToObject, RequireObjectCoercible", 61 "devDependencies": { 62 "@ljharb/eslint-config": "^21.1.1", 63 "@ljharb/tsconfig": "^0.2.3", 64 "@types/tape": "^5.8.1", 65 "auto-changelog": "^2.5.0", 66 "eclint": "^2.8.1", 67 "encoding": "^0.1.13", 68 "eslint": "^8.8.0", 69 "evalmd": "^0.0.19", 70 "in-publish": "^2.0.1", 71 "npmignore": "^0.3.1", 72 "nyc": "^10.3.2", 73 "safe-publish-latest": "^2.0.0", 74 "tape": "^5.9.0", 75 "typescript": "next" 76 }, 77 "engines": { 78 "node": ">= 0.4" 79 }, 80 "exports": { 81 ".": "./index.js", 82 "./RequireObjectCoercible": "./RequireObjectCoercible.js", 83 "./isObject": "./isObject.js", 84 "./ToObject": "./ToObject.js", 85 "./package.json": "./package.json" 86 }, 87 "homepage": "https://github.com/ljharb/es-object-atoms#readme", 88 "keywords": [ 89 "javascript", 90 "ecmascript", 91 "object", 92 "toobject", 93 "coercible" 94 ], 95 "license": "MIT", 96 "main": "index.js", 97 "name": "es-object-atoms", 98 "publishConfig": { 99 "ignore": [ 100 ".github/workflows" 101 ] 102 }, 103 "repository": { 104 "type": "git", 105 "url": "git+https://github.com/ljharb/es-object-atoms.git" 106 }, 107 "scripts": { 108 "lint": "eslint --ext=js,mjs .", 109 "postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", 110 "posttest": "npx npm@\">= 10.2\" audit --production", 111 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"", 112 "prelint": "evalmd README.md", 113 "prepack": "npmignore --auto --commentLines=autogenerated", 114 "prepublish": "not-in-publish || npm run prepublishOnly", 115 "prepublishOnly": "safe-publish-latest", 116 "pretest": "npm run lint", 117 "test": "npm run tests-only", 118 "tests-only": "nyc tape 'test/**/*.js'", 119 "version": "auto-changelog && git add CHANGELOG.md" 120 }, 121 "sideEffects": false, 122 "version": "1.1.1" 79 123 } -
imaps-frontend/node_modules/es-object-atoms/test/index.js
r0c6b92a r79a0317 4 4 5 5 var $Object = require('../'); 6 var ToObject = require('..//ToObject'); 6 var isObject = require('../isObject'); 7 var ToObject = require('../ToObject'); 7 8 var RequireObjectCoercible = require('..//RequireObjectCoercible'); 8 9 … … 20 21 t.deepEqual(RequireObjectCoercible(true), true); 21 22 t.deepEqual(ToObject(true), Object(true)); 23 t.deepEqual(ToObject(42), Object(42)); 24 var f = function () {}; 25 t.equal(ToObject(f), f); 26 27 t.equal(isObject(undefined), false); 28 t.equal(isObject(null), false); 29 t.equal(isObject({}), true); 30 t.equal(isObject([]), true); 31 t.equal(isObject(function () {}), true); 22 32 23 33 var obj = {};
Note:
See TracChangeset
for help on using the changeset viewer.