Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions manifests/micro-utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@
"description": "You can use the modulo operator to check if a number is even.",
"example": "(n % 2) === 0"
},
"snippet::is-function": {
"id": "snippet::is-function",
"type": "simple",
"description": "You can use `typeof` to check if a value is a function.",
"example": "const isString = (value) => typeof value === \"function\";"
},
"snippet::is-generator-function": {
"id": "snippet::is-generator-function",
"type": "simple",
Expand Down Expand Up @@ -180,6 +186,12 @@
"description": "If the current environment is npm the `npm_config_user_agent` environment variable will be set and start with `\"npm\"`.",
"example": "const isNpm = process.env.npm_config_user_agent?.startsWith(\"npm\")"
},
"snippet::is-null": {
"id": "snippet::is-null",
"type": "simple",
"description": "You can check if a value is `null` using regular equality checks.",
"example": "value === null"
},
"snippet::is-number": {
"id": "snippet::is-number",
"type": "simple",
Expand Down Expand Up @@ -240,6 +252,12 @@
"description": "You can check if the current environment is Travis CI by checking if the `TRAVIS` environment variable is set.",
"example": "const isTravis = () => \"TRAVIS\" in process.env;"
},
"snippet::is-undefined": {
"id": "snippet::is-undefined",
"type": "simple",
"description": "You can use `typeof` to check if a value is `undefined`.",
"example": "typeof value === \"undefined\";"
},
"snippet::is-whitespace": {
"id": "snippet::is-whitespace",
"type": "simple",
Expand All @@ -264,6 +282,12 @@
"description": "You can use `Math.random()` or `crypto.getRandomValues` if cryptographic randomness is required.",
"example": "crypto.getRandomValues(new Uint32Array(1))[0] / (2 ** 32);\n// or\nMath.random();"
},
"snippet::noop": {
"id": "snippet::noop",
"type": "simple",
"description": "You can use an arrow function `() => {}` for a noop function.",
"example": "const noop = () => {}"
},
"snippet::object-filter": {
"id": "snippet::object-filter",
"type": "simple",
Expand Down Expand Up @@ -628,6 +652,61 @@
"moduleName": "last-char",
"replacements": ["snippet::char-last"]
},
"lodash.isboolean": {
"type": "module",
"moduleName": "lodash.isboolean",
"replacements": ["snippet::is-boolean"]
},
"lodash.isfunction": {
"type": "module",
"moduleName": "lodash.isfunction",
"replacements": ["snippet::is-function"]
},
"lodash.isnull": {
"type": "module",
"moduleName": "lodash.isnull",
"replacements": ["snippet::is-null"]
},
"lodash.isnumber": {
"type": "module",
"moduleName": "lodash.isnumber",
"replacements": ["snippet::is-number"]
},
"lodash.isobject": {
"type": "module",
"moduleName": "lodash.isobject",
"replacements": ["snippet::is-object"]
},
"lodash.isplainobject": {
"type": "module",
"moduleName": "lodash.isplainobject",
"replacements": ["snippet::is-object"]
},
"lodash.isregexp": {
"type": "module",
"moduleName": "lodash.isregexp",
"replacements": ["snippet::is-regexp"]
},
"lodash.isstring": {
"type": "module",
"moduleName": "lodash.isstring",
"replacements": ["snippet::is-string"]
},
"lodash.issymbol": {
"type": "module",
"moduleName": "lodash.issymbol",
"replacements": ["snippet::is-symbol"]
},
"lodash.isundefined": {
"type": "module",
"moduleName": "lodash.isundefined",
"replacements": ["snippet::is-undefined"]
},
"lodash.noop": {
"type": "module",
"moduleName": "lodash.noop",
"replacements": ["snippet::noop"]
},
"lower-case": {
"type": "module",
"moduleName": "lower-case",
Expand Down
40 changes: 40 additions & 0 deletions manifests/native.json
Original file line number Diff line number Diff line change
Expand Up @@ -2277,6 +2277,46 @@
"moduleName": "left-pad",
"replacements": ["String.prototype.padStart"]
},
"lodash.isarray": {
"type": "module",
"moduleName": "lodash.isarray",
"replacements": ["Array.isArray"]
},
"lodash.isbuffer": {
"type": "module",
"moduleName": "lodash.isbuffer",
"replacements": ["Buffer.isBuffer"]
},
"lodash.iserror": {
"type": "module",
"moduleName": "lodash.iserror",
"replacements": ["Error.isError"]
},
"lodash.isfinite": {
"type": "module",
"moduleName": "lodash.isfinite",
"replacements": ["Number.isFinite"]
},
"lodash.isinteger": {
"type": "module",
"moduleName": "lodash.isinteger",
"replacements": ["Number.isInteger"]
},
"lodash.isnan": {
"type": "module",
"moduleName": "lodash.isnan",
"replacements": ["Number.isNaN"]
},
"lodash.join": {
"type": "module",
"moduleName": "lodash.join",
"replacements": ["Array.prototype.join"]
},
"lodash.lastindexof": {
"type": "module",
"moduleName": "lodash.lastindexof",
"replacements": ["Array.prototype.lastIndexOf"]
},
"long": {
"type": "module",
"moduleName": "long",
Expand Down
114 changes: 0 additions & 114 deletions manifests/preferred.json
Original file line number Diff line number Diff line change
Expand Up @@ -1170,12 +1170,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isarray": {
"type": "module",
"moduleName": "lodash.isarray",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isarraybuffer": {
"type": "module",
"moduleName": "lodash.isarraybuffer",
Expand All @@ -1194,18 +1188,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isboolean": {
"type": "module",
"moduleName": "lodash.isboolean",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isbuffer": {
"type": "module",
"moduleName": "lodash.isbuffer",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isdate": {
"type": "module",
"moduleName": "lodash.isdate",
Expand Down Expand Up @@ -1236,30 +1218,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.iserror": {
"type": "module",
"moduleName": "lodash.iserror",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isfinite": {
"type": "module",
"moduleName": "lodash.isfinite",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isfunction": {
"type": "module",
"moduleName": "lodash.isfunction",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isinteger": {
"type": "module",
"moduleName": "lodash.isinteger",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.islength": {
"type": "module",
"moduleName": "lodash.islength",
Expand All @@ -1284,12 +1242,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isnan": {
"type": "module",
"moduleName": "lodash.isnan",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isnative": {
"type": "module",
"moduleName": "lodash.isnative",
Expand All @@ -1302,42 +1254,12 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isnull": {
"type": "module",
"moduleName": "lodash.isnull",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isnumber": {
"type": "module",
"moduleName": "lodash.isnumber",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isobject": {
"type": "module",
"moduleName": "lodash.isobject",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isobjectlike": {
"type": "module",
"moduleName": "lodash.isobjectlike",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isplainobject": {
"type": "module",
"moduleName": "lodash.isplainobject",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isregexp": {
"type": "module",
"moduleName": "lodash.isregexp",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.issafeinteger": {
"type": "module",
"moduleName": "lodash.issafeinteger",
Expand All @@ -1350,30 +1272,12 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isstring": {
"type": "module",
"moduleName": "lodash.isstring",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.issymbol": {
"type": "module",
"moduleName": "lodash.issymbol",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.istypedarray": {
"type": "module",
"moduleName": "lodash.istypedarray",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isundefined": {
"type": "module",
"moduleName": "lodash.isundefined",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.isweakmap": {
"type": "module",
"moduleName": "lodash.isweakmap",
Expand All @@ -1392,12 +1296,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.join": {
"type": "module",
"moduleName": "lodash.join",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.kebabcase": {
"type": "module",
"moduleName": "lodash.kebabcase",
Expand Down Expand Up @@ -1428,12 +1326,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.lastindexof": {
"type": "module",
"moduleName": "lodash.lastindexof",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.lowercase": {
"type": "module",
"moduleName": "lodash.lowercase",
Expand Down Expand Up @@ -1578,12 +1470,6 @@
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.noop": {
"type": "module",
"moduleName": "lodash.noop",
"replacements": ["lodash-underscore", "es-toolkit"],
"url": {"type": "e18e", "id": "lodash-underscore"}
},
"lodash.now": {
"type": "module",
"moduleName": "lodash.now",
Expand Down
Loading