babel-plugin-spectypes
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -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
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
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
269664