@eik/common
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -0,1 +1,8 @@ | ||
# [1.5.0](https://github.com/eik-lib/common/compare/v1.4.2...v1.5.0) (2021-01-25) | ||
### Features | ||
* Add config persistence method to configStore ([91b396c](https://github.com/eik-lib/common/commit/91b396c52077d0b7916c65bbfcfbca10428e76f9)) | ||
## [1.4.2](https://github.com/eik-lib/common/compare/v1.4.1...v1.4.2) (2021-01-21) | ||
@@ -2,0 +9,0 @@ |
@@ -16,3 +16,3 @@ const { promisify } = require('util'); | ||
this.cwd = configRootDir; | ||
this.map = [].concat(configHash['import-map'] || []) | ||
this.map = [].concat(configHash['import-map'] || []); | ||
} | ||
@@ -28,2 +28,6 @@ | ||
set version(newVersion) { | ||
this[_config].version = newVersion; | ||
} | ||
get server() { | ||
@@ -49,2 +53,6 @@ const configuredServer = this[_config].server; | ||
toJSON() { | ||
return { ...this[_config] }; | ||
} | ||
async pathsAndFiles() { | ||
@@ -51,0 +59,0 @@ const resolvedFiles = await Promise.all( |
@@ -1,2 +0,2 @@ | ||
const { readFileSync } = require('fs'); | ||
const { readFileSync, writeFileSync } = require('fs'); | ||
const { join } = require('path'); | ||
@@ -52,2 +52,6 @@ const homedir = require('os').homedir(); | ||
}, | ||
persistToDisk(config) { | ||
const dest = join(config.cwd, 'eik.json'); | ||
writeFileSync(dest, JSON.stringify(config, null, 2)); | ||
}, | ||
}; |
{ | ||
"name": "@eik/common", | ||
"version": "1.4.2", | ||
"version": "1.5.0", | ||
"description": "Common utilities for Eik modules", | ||
@@ -44,9 +44,9 @@ "main": "lib/index.js", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
"eslint-config-prettier": "7.1.0", | ||
"eslint-config-prettier": "7.2.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-prettier": "3.3.1", | ||
"express": "4.17.1", | ||
"fastify": "3.9.2", | ||
"fastify": "3.10.1", | ||
"prettier": "2.2.1", | ||
"semantic-release": "17.3.1", | ||
"semantic-release": "17.3.7", | ||
"stoppable": "1.1.0", | ||
@@ -53,0 +53,0 @@ "tap": "14.11.0" |
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
26755
554