@vocab/core
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -513,2 +513,5 @@ 'use strict'; | ||
const serializeModuleImports = (imports, moduleName) => { | ||
if (imports.size === 0) { | ||
return ''; | ||
} | ||
const importNames = Array.from(imports); | ||
@@ -537,4 +540,4 @@ return `import { ${Array.from(importNames).join(', ')} } from '${moduleName}'`; | ||
import { createLanguage, createTranslationFile } from '@vocab/core/runtime'; | ||
${serializeModuleImports(imports, '@vocab/types')} | ||
import { createLanguage, createTranslationFile } from '@vocab/core/runtime'; | ||
@@ -541,0 +544,0 @@ const translations = createTranslationFile<${languagesUnionAsString}, ${serialiseObjectToType(translationsType)}>({${content}}); |
@@ -513,2 +513,5 @@ 'use strict'; | ||
const serializeModuleImports = (imports, moduleName) => { | ||
if (imports.size === 0) { | ||
return ''; | ||
} | ||
const importNames = Array.from(imports); | ||
@@ -537,4 +540,4 @@ return `import { ${Array.from(importNames).join(', ')} } from '${moduleName}'`; | ||
import { createLanguage, createTranslationFile } from '@vocab/core/runtime'; | ||
${serializeModuleImports(imports, '@vocab/types')} | ||
import { createLanguage, createTranslationFile } from '@vocab/core/runtime'; | ||
@@ -541,0 +544,0 @@ const translations = createTranslationFile<${languagesUnionAsString}, ${serialiseObjectToType(translationsType)}>({${content}}); |
@@ -497,2 +497,5 @@ import { existsSync, promises } from 'fs'; | ||
const serializeModuleImports = (imports, moduleName) => { | ||
if (imports.size === 0) { | ||
return ''; | ||
} | ||
const importNames = Array.from(imports); | ||
@@ -521,4 +524,4 @@ return `import { ${Array.from(importNames).join(', ')} } from '${moduleName}'`; | ||
import { createLanguage, createTranslationFile } from '@vocab/core/runtime'; | ||
${serializeModuleImports(imports, '@vocab/types')} | ||
import { createLanguage, createTranslationFile } from '@vocab/core/runtime'; | ||
@@ -525,0 +528,0 @@ const translations = createTranslationFile<${languagesUnionAsString}, ${serialiseObjectToType(translationsType)}>({${content}}); |
{ | ||
"name": "@vocab/core", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"main": "dist/vocab-core.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/vocab-core.esm.js", |
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
130585
2871