@eik/common
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -0,1 +1,8 @@ | ||
## [1.4.2](https://github.com/eik-lib/common/compare/v1.4.1...v1.4.2) (2021-01-21) | ||
### Bug Fixes | ||
* remove singletons in packageURL and localAssets ([6e49df0](https://github.com/eik-lib/common/commit/6e49df03afd5294bf8535c95c050a8d28e94f491)) | ||
## [1.4.1](https://github.com/eik-lib/common/compare/v1.4.0...v1.4.1) (2021-01-19) | ||
@@ -2,0 +9,0 @@ |
@@ -8,4 +8,2 @@ /* eslint-disable no-await-in-loop */ | ||
let eik; | ||
/** | ||
@@ -24,3 +22,3 @@ * Sets up asset routes for local development. Mounted paths match those on Eik server and values are read from projects eik.json file. | ||
// ensure eik.json only loaded 1x | ||
if (!eik) eik = configStore.findInDirectory(rootEikDirectory); | ||
const eik = configStore.findInDirectory(rootEikDirectory); | ||
@@ -27,0 +25,0 @@ (await eik.pathsAndFiles()).forEach(([pathname, filePath]) => { |
const { join } = require('path'); | ||
const configStore = require('./config-store'); | ||
let eik; | ||
async function packageURL(key, { configRootDir = process.cwd() } = {}) { | ||
if (!eik) eik = configStore.findInDirectory(configRootDir); | ||
const eik = configStore.findInDirectory(configRootDir); | ||
const mappingList = (await eik.pathsAndFiles()).filter( | ||
@@ -9,0 +7,0 @@ ([, , originalDest]) => originalDest === key, |
{ | ||
"name": "@eik/common", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Common utilities for Eik modules", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
26209
544