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

babel-plugin-spectypes

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-spectypes - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

2

dist/cjs/transform.js

@@ -48,3 +48,3 @@ "use strict";

const filterName = (name) => `filter${name}`;
const forIn = (key, val) => `for (const ${key} of Object.keys(${val}))`;
const forIn = (key, val) => `for (const ${key} in ${val})`;
const initResult = (path, assign, skipResult) => (skipResult !== null && skipResult !== void 0 ? skipResult : false) ? '' : `${resultName(path)} = ${assign};`;

@@ -51,0 +51,0 @@ const declareResult = (path, skipResult, pref = '') => path.length === 0 || (skipResult !== null && skipResult !== void 0 ? skipResult : false) ? '' : `let ${pref}${resultName(path)};`;

@@ -22,3 +22,3 @@ import { assertDefined, isDefined } from 'ts-is-defined';

const filterName = (name) => `filter${name}`;
const forIn = (key, val) => `for (const ${key} of Object.keys(${val}))`;
const forIn = (key, val) => `for (const ${key} in ${val})`;
const initResult = (path, assign, skipResult) => (skipResult !== null && skipResult !== void 0 ? skipResult : false) ? '' : `${resultName(path)} = ${assign};`;

@@ -25,0 +25,0 @@ const declareResult = (path, skipResult, pref = '') => path.length === 0 || (skipResult !== null && skipResult !== void 0 ? skipResult : false) ? '' : `let ${pref}${resultName(path)};`;

{
"name": "babel-plugin-spectypes",
"version": "0.0.15",
"version": "0.0.16",
"private": false,

@@ -21,2 +21,3 @@ "description": "Babel plugin that compiles spectypes validators",

"keywords": [
"babel",
"validation",

@@ -23,0 +24,0 @@ "validator"

@@ -91,3 +91,3 @@ import { assertDefined, isDefined } from 'ts-is-defined'

const forIn = (key: string, val: string) => `for (const ${key} of Object.keys(${val}))`
const forIn = (key: string, val: string) => `for (const ${key} in ${val})`

@@ -94,0 +94,0 @@ const initResult = (path: Path, assign: string, skipResult: boolean | undefined) =>

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