Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

Location:
imaps-frontend/node_modules/unbox-primitive
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/unbox-primitive/CHANGELOG.md

    r0c6b92a r79a0317  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [v1.1.0](https://github.com/ljharb/unbox-primitive/compare/v1.0.2...v1.1.0) - 2024-12-15
     9
     10### Commits
     11
     12- [meta] use `npmignore` to autogenerate an npmignore file [`348a5ad`](https://github.com/ljharb/unbox-primitive/commit/348a5ad5d353e7fcd6353934073ca3a982f40a4e)
     13- [New] add types [`a324230`](https://github.com/ljharb/unbox-primitive/commit/a32423092f81bfbf3c4dff77a5fa549ffae87daa)
     14- [Tests] use `es-value-fixtures` [`a321ae5`](https://github.com/ljharb/unbox-primitive/commit/a321ae56aaf30ea843c708bf6c6c13ee52eee205)
     15- [actions] split out node 10-20, and 20+ [`04a0e0d`](https://github.com/ljharb/unbox-primitive/commit/04a0e0d09907c2643e25ad69b49864c1c34e59d0)
     16- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `npmignore`, `object-inspect`, `object-is`, `tape` [`7fff971`](https://github.com/ljharb/unbox-primitive/commit/7fff97161bf83ebe348290ef27992af630ca92e9)
     17- [actions] update rebase action [`91d6807`](https://github.com/ljharb/unbox-primitive/commit/91d6807c562a39ce876feda777b641eb0ee64ce9)
     18- [Deps] update `call-bind`, `has-symbols`, `which-boxed-primitive` [`f8b6597`](https://github.com/ljharb/unbox-primitive/commit/f8b6597e071d05f0792f6eef0e2fbc30ddfe43d4)
     19- [Dev Deps] update `aud`, `object-inspect`, `tape` [`b3362a1`](https://github.com/ljharb/unbox-primitive/commit/b3362a164fdbee9006be765d99d5d835d6493326)
     20- [Refactor] use `call-bound` directly [`e29ff5f`](https://github.com/ljharb/unbox-primitive/commit/e29ff5f4cbcc58d32e670bce11d5c3137eae0c44)
     21- [meta] add missing `engines.node` [`d3420bc`](https://github.com/ljharb/unbox-primitive/commit/d3420bc8cda471cf62119e08d9581b72962f74f6)
     22- [Tests] replace `aud` with `npm audit` [`5e6a6d0`](https://github.com/ljharb/unbox-primitive/commit/5e6a6d0459b6fa8a812d00362fe60854333f1b64)
     23- [Deps] update `which-boxed-primitive` [`0ff873d`](https://github.com/ljharb/unbox-primitive/commit/0ff873dadf31962c2f00e24d8d7d30cfa8c60ac6)
     24- [Dev Deps] update `aud` [`dd0e373`](https://github.com/ljharb/unbox-primitive/commit/dd0e3733bb9db65d254492d6c1d1b710005b932f)
     25- [Dev Deps] add missing peer dep [`4f79b24`](https://github.com/ljharb/unbox-primitive/commit/4f79b240212d847276dba9a0044f356506eaeaa6)
    726
    827## [v1.0.2](https://github.com/ljharb/unbox-primitive/compare/v1.0.1...v1.0.2) - 2022-04-24
  • imaps-frontend/node_modules/unbox-primitive/index.js

    r0c6b92a r79a0317  
    22
    33var whichBoxedPrimitive = require('which-boxed-primitive');
    4 var callBound = require('call-bind/callBound');
     4var callBound = require('call-bound');
    55var hasSymbols = require('has-symbols')();
    66var hasBigInts = require('has-bigints')();
     
    1212var bigIntValueOf = hasBigInts && callBound('BigInt.prototype.valueOf');
    1313
     14/** @type {import('.')} */
    1415module.exports = function unboxPrimitive(value) {
    1516        var which = whichBoxedPrimitive(value);
     
    3132                        throw new EvalError('somehow this environment does not have Symbols, but you have a boxed Symbol value. Please report this!');
    3233                }
    33                 return symbolValueOf(value);
     34                // eslint-disable-next-line no-extra-parens
     35                return /** @type {Exclude<typeof symbolValueOf, false>} */ (symbolValueOf)(value);
    3436        }
    3537        if (which === 'BigInt') {
    36                 return bigIntValueOf(value);
     38                // eslint-disable-next-line no-extra-parens
     39                return /** @type {Exclude<typeof bigIntValueOf, false>} */ (bigIntValueOf)(value);
    3740        }
    3841        throw new RangeError('unknown boxed primitive found: ' + which);
  • imaps-frontend/node_modules/unbox-primitive/package.json

    r0c6b92a r79a0317  
    11{
    2         "name": "unbox-primitive",
    3         "version": "1.0.2",
    4         "description": "Unbox a boxed JS primitive value.",
    5         "main": "index.js",
    6         "scripts": {
    7                 "prepublish": "not-in-publish || npm run prepublishOnly",
    8                 "prepublishOnly": "safe-publish-latest",
    9                 "lint": "eslint --ext=js,mjs .",
    10                 "pretest": "npm run lint",
    11                 "tests-only": "nyc tape 'test/**/*.js'",
    12                 "test": "npm run tests-only",
    13                 "posttest": "aud --production",
    14                 "version": "auto-changelog && git add CHANGELOG.md",
    15                 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
    16         },
    17         "repository": {
    18                 "type": "git",
    19                 "url": "git+https://github.com/ljharb/unbox-primitive.git"
    20         },
    21         "keywords": [
    22                 "unbox",
    23                 "boxed",
    24                 "primitive",
    25                 "object",
    26                 "javascript",
    27                 "ecmascript"
    28         ],
    29         "author": "Jordan Harband <ljharb@gmail.com>",
    30         "funding": {
    31                 "url": "https://github.com/sponsors/ljharb"
    32         },
    33         "license": "MIT",
    34         "bugs": {
    35                 "url": "https://github.com/ljharb/unbox-primitive/issues"
    36         },
    37         "homepage": "https://github.com/ljharb/unbox-primitive#readme",
    38         "devDependencies": {
    39                 "@ljharb/eslint-config": "^21.0.0",
    40                 "aud": "^2.0.0",
    41                 "auto-changelog": "^2.4.0",
    42                 "eslint": "=8.8.0",
    43                 "for-each": "^0.3.3",
    44                 "in-publish": "^2.0.1",
    45                 "nyc": "^10.3.2",
    46                 "object-inspect": "^1.12.0",
    47                 "object-is": "^1.1.5",
    48                 "safe-publish-latest": "^2.0.0",
    49                 "tape": "^5.5.3"
    50         },
    51         "dependencies": {
    52                 "call-bind": "^1.0.2",
    53                 "has-bigints": "^1.0.2",
    54                 "has-symbols": "^1.0.3",
    55                 "which-boxed-primitive": "^1.0.2"
    56         },
    57         "auto-changelog": {
    58                 "output": "CHANGELOG.md",
    59                 "template": "keepachangelog",
    60                 "unreleased": false,
    61                 "commitLimit": false,
    62                 "backfillLimit": false,
    63                 "hideCredit": true
    64         }
     2  "_from": "unbox-primitive@^1.1.0",
     3  "_id": "unbox-primitive@1.1.0",
     4  "_inBundle": false,
     5  "_integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==",
     6  "_location": "/unbox-primitive",
     7  "_phantomChildren": {},
     8  "_requested": {
     9    "type": "range",
     10    "registry": true,
     11    "raw": "unbox-primitive@^1.1.0",
     12    "name": "unbox-primitive",
     13    "escapedName": "unbox-primitive",
     14    "rawSpec": "^1.1.0",
     15    "saveSpec": null,
     16    "fetchSpec": "^1.1.0"
     17  },
     18  "_requiredBy": [
     19    "/es-abstract"
     20  ],
     21  "_resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz",
     22  "_shasum": "8d9d2c9edeea8460c7f35033a88867944934d1e2",
     23  "_spec": "unbox-primitive@^1.1.0",
     24  "_where": "/home/stevetosak/Proekt/IMaps/imaps-frontend/node_modules/es-abstract",
     25  "author": {
     26    "name": "Jordan Harband",
     27    "email": "ljharb@gmail.com"
     28  },
     29  "auto-changelog": {
     30    "output": "CHANGELOG.md",
     31    "template": "keepachangelog",
     32    "unreleased": false,
     33    "commitLimit": false,
     34    "backfillLimit": false,
     35    "hideCredit": true
     36  },
     37  "bugs": {
     38    "url": "https://github.com/ljharb/unbox-primitive/issues"
     39  },
     40  "bundleDependencies": false,
     41  "dependencies": {
     42    "call-bound": "^1.0.3",
     43    "has-bigints": "^1.0.2",
     44    "has-symbols": "^1.1.0",
     45    "which-boxed-primitive": "^1.1.1"
     46  },
     47  "deprecated": false,
     48  "description": "Unbox a boxed JS primitive value.",
     49  "devDependencies": {
     50    "@arethetypeswrong/cli": "^0.17.1",
     51    "@ljharb/eslint-config": "^21.1.1",
     52    "@ljharb/tsconfig": "^0.2.2",
     53    "@types/for-each": "^0.3.3",
     54    "@types/object-inspect": "^1.13.0",
     55    "@types/object-is": "^1.1.0",
     56    "@types/tape": "^5.7.0",
     57    "auto-changelog": "^2.5.0",
     58    "encoding": "^0.1.13",
     59    "es-value-fixtures": "^1.5.0",
     60    "eslint": "=8.8.0",
     61    "for-each": "^0.3.3",
     62    "in-publish": "^2.0.1",
     63    "npmignore": "^0.3.1",
     64    "nyc": "^10.3.2",
     65    "object-inspect": "^1.13.3",
     66    "object-is": "^1.1.6",
     67    "safe-publish-latest": "^2.0.0",
     68    "tape": "^5.9.0",
     69    "typescript": "next"
     70  },
     71  "engines": {
     72    "node": ">= 0.4"
     73  },
     74  "funding": {
     75    "url": "https://github.com/sponsors/ljharb"
     76  },
     77  "homepage": "https://github.com/ljharb/unbox-primitive#readme",
     78  "keywords": [
     79    "unbox",
     80    "boxed",
     81    "primitive",
     82    "object",
     83    "javascript",
     84    "ecmascript"
     85  ],
     86  "license": "MIT",
     87  "main": "index.js",
     88  "name": "unbox-primitive",
     89  "publishConfig": {
     90    "ignore": [
     91      ".github/workflows"
     92    ]
     93  },
     94  "repository": {
     95    "type": "git",
     96    "url": "git+https://github.com/ljharb/unbox-primitive.git"
     97  },
     98  "scripts": {
     99    "lint": "eslint --ext=js,mjs .",
     100    "postlint": "tsc && attw -P",
     101    "posttest": "npx npm@'>= 10.2' audit --production",
     102    "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
     103    "prepack": "npmignore --auto --commentLines=autogenerated",
     104    "prepublish": "not-in-publish || npm run prepublishOnly",
     105    "prepublishOnly": "safe-publish-latest",
     106    "pretest": "npm run lint",
     107    "test": "npm run tests-only",
     108    "tests-only": "nyc tape 'test/**/*.js'",
     109    "version": "auto-changelog && git add CHANGELOG.md"
     110  },
     111  "version": "1.1.0"
    65112}
  • imaps-frontend/node_modules/unbox-primitive/test/index.js

    r0c6b92a r79a0317  
    55var is = require('object-is');
    66var forEach = require('for-each');
    7 var hasSymbols = require('has-symbols')();
    8 var hasBigInts = require('has-bigints')();
     7var v = require('es-value-fixtures');
    98
    109var unboxPrimitive = require('..');
    1110
    12 var debug = function (v, m) { return inspect(v) + ' ' + m; };
     11test('primitives', function (t) {
     12        forEach([null, undefined], function (nullValue) {
     13                t['throws'](
     14                        // @ts-expect-error
     15                        function () { unboxPrimitive(nullValue); },
     16                        TypeError,
     17                        inspect(nullValue) + ' is not a primitive'
     18                );
     19        });
    1320
    14 test('primitives', function (t) {
    15         var primitives = [
    16                 true,
    17                 false,
    18                 '',
    19                 'foo',
    20                 42,
    21                 NaN,
    22                 Infinity,
    23                 0
    24         ];
    25         if (hasSymbols) {
    26                 primitives.push(Symbol(), Symbol.iterator, Symbol('f'));
    27         }
    28         if (hasBigInts) {
    29                 primitives.push(BigInt(42), BigInt(0));
    30         }
    31         forEach(primitives, function (primitive) {
     21        // eslint-disable-next-line no-extra-parens
     22        forEach(/** @type {typeof v.nonNullPrimitives} */ ([].concat(
     23                // @ts-expect-error TS sucks with concat
     24                v.nonNullPrimitives,
     25                v.zeroes,
     26                v.infinities,
     27                NaN
     28        )), function (primitive) {
    3229                var obj = Object(primitive);
    3330                t.ok(
    3431                        is(unboxPrimitive(obj), primitive),
    35                         debug(obj, 'unboxes to ' + inspect(primitive))
     32                        inspect(obj) + 'unboxes to ' + inspect(primitive)
    3633                );
    3734        });
     
    4138
    4239test('objects', function (t) {
    43         var objects = [
     40        // eslint-disable-next-line no-extra-parens
     41        forEach(/** @type {typeof v.objects} */ (/** @type {unknown} */ ([].concat(
     42                // @ts-expect-error TS sucks with concat
     43                v.objects,
    4444                {},
    4545                [],
     
    4747                /a/g,
    4848                new Date()
    49         ];
    50         forEach(objects, function (object) {
     49        ))), function (object) {
    5150                t['throws'](
     51                        // @ts-expect-error
    5252                        function () { unboxPrimitive(object); },
    5353                        TypeError,
    54                         debug(object, 'is not a primitive')
     54                        inspect(object) + ' is not a primitive'
    5555                );
    5656        });
Note: See TracChangeset for help on using the changeset viewer.