typechecker
Advanced tools
Comparing version 8.2.0 to 8.3.0-next.1700487491.519a518872302fc252ca46010d04f19870535553
"use strict"; | ||
/* eslint quote-props:0 */ | ||
var __values = (this && this.__values) || function(o) { | ||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
if (m) return m.call(o); | ||
if (o && typeof o.length === "number") return { | ||
next: function () { | ||
if (o && i >= o.length) o = void 0; | ||
return { value: o && o[i++], done: !o }; | ||
} | ||
}; | ||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -166,8 +177,18 @@ exports.getType = exports.typeMap = exports.isEmptyKeys = exports.isEmptyWeakMap = exports.isEmptyMap = exports.isEmptyPlainObject = exports.isEmptyArray = exports.isNullish = exports.isWeakMap = exports.isMap = exports.isUndefined = exports.isNull = exports.isBoolean = exports.isString = exports.isNumber = exports.isArray = exports.isRegExp = exports.isFunction = exports.isAsyncFunction = exports.isSyncFunction = exports.isArguments = exports.isDate = exports.isError = exports.isClass = exports.isConventionalClass = exports.isNativeClass = exports.isPlainObject = exports.isObject = exports.getObjectType = void 0; | ||
function isEmptyMap(value) { | ||
var e_1, _a; | ||
if (!isMap(value)) | ||
throw new Error('value was not a map'); | ||
for (var _i = 0, value_1 = value; _i < value_1.length; _i++) { | ||
var key = value_1[_i]; | ||
return false; | ||
try { | ||
for (var value_1 = __values(value), value_1_1 = value_1.next(); !value_1_1.done; value_1_1 = value_1.next()) { | ||
var key = value_1_1.value; | ||
return false; | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (value_1_1 && !value_1_1.done && (_a = value_1.return)) _a.call(value_1); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
return true; | ||
@@ -181,8 +202,18 @@ } | ||
function isEmptyWeakMap(value) { | ||
var e_2, _a; | ||
if (!isWeakMap(value)) | ||
throw new Error('value was not a weak map'); | ||
for (var _i = 0, value_2 = value; _i < value_2.length; _i++) { | ||
var key = value_2[_i]; | ||
return false; | ||
try { | ||
for (var value_2 = __values(value), value_2_1 = value_2.next(); !value_2_1.done; value_2_1 = value_2.next()) { | ||
var key = value_2_1.value; | ||
return false; | ||
} | ||
} | ||
catch (e_2_1) { e_2 = { error: e_2_1 }; } | ||
finally { | ||
try { | ||
if (value_2_1 && !value_2_1.done && (_a = value_2.return)) _a.call(value_2); | ||
} | ||
finally { if (e_2) throw e_2.error; } | ||
} | ||
return true; | ||
@@ -189,0 +220,0 @@ } |
{ | ||
"title": "TypeChecker", | ||
"name": "typechecker", | ||
"version": "8.2.0", | ||
"version": "8.3.0-next.1700487491.519a518872302fc252ca46010d04f19870535553", | ||
"description": "Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)", | ||
@@ -208,3 +208,2 @@ "homepage": "https://github.com/bevry/typechecker", | ||
"patreon", | ||
"flattr", | ||
"liberapay", | ||
@@ -215,3 +214,5 @@ "buymeacoffee", | ||
"paypal", | ||
"wishlist" | ||
"---", | ||
"discord", | ||
"twitch" | ||
], | ||
@@ -221,3 +222,3 @@ "config": { | ||
"githubSponsorsUsername": "balupton", | ||
"thanksdevGithubUsername": "balupton", | ||
"thanksdevGithubUsername": "bevry", | ||
"buymeacoffeeUsername": "balupton", | ||
@@ -231,2 +232,5 @@ "cryptoURL": "https://bevry.me/crypto", | ||
"wishlistURL": "https://bevry.me/wishlist", | ||
"discordServerID": "1147436445783560193", | ||
"discordServerInvite": "nQuXddV7VP", | ||
"twitchUsername": "balupton", | ||
"githubUsername": "bevry", | ||
@@ -350,2 +354,3 @@ "githubRepository": "typechecker", | ||
"node": { | ||
"types": "./compiled-types/", | ||
"import": "./edition-es2022-esm/index.js", | ||
@@ -356,3 +361,7 @@ "default": "./index.cjs", | ||
"browser": { | ||
"types": "./compiled-types/", | ||
"import": "./edition-browsers/index.js" | ||
}, | ||
"default": { | ||
"types": "./compiled-types/" | ||
} | ||
@@ -368,19 +377,19 @@ }, | ||
"@bevry/update-contributors": "^1.23.0", | ||
"@types/node": "^20.9.0", | ||
"@types/node": "^20.9.2", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
"assert-helpers": "^11.4.0", | ||
"eslint": "^8.53.0", | ||
"eslint-config-bevry": "^4.0.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-bevry": "^5.0.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"kava": "^7.1.0", | ||
"kava": "^7.2.0", | ||
"make-deno-edition": "^1.3.0", | ||
"prettier": "^3.1.0", | ||
"projectz": "^3.0.0", | ||
"projectz": "^3.2.0", | ||
"surge": "^0.23.1", | ||
"typedoc": "^0.25.3", | ||
"typescript": "5.2.2", | ||
"valid-directory": "^4.2.0", | ||
"valid-module": "^2.2.0" | ||
"valid-directory": "^4.4.0", | ||
"valid-module": "^2.4.0" | ||
}, | ||
@@ -428,2 +437,2 @@ "scripts": { | ||
} | ||
} | ||
} |
@@ -15,5 +15,4 @@ <!-- TITLE/ --> | ||
<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span> | ||
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/balupton" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span> | ||
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/bevry" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-liberapay"><a href="https://liberapay.com/bevry" title="Donate to this project using Liberapay"><img src="https://img.shields.io/badge/liberapay-donate-yellow.svg" alt="Liberapay donate button" /></a></span> | ||
@@ -24,3 +23,5 @@ <span class="badge-buymeacoffee"><a href="https://buymeacoffee.com/balupton" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://bevry.me/paypal" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
<br class="badge-separator" /> | ||
<span class="badge-discord"><a href="https://discord.gg/nQuXddV7VP" title="Join this project's community on Discord"><img src="https://img.shields.io/discord/1147436445783560193?logo=discord&label=discord" alt="Discord server badge" /></a></span> | ||
<span class="badge-twitch"><a href="https://www.twitch.tv/balupton" title="Join this project's community on Twitch"><img src="https://img.shields.io/twitch/status/balupton?logo=twitch" alt="Twitch community badge" /></a></span> | ||
@@ -61,3 +62,3 @@ <!-- /BADGES --> | ||
``` typescript | ||
import * as pkg from 'https://unpkg.com/typechecker@^8.2.0/edition-deno/index.ts' | ||
import * as pkg from 'https://unpkg.com/typechecker@^8.3.0/edition-deno/index.ts' | ||
``` | ||
@@ -69,3 +70,3 @@ | ||
<script type="module"> | ||
import * as pkg from '//cdn.skypack.dev/typechecker@^8.2.0' | ||
import * as pkg from '//cdn.skypack.dev/typechecker@^8.3.0' | ||
</script> | ||
@@ -78,3 +79,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//unpkg.com/typechecker@^8.2.0' | ||
import * as pkg from '//unpkg.com/typechecker@^8.3.0' | ||
</script> | ||
@@ -87,3 +88,3 @@ ``` | ||
<script type="module"> | ||
import * as pkg from '//dev.jspm.io/typechecker@8.2.0' | ||
import * as pkg from '//dev.jspm.io/typechecker@8.3.0' | ||
</script> | ||
@@ -140,5 +141,4 @@ ``` | ||
<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span> | ||
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/balupton" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span> | ||
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/bevry" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span> | ||
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span> | ||
<span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span> | ||
<span class="badge-liberapay"><a href="https://liberapay.com/bevry" title="Donate to this project using Liberapay"><img src="https://img.shields.io/badge/liberapay-donate-yellow.svg" alt="Liberapay donate button" /></a></span> | ||
@@ -149,3 +149,2 @@ <span class="badge-buymeacoffee"><a href="https://buymeacoffee.com/balupton" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a></span> | ||
<span class="badge-paypal"><a href="https://bevry.me/paypal" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span> | ||
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span> | ||
@@ -152,0 +151,0 @@ <h3>Contributors</h3> |
@@ -5,3 +5,3 @@ # Security Policy | ||
This project meets standardized secure software development practices, including 2FA for all members, password managers with monitoring, secure secret retrieval instead of storage. [Learn more about our practices.](https://tidelift.com/funding/github/npm/typechecker) | ||
This project meets standardized secure software development practices, including 2FA for all members, password managers with monitoring, secure secret retrieval instead of storage. [Learn about our practices.](https://tidelift.com/funding/github/npm/typechecker) | ||
@@ -12,5 +12,5 @@ ## Supported Versions | ||
[Refer to supported ecosystem versions: `Editions` section in `README.md`.](https://github.com/bevry/typechecker/blob/master/README.md#Editions) | ||
[Refer to supported ecosystem versions: `Editions` section in `README.md`](https://github.com/bevry/typechecker/blob/master/README.md#Editions) | ||
[Refer to automated support of ecosystem versions: `boundation` entries in `HISTORY.md`.](https://github.com/bevry/typechecker/blob/master/HISTORY.md) | ||
[Refer to automated support of ecosystem versions: `boundation` entries in `HISTORY.md`](https://github.com/bevry/typechecker/blob/master/HISTORY.md) | ||
@@ -17,0 +17,0 @@ Besides testing and verification, out CI also [auto-merges](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions) [Dependabot security updates](https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates) and [auto-publishes](https://github.com/bevry-actions/npm) successful builds of the [`master` branch](https://github.com/bevry/wait/actions?query=branch%3Amaster) to the [`next` version tag](https://www.npmjs.com/package/typechecker?activeTab=versions), offering immediate resolutions before scheduled maintenance releases. |
@@ -11,2 +11,3 @@ { | ||
"module": "ESNext", | ||
"downlevelIteration": true, | ||
"outDir": "/tmp" | ||
@@ -13,0 +14,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88400
1480
1
171