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
29
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.9 to 8.0.10

8

CHANGELOG.md

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

1

dist/index.d.ts

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

4

package.json
{
"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]));

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