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

@cloudflare/util-en-garde

Package Overview
Dependencies
Maintainers
81
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/util-en-garde - npm Package Compare versions

Comparing version 8.0.5 to 8.0.6

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [8.0.6](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-en-garde@8.0.5...@cloudflare/util-en-garde@8.0.6) (2021-04-23)
**Note:** Version bump only for package @cloudflare/util-en-garde
## [8.0.5](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-en-garde@8.0.4...@cloudflare/util-en-garde@8.0.5) (2020-12-11)

@@ -8,0 +16,0 @@

8

dist/index.d.ts

@@ -99,3 +99,3 @@ /// <reference types="react" />

constructor(ioTsCodec: C);
assertDecode: (value: unknown) => C["_A"];
assertDecode: (value: unknown) => t.TypeOf<C>;
get optional(): Codec<t.UnionC<[this, t.UndefinedC]>>;

@@ -109,3 +109,3 @@ }

constructor(ioTsCodec: t.TypeC<P>);
assertDecode: (value: unknown) => { [Key_2 in keyof ({ [MandatoryKey in { [Key in keyof { [K in keyof P]: P[K]["_A"]; }]: undefined extends { [K in keyof P]: P[K]["_A"]; }[Key] ? never : Key; }[keyof P]]: { [K in keyof P]: P[K]["_A"]; }[MandatoryKey]; } & { [OptionalKey in { [Key_1 in keyof { [K in keyof P]: P[K]["_A"]; }]: Key_1; }[Exclude<keyof P, { [Key in keyof { [K in keyof P]: P[K]["_A"]; }]: undefined extends { [K in keyof P]: P[K]["_A"]; }[Key] ? never : Key; }[keyof P]>]]?: { [K in keyof P]: P[K]["_A"]; }[OptionalKey] | undefined; })]: ({ [MandatoryKey in { [Key in keyof { [K in keyof P]: P[K]["_A"]; }]: undefined extends { [K in keyof P]: P[K]["_A"]; }[Key] ? never : Key; }[keyof P]]: { [K in keyof P]: P[K]["_A"]; }[MandatoryKey]; } & { [OptionalKey in { [Key_1 in keyof { [K in keyof P]: P[K]["_A"]; }]: Key_1; }[Exclude<keyof P, { [Key in keyof { [K in keyof P]: P[K]["_A"]; }]: undefined extends { [K in keyof P]: P[K]["_A"]; }[Key] ? never : Key; }[keyof P]>]]?: { [K in keyof P]: P[K]["_A"]; }[OptionalKey] | undefined; })[Key_2]; };
assertDecode: (value: unknown) => { [Key in keyof ({ [MandatoryKey in KeysWithoutValueType<{ [K in keyof P]: t.TypeOf<P[K]>; }, undefined>]: { [K in keyof P]: t.TypeOf<P[K]>; }[MandatoryKey]; } & { [OptionalKey in KeysWithValueType<{ [K in keyof P]: t.TypeOf<P[K]>; }, undefined>]?: { [K in keyof P]: t.TypeOf<P[K]>; }[OptionalKey] | undefined; })]: ({ [MandatoryKey in KeysWithoutValueType<{ [K in keyof P]: t.TypeOf<P[K]>; }, undefined>]: { [K in keyof P]: t.TypeOf<P[K]>; }[MandatoryKey]; } & { [OptionalKey in KeysWithValueType<{ [K in keyof P]: t.TypeOf<P[K]>; }, undefined>]?: { [K in keyof P]: t.TypeOf<P[K]>; }[OptionalKey] | undefined; })[Key]; };
get optional(): Codec<t.UnionC<[this, t.UndefinedC]>>;

@@ -142,6 +142,6 @@ }

intersection: <Codecs_1 extends [t.Any, t.Any, ...t.Any[]]>(codecs: Codecs_1, name?: string | undefined) => Codec<t.IntersectionC<Codecs_1>>;
brand: <Name extends string, BaseCodec extends Codec<any>>(name: Name, base: BaseCodec, predicate: (value: BaseCodec["_A"]) => boolean) => Codec<t.BrandC<BaseCodec, { [N in Name]: symbol; }>>;
brand: <Name extends string, BaseCodec extends Codec<any>>(name: Name, base: BaseCodec, predicate: (value: t.TypeOf<BaseCodec>) => boolean) => Codec<t.BrandC<BaseCodec, { [N in Name]: symbol; }>>;
enum: <Enum extends {
[key: string]: import("react").ReactText;
}>(e: Enum) => Codec<t.LiteralType<Enum[keyof Enum]>>;
}>(e: Enum) => Codec<t.LiteralType<ValueOf<Enum>>>;
instanceof: <Constructor extends new (...args: any[]) => any>(c: Constructor) => Codec<t.Type<InstanceType<Constructor>, InstanceType<Constructor>, unknown>>;

@@ -148,0 +148,0 @@ exactStrict: <P_1 extends t.Props, IT extends t.InterfaceType<P_1, any, any, unknown>>(wrappedInterfaceType: IT) => ObjectCodec<IT["props"]>;

{
"name": "@cloudflare/util-en-garde",
"description": "",
"version": "8.0.5",
"version": "8.0.6",
"types": "./dist/index.d.ts",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"author": "Frontend Team <frontend@cloudflare.com>",

@@ -29,3 +28,3 @@ "contributors": [

},
"gitHead": "dc456607b84626c0245c758c39cbb8c434f7bdb7"
"gitHead": "3b74aee5f2437d3981de017126c02cd66ffbeb2d"
}
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