@cloudflare/util-en-garde
Advanced tools
Comparing version 8.0.9 to 8.0.10
@@ -6,2 +6,10 @@ # Change Log | ||
## [8.0.10](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-en-garde@8.0.9...@cloudflare/util-en-garde@8.0.10) (2022-05-03) | ||
**Note:** Version bump only for package @cloudflare/util-en-garde | ||
## [8.0.9](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-en-garde@8.0.6...@cloudflare/util-en-garde@8.0.9) (2021-10-28) | ||
@@ -8,0 +16,0 @@ |
@@ -108,2 +108,3 @@ import * as t from 'io-ts'; | ||
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]; }; | ||
create: (value: TypeFromCodec<typeof this>) => { [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]>>; | ||
@@ -110,0 +111,0 @@ } |
@@ -117,2 +117,4 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
}); | ||
_defineProperty(this, "create", value => this.assertDecode(value)); | ||
} | ||
@@ -119,0 +121,0 @@ |
@@ -148,2 +148,6 @@ "use strict"; | ||
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this3)), "create", function (value) { | ||
return _this3.assertDecode(value); | ||
}); | ||
return _this3; | ||
@@ -150,0 +154,0 @@ } |
{ | ||
"name": "@cloudflare/util-en-garde", | ||
"description": "", | ||
"version": "8.0.9", | ||
"version": "8.0.10", | ||
"types": "./dist/index.d.ts", | ||
@@ -28,3 +28,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "a1a7ca299c6676e5222e50aee57bc5beedb44882" | ||
"gitHead": "2b567bfe6bec8abf15b220a9e11ff07a8d0cb75d" | ||
} |
@@ -162,2 +162,5 @@ import * as t from 'io-ts'; | ||
public create = (value: TypeFromCodec<typeof this>) => | ||
this.assertDecode(value); | ||
public get optional() { | ||
@@ -164,0 +167,0 @@ return new Codec(t.union([this, t.undefined])); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
79336
1204
1