New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

io-ts-from-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io-ts-from-json-schema - npm Package Compare versions

Comparing version 0.0.20-alpha3 to 0.0.20-alpha4

10

lib/iotsfjs.js

@@ -902,3 +902,3 @@ #!/usr/bin/env node

}
var imports, genNeverType, genIntersectionCombinator, genUnionCombinator, definedHelper, Defined, nullHelper, Null, supportedEverywhere, supportedAtRoot, supportedOutsideRoot, documentBase, defaultExport, imps, helpers, exps, ErrorCode, OK, returnCode, inputs, defs, defs_1, defs_1_1, def, typeName, title, description, examples, invalid, defaultValue, minimumValue, maximumValue, staticType, runtimeType, examplesName, _a, _b, _c, base64, description_1, e_1_1, defaultName, minimumName, maximumName, e_2_1;
var imports, genNeverType, genIntersectionCombinator, genUnionCombinator, definedHelper, Defined, nullHelper, Null, supportedEverywhere, supportedAtRoot, supportedOutsideRoot, documentBase, defaultExport, imps, helpers, exps, ErrorCode, OK, returnCode, inputs, defs, defs_1, defs_1_1, def, typeName, title, description, examples, invalid, defaultValue, minimumValue, maximumValue, staticType, runtimeType, examplesName, _a, _b, _c, b64, description_1, str, parsed, e_1_1, defaultName, minimumName, maximumName, e_2_1;
var e_2, _d, e_1, _e;

@@ -1087,7 +1087,9 @@ return __generator(this, function (_f) {

if (!!_b.done) return [3 /*break*/, 30];
_c = __read(_b.value, 2), base64 = _c[0], description_1 = _c[1];
return [4 /*yield*/, "// Negative Test Case: " + description_1];
_c = __read(_b.value, 2), b64 = _c[0], description_1 = _c[1];
return [4 /*yield*/, "// NEGATIVE Test Case: " + description_1];
case 27:
_f.sent();
return [4 /*yield*/, "/** require('io-ts-validator').validator(" + typeName + ").decodeEither(Buffer.from('" + base64 + "', 'base64').toString('ascii'))._tag // => 'Left' */"];
str = Buffer.from(b64, 'base64').toString('ascii');
parsed = JSON.parse(str);
return [4 /*yield*/, "/** require('io-ts-validator').validator(" + typeName + ").decodeEither(" + parsed + ")._tag // => 'Left' */"];
case 28:

@@ -1094,0 +1096,0 @@ _f.sent();

2

package.json
{
"name": "io-ts-from-json-schema",
"version": "0.0.20-alpha3",
"version": "0.0.20-alpha4",
"description": "Iotsfjs is a static code generation utility used for converting json schema files into static TypeScript types and io-ts runtime validators.",

@@ -5,0 +5,0 @@ "license": "MIT",

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