Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trademe/ensure

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trademe/ensure - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-ng-16.0

esm2022/ensure-error.mjs

0

ensure-error.d.ts

@@ -0,0 +0,0 @@ export declare class EnsureError extends Error {

2

guard/guard-config.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc