@trademe/ensure
Advanced tools
Comparing version 1.0.1 to 1.0.2-ng-16.0
@@ -0,0 +0,0 @@ export declare class EnsureError extends Error { |
@@ -1,4 +0,4 @@ | ||
export declare type GuardConfig = { | ||
export type GuardConfig = { | ||
getter?: boolean; | ||
}; | ||
//# sourceMappingURL=guard-config.d.ts.map |
import { GuardConfig } from './guard-config'; | ||
export declare type GuardFunction<T> = (value: any, key: string) => T; | ||
export declare type Guard<T> = { | ||
export type GuardFunction<T> = (value: any, key: string) => T; | ||
export type Guard<T> = { | ||
isGetter: boolean; | ||
@@ -5,0 +5,0 @@ } & GuardFunction<T>; |
export declare const isBool: import("../guard/guard").Guard<boolean>; | ||
//# sourceMappingURL=bool.d.ts.map |
import { Guard } from '../guard/guard'; | ||
export declare function isEnum<T>(enumValues: T): Guard<T>; | ||
//# sourceMappingURL=enum.d.ts.map |
export declare const isNotNull: import("../guard/guard").Guard<any>; | ||
//# sourceMappingURL=not-null.d.ts.map |
export declare const isNumber: import("../guard/guard").Guard<number>; | ||
//# sourceMappingURL=number.d.ts.map |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "@trademe/ensure", | ||
"version": "1.0.1", | ||
"version": "1.0.2-ng-16.0", | ||
"license": "MIT", | ||
@@ -13,7 +13,3 @@ "dependencies": { | ||
}, | ||
"module": "fesm2015/trademe-ensure.mjs", | ||
"es2020": "fesm2020/trademe-ensure.mjs", | ||
"esm2020": "esm2020/trademe-ensure.mjs", | ||
"fesm2020": "fesm2020/trademe-ensure.mjs", | ||
"fesm2015": "fesm2015/trademe-ensure.mjs", | ||
"module": "fesm2022/trademe-ensure.mjs", | ||
"typings": "index.d.ts", | ||
@@ -26,10 +22,8 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/trademe-ensure.mjs", | ||
"es2020": "./fesm2020/trademe-ensure.mjs", | ||
"es2015": "./fesm2015/trademe-ensure.mjs", | ||
"node": "./fesm2015/trademe-ensure.mjs", | ||
"default": "./fesm2020/trademe-ensure.mjs" | ||
"esm2022": "./esm2022/trademe-ensure.mjs", | ||
"esm": "./esm2022/trademe-ensure.mjs", | ||
"default": "./fesm2022/trademe-ensure.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} | ||
} |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
import { Guard } from '../guard/guard'; | ||
export declare function Value(...guards: Array<Guard<any> | Array<Guard<any>>>): PropertyDecorator; | ||
//# sourceMappingURL=value.d.ts.map |
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
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
97081
47
788
0
1
2