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

@eik/common

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eik/common - npm Package Compare versions

Comparing version 1.4.2 to 1.5.0

7

CHANGELOG.md

@@ -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 @@

10

lib/classes/eik-config.js

@@ -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));
},
};

8

package.json
{
"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"

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