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-number-object
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/is-number-object/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.1](https://github.com/inspect-js/is-number-object/compare/v1.1.0...v1.1.1) - 2024-12-15
     9
     10### Commits
     11
     12- [Dev Deps] update `@arethetypeswrong/cli`,` @ljharb/tsconfig`, `@types/tape` [`00d566d`](https://github.com/inspect-js/is-number-object/commit/00d566d869ee316c896aa6f3cd694996bab6f482)
     13- [Refactor] use `call-bound` directly [`073d5df`](https://github.com/inspect-js/is-number-object/commit/073d5df97278ab54e32750f24d4eeee1d94965d4)
     14- [Deps] update `call-bind` [`36c84af`](https://github.com/inspect-js/is-number-object/commit/36c84afd5553a538cceb3da56a8721b597f540bc)
     15
     16## [v1.1.0](https://github.com/inspect-js/is-number-object/compare/v1.0.7...v1.1.0) - 2024-12-01
     17
     18### Commits
     19
     20- [meta] use `npmignore` to autogenerate an npmignore file [`cb8423c`](https://github.com/inspect-js/is-number-object/commit/cb8423cd42bded7c9321e785a97c5305c2706b02)
     21- [New] add types [`273e406`](https://github.com/inspect-js/is-number-object/commit/273e4063e786210ce135237f1232630eecc22a88)
     22- [actions] split out node 10-20, and 20+ [`3da6267`](https://github.com/inspect-js/is-number-object/commit/3da6267437bbc8d8322abc231f6fbcdbdce1b9b4)
     23- [Robustness] use `call-bind` [`834c098`](https://github.com/inspect-js/is-number-object/commit/834c09801d923ddf638585a94020b7c3b3cec3dc)
     24- [actions] update rebase action to use reusable workflow [`84a8a9f`](https://github.com/inspect-js/is-number-object/commit/84a8a9f61b1e098cba7d2603d98c06fc96b60d60)
     25- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `core-js`, `npmignore`, `tape` [`7275bca`](https://github.com/inspect-js/is-number-object/commit/7275bcad3910fe3073ca960fdb8018904f4eb5a0)
     26- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `core-js`, `tape` [`49a83aa`](https://github.com/inspect-js/is-number-object/commit/49a83aa830081afcbeae32adcd853f19202acc89)
     27- [Tests] replace `aud` with `npm audit` [`061492b`](https://github.com/inspect-js/is-number-object/commit/061492b782012e0d58714bdf8a1423910d6ea49a)
     28- [Refactor] avoid an expensive check, for null [`08d29a8`](https://github.com/inspect-js/is-number-object/commit/08d29a8442f5340eedc3817eddd8d1f4bfd02be2)
     29- [Deps] update `has-tostringtag` [`4e2ad65`](https://github.com/inspect-js/is-number-object/commit/4e2ad656b23fcfdc3fe8979c7865f501f49c4704)
     30- [Dev Deps] add missing peer dep [`8228bfa`](https://github.com/inspect-js/is-number-object/commit/8228bfa94317d0cd5a5e880991cb3c0f0c5e119b)
    731
    832## [v1.0.7](https://github.com/inspect-js/is-number-object/compare/v1.0.6...v1.0.7) - 2022-04-01
  • imaps-frontend/node_modules/is-number-object/index.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var numToStr = Number.prototype.toString;
     3var callBound = require('call-bound');
     4
     5var $numToStr = callBound('Number.prototype.toString');
     6
     7/** @type {import('.')} */
    48var tryNumberObject = function tryNumberObject(value) {
    59        try {
    6                 numToStr.call(value);
     10                $numToStr(value);
    711                return true;
    812        } catch (e) {
     
    1014        }
    1115};
    12 var toStr = Object.prototype.toString;
     16var $toString = callBound('Object.prototype.toString');
    1317var numClass = '[object Number]';
    1418var hasToStringTag = require('has-tostringtag/shams')();
    1519
     20/** @type {import('.')} */
    1621module.exports = function isNumberObject(value) {
    1722        if (typeof value === 'number') {
    1823                return true;
    1924        }
    20         if (typeof value !== 'object') {
     25        if (!value || typeof value !== 'object') {
    2126                return false;
    2227        }
    23         return hasToStringTag ? tryNumberObject(value) : toStr.call(value) === numClass;
     28        return hasToStringTag ? tryNumberObject(value) : $toString(value) === numClass;
    2429};
  • imaps-frontend/node_modules/is-number-object/package.json

    r0c6b92a r79a0317  
    11{
    2         "name": "is-number-object",
    3         "version": "1.0.7",
    4         "author": "Jordan Harband <ljharb@gmail.com>",
    5         "funding": {
    6                 "url": "https://github.com/sponsors/ljharb"
    7         },
    8         "description": "Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
    9         "main": "index.js",
    10         "scripts": {
    11                 "prepublishOnly": "safe-publish-latest",
    12                 "prepublish": "not-in-publish || npm run prepublishOnly",
    13                 "pretest": "npm run lint",
    14                 "tests-only": "nyc tape 'test/**/*.js'",
    15                 "test:corejs": "nyc tape test-corejs.js",
    16                 "test": "npm run tests-only && npm run test:corejs",
    17                 "posttest": "aud --production",
    18                 "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
    19                 "lint": "eslint --ext=js,mjs .",
    20                 "version": "auto-changelog && git add CHANGELOG.md",
    21                 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
    22         },
    23         "repository": {
    24                 "type": "git",
    25                 "url": "git://github.com/inspect-js/is-number-object.git"
    26         },
    27         "keywords": [
    28                 "Number",
    29                 "ES6",
    30                 "toStringTag",
    31                 "@@toStringTag",
    32                 "Number object"
    33         ],
    34         "license": "MIT",
    35         "bugs": {
    36                 "url": "https://github.com/inspect-js/is-number-object/issues"
    37         },
    38         "homepage": "https://github.com/inspect-js/is-number-object#readme",
    39         "devDependencies": {
    40                 "@ljharb/eslint-config": "^20.2.3",
    41                 "aud": "^2.0.0",
    42                 "auto-changelog": "^2.4.0",
    43                 "core-js": "^3.21.1",
    44                 "eclint": "^2.8.1",
    45                 "eslint": "=8.8.0",
    46                 "foreach": "^2.0.5",
    47                 "indexof": "^0.0.1",
    48                 "is": "^3.3.0",
    49                 "nyc": "^10.3.2",
    50                 "safe-publish-latest": "^2.0.0",
    51                 "tape": "^5.5.2"
    52         },
    53         "testling": {
    54                 "files": "test/index.js",
    55                 "browsers": [
    56                         "iexplore/6.0..latest",
    57                         "firefox/3.0..6.0",
    58                         "firefox/15.0..latest",
    59                         "firefox/nightly",
    60                         "chrome/4.0..10.0",
    61                         "chrome/20.0..latest",
    62                         "chrome/canary",
    63                         "opera/10.0..latest",
    64                         "opera/next",
    65                         "safari/4.0..latest",
    66                         "ipad/6.0..latest",
    67                         "iphone/6.0..latest",
    68                         "android-browser/4.2"
    69                 ]
    70         },
    71         "engines": {
    72                 "node": ">= 0.4"
    73         },
    74         "auto-changelog": {
    75                 "output": "CHANGELOG.md",
    76                 "template": "keepachangelog",
    77                 "unreleased": false,
    78                 "commitLimit": false,
    79                 "backfillLimit": false,
    80                 "hideCredit": true
    81         },
    82         "dependencies": {
    83                 "has-tostringtag": "^1.0.0"
    84         }
     2  "_from": "is-number-object@^1.1.1",
     3  "_id": "is-number-object@1.1.1",
     4  "_inBundle": false,
     5  "_integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==",
     6  "_location": "/is-number-object",
     7  "_phantomChildren": {},
     8  "_requested": {
     9    "type": "range",
     10    "registry": true,
     11    "raw": "is-number-object@^1.1.1",
     12    "name": "is-number-object",
     13    "escapedName": "is-number-object",
     14    "rawSpec": "^1.1.1",
     15    "saveSpec": null,
     16    "fetchSpec": "^1.1.1"
     17  },
     18  "_requiredBy": [
     19    "/which-boxed-primitive"
     20  ],
     21  "_resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz",
     22  "_shasum": "144b21e95a1bc148205dcc2814a9134ec41b2541",
     23  "_spec": "is-number-object@^1.1.1",
     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-number-object/issues"
     39  },
     40  "bundleDependencies": false,
     41  "dependencies": {
     42    "call-bound": "^1.0.3",
     43    "has-tostringtag": "^1.0.2"
     44  },
     45  "deprecated": false,
     46  "description": "Is this value a JS Number object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
     47  "devDependencies": {
     48    "@arethetypeswrong/cli": "^0.17.1",
     49    "@ljharb/eslint-config": "^21.1.1",
     50    "@ljharb/tsconfig": "^0.2.2",
     51    "@types/core-js": "^2.5.8",
     52    "@types/tape": "^5.7.0",
     53    "auto-changelog": "^2.5.0",
     54    "core-js": "^3.39.0",
     55    "eclint": "^2.8.1",
     56    "encoding": "^0.1.13",
     57    "eslint": "=8.8.0",
     58    "in-publish": "^2.0.1",
     59    "indexof": "^0.0.1",
     60    "is": "^3.3.0",
     61    "npmignore": "^0.3.1",
     62    "nyc": "^10.3.2",
     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-number-object#readme",
     74  "keywords": [
     75    "Number",
     76    "ES6",
     77    "toStringTag",
     78    "@@toStringTag",
     79    "Number object"
     80  ],
     81  "license": "MIT",
     82  "main": "index.js",
     83  "name": "is-number-object",
     84  "publishConfig": {
     85    "ignore": [
     86      ".github/workflows",
     87      "test-corejs.js"
     88    ]
     89  },
     90  "repository": {
     91    "type": "git",
     92    "url": "git://github.com/inspect-js/is-number-object.git"
     93  },
     94  "scripts": {
     95    "lint": "eslint --ext=js,mjs .",
     96    "postlint": "tsc -p . && attw -P",
     97    "posttest": "npx npm@'>=10.2' audit --production",
     98    "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
     99    "prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
     100    "prepack": "npmignore --auto --commentLines=autogenerated",
     101    "prepublish": "not-in-publish || npm run prepublishOnly",
     102    "prepublishOnly": "safe-publish-latest",
     103    "pretest": "npm run lint",
     104    "test": "npm run tests-only && npm run test:corejs",
     105    "test:corejs": "nyc tape test-corejs.js",
     106    "tests-only": "nyc tape 'test/**/*.js'",
     107    "version": "auto-changelog && git add CHANGELOG.md"
     108  },
     109  "testling": {
     110    "files": "test/index.js"
     111  },
     112  "version": "1.1.1"
    85113}
  • imaps-frontend/node_modules/is-number-object/test/index.js

    r0c6b92a r79a0317  
    66
    77test('not Numbers', function (t) {
     8        // @ts-expect-error
    89        t.notOk(isNumber(), 'undefined is not Number');
    910        t.notOk(isNumber(null), 'null is not Number');
     
    2122
    2223test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
     24        /** @type {{ toString(): string; valueOf(): number; [Symbol.toStringTag]?: string; }} */
    2325        var fakeNumber = {
    2426                toString: function () { return '7'; },
Note: See TracChangeset for help on using the changeset viewer.