ts-util-is
Advanced tools
Comparing version 1.3.1 to 2.0.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [2.0.0](https://github.com/justinlettau/ts-util-is/compare/v1.3.1...v2.0.0) (2021-10-27) | ||
### ⚠ BREAKING CHANGES | ||
* This package is now pure ESM | ||
### Features | ||
* esm package ([0d6d0d3](https://github.com/justinlettau/ts-util-is/commit/0d6d0d3e1b95f096670977a19b16d03b6921df36)) | ||
* isArray generic ([143bb18](https://github.com/justinlettau/ts-util-is/commit/143bb18daa765ad5141cb864f5651afc406f0f69)) | ||
### [1.3.1](https://github.com/justinlettau/ts-util-is/compare/v1.3.0...v1.3.1) (2021-08-31) | ||
@@ -7,0 +19,0 @@ |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
export declare function isArray(value: any): value is any[]; | ||
export declare function isArray<T = unknown>(value: any): value is T[]; | ||
/** | ||
@@ -9,0 +9,0 @@ * Determines if a reference is a valid base64 string. |
@@ -19,3 +19,3 @@ "use strict"; | ||
function isBase64(value) { | ||
var base64 = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/; | ||
const base64 = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/; | ||
return isString(value) && base64.test(value); | ||
@@ -86,3 +86,3 @@ } | ||
function isGuid(value) { | ||
var guid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
const guid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
return isString(value) && guid.test(value); | ||
@@ -89,0 +89,0 @@ } |
{ | ||
"name": "ts-util-is", | ||
"version": "1.3.1", | ||
"version": "2.0.0", | ||
"description": "TypeScript typeof utility helper with no dependencies.", | ||
@@ -45,3 +45,7 @@ "keywords": [ | ||
}, | ||
"main": "dist/index.js", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"types": "dist/index.d.ts", | ||
@@ -66,16 +70,15 @@ "files": [ | ||
"devDependencies": { | ||
"@types/jest": "^26.0.15", | ||
"@typescript-eslint/eslint-plugin": "^4.8.2", | ||
"@typescript-eslint/parser": "^4.8.2", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"jasmine": "^3.6.1", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.0", | ||
"pretty-quick": "^3.1.0", | ||
"standard-version": "^9.0.0", | ||
"ts-jest": "^26.4.4", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.1.2" | ||
"@types/jest": "^27.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.2.0", | ||
"@typescript-eslint/parser": "^5.2.0", | ||
"eslint": "^8.1.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"jest": "^27.3.1", | ||
"prettier": "^2.4.1", | ||
"pretty-quick": "^3.1.1", | ||
"standard-version": "^9.3.2", | ||
"ts-jest": "^27.0.7", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.4.4" | ||
} | ||
} |
@@ -0,0 +0,0 @@ [![NPM Version](https://badge.fury.io/js/ts-util-is.svg)](https://badge.fury.io/js/ts-util-is) |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12
Yes
18547
10
329