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/is-bigint
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/is-bigint/.eslintrc

    r0c6b92a r79a0317  
    33
    44        "extends": "@ljharb",
    5 
    6         "rules": {
    7                 "new-cap": [2, { "capIsNewExceptions": ["BigInt"] }],
    8                 "operator-linebreak": [2, "before"],
    9         },
    105}
  • imaps-frontend/node_modules/is-bigint/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/inspect-js/is-bigint/compare/v1.0.4...v1.1.0) - 2024-12-02
     9
     10### Commits
     11
     12- [actions] reuse common workflows [`0e63a44`](https://github.com/inspect-js/is-bigint/commit/0e63a44e5d1f26783bd5a40d7aa32c14b50fd567)
     13- [meta] use `npmignore` to autogenerate an npmignore file [`47584ee`](https://github.com/inspect-js/is-bigint/commit/47584ee7ac726a5c7f5f2f5f34b97529134cf602)
     14- [Tests] use `for-each` and `es-value-fixtures` [`f226864`](https://github.com/inspect-js/is-bigint/commit/f22686422b46334c64b3658fba1237751d24460c)
     15- [New] add types [`78e2c47`](https://github.com/inspect-js/is-bigint/commit/78e2c473ff73d73eef27b7eb27695393667360e1)
     16- [actions] split out node 10-20, and 20+ [`4395a8d`](https://github.com/inspect-js/is-bigint/commit/4395a8d340b1aa3c4e68b37092fcbcace14de41f)
     17- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `has-symbols`, `object-inspect`, `tape` [`c188501`](https://github.com/inspect-js/is-bigint/commit/c188501f67f4c220fcdf8d280c99e1f6af5d217e)
     18- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `safe-publish-latest`, `tape` [`5360d32`](https://github.com/inspect-js/is-bigint/commit/5360d32eee0e29f09b02d3adb51086dc71160939)
     19- [actions] update rebase action to use reusable workflow [`d5c1775`](https://github.com/inspect-js/is-bigint/commit/d5c1775e437be97099a7e63b9bd68852b28e0ba7)
     20- [actions] update codecov uploader [`c7478c7`](https://github.com/inspect-js/is-bigint/commit/c7478c74498ab954917bd6a561d0ee7d0ba60a6a)
     21- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `npmignore`, `object-inspect`, `tape` [`6fbce66`](https://github.com/inspect-js/is-bigint/commit/6fbce66ebab2ef471bfe841c8436eba3dce118c6)
     22- [meta] add missing `engines.node` [`6f9ed42`](https://github.com/inspect-js/is-bigint/commit/6f9ed42ed8cb00b3fccdb62d4fcc8e7ab074e194)
     23- [Tests] replace `aud` with `npm audit` [`21846c3`](https://github.com/inspect-js/is-bigint/commit/21846c305e5d662ec81b4922cbc57e9324ccd222)
     24- [Dev Deps] remove unused `has-symbols`, add missing `has-tostringtag` [`b378d94`](https://github.com/inspect-js/is-bigint/commit/b378d942933ae97ab9610d83d69b52380d6a137c)
     25- [Deps] update `has-bigints` [`f46c35b`](https://github.com/inspect-js/is-bigint/commit/f46c35be813c05549865477bd771300c2595496e)
     26- [Dev Deps] add missing peer dep [`2b9be16`](https://github.com/inspect-js/is-bigint/commit/2b9be16ab6150d588f00d037b55050d8372953a3)
    727
    828## [v1.0.4](https://github.com/inspect-js/is-bigint/compare/v1.0.3...v1.0.4) - 2021-08-11
  • imaps-frontend/node_modules/is-bigint/index.js

    r0c6b92a r79a0317  
    55if (hasBigInts) {
    66        var bigIntValueOf = BigInt.prototype.valueOf;
     7        /** @type {(value: object) => value is BigInt} */
    78        var tryBigInt = function tryBigIntObject(value) {
    89                try {
     
    1415        };
    1516
     17        /** @type {import('.')} */
    1618        module.exports = function isBigInt(value) {
    1719                if (
     
    3335        };
    3436} else {
     37        /** @type {import('.')} */
    3538        module.exports = function isBigInt(value) {
    3639                return false && value;
  • imaps-frontend/node_modules/is-bigint/package.json

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

    r0c6b92a r79a0317  
    44var inspect = require('object-inspect');
    55var hasBigInts = require('has-bigints')();
    6 var hasSymbols = require('has-symbols')();
    76var hasToStringTag = require('has-tostringtag/shams')();
     7var forEach = require('for-each');
     8var v = require('es-value-fixtures');
    89
    910var isBigInt = require('../');
    1011
    11 var debug = function (v, m) { return inspect(v) + ' ' + m; };
    12 
    13 var forEach = function (arr, func) {
    14         var i;
    15         for (i = 0; i < arr.length; ++i) {
    16                 func(arr[i], i, arr);
    17         }
    18 };
    19 
    2012test('non-BigInt values', function (t) {
    21         var nonBigInts = [
    22                 true,
    23                 false,
     13        /** @type {(typeof v.primitives[number] | object)[]} */
     14        var nonBigInts = v.nonBigInts.concat(
    2415                Object(true),
    2516                Object(false),
    26                 null,
    27                 undefined,
     17                // @ts-expect-error TS sucks with concat
    2818                {},
    2919                [],
    3020                /a/g,
    31                 'string',
    32                 42,
    3321                new Date(),
    3422                function () {},
    35                 NaN
    36         ];
    37         if (hasSymbols) {
    38                 nonBigInts.push(Symbol.iterator, Symbol('foo'));
    39         }
     23                NaN,
     24                v.symbols
     25        );
    4026        t.plan(nonBigInts.length);
    4127        forEach(nonBigInts, function (nonBigInt) {
    42                 t.equal(false, isBigInt(nonBigInt), debug(nonBigInt, 'is not a BigInt'));
     28                t.equal(false, isBigInt(nonBigInt), inspect(nonBigInt) + ' is not a BigInt');
    4329        });
    4430        t.end();
     
    5339
    5440        t.test('faked @@toStringTag', { skip: !hasBigInts || !hasToStringTag }, function (st) {
     41                /** @type {{ valueOf(): unknown; [Symbol.toStringTag]?: unknown }} */
    5542                var fakeBigInt = { valueOf: function () { return BigInt(42); } };
    5643                fakeBigInt[Symbol.toStringTag] = 'BigInt';
    5744                st.equal(false, isBigInt(fakeBigInt), 'object with fake BigInt @@toStringTag and valueOf returning a BigInt is not a BigInt');
    5845
     46                /** @type {{ valueOf(): unknown; [Symbol.toStringTag]?: unknown }} */
    5947                var notSoFakeBigInt = { valueOf: function () { return 42; } };
    6048                notSoFakeBigInt[Symbol.toStringTag] = 'BigInt';
     
    7058
    7159test('BigInt support', { skip: !hasBigInts }, function (t) {
    72         forEach([
    73                 Function('return 42n')(), // eslint-disable-line no-new-func
    74                 BigInt(42),
    75                 Object(BigInt(42))
    76         ], function (bigInt) {
    77                 t.equal(true, isBigInt(bigInt), debug(bigInt, 'is a BigInt'));
     60        forEach(v.bigints.concat(Object(BigInt(42))), function (bigInt) {
     61                t.equal(true, isBigInt(bigInt), inspect(bigInt) + ' is a BigInt');
    7862        });
    7963
Note: See TracChangeset for help on using the changeset viewer.