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

@eik/core

Package Overview
Dependencies
Maintainers
4
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eik/core - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.9](https://github.com/eik-lib/core/compare/v1.1.8...v1.1.9) (2020-12-16)
### Bug Fixes
* **deps:** update dependency mime to v2.4.7 ([088de36](https://github.com/eik-lib/core/commit/088de36ee90c7994923e1f940e084e24d19ceda4))
## [1.1.8](https://github.com/eik-lib/core/compare/v1.1.7...v1.1.8) (2020-12-14)

@@ -2,0 +9,0 @@

4

lib/classes/package.js

@@ -21,5 +21,3 @@ 'use strict';

const hasher = crypto.createHash('sha512');
const hashes = this._files.map(file => {
return file.integrity;
});
const hashes = this._files.map(file => file.integrity);

@@ -26,0 +24,0 @@ for (const hash of hashes.sort()) {

@@ -14,5 +14,3 @@ 'use strict';

get versions() {
return Array.from(this._versions.entries()).sort((a, b) => {
return a[0] > b[0] ? -1 : 1;
});
return Array.from(this._versions.entries()).sort((a, b) => a[0] > b[0] ? -1 : 1);
}

@@ -19,0 +17,0 @@

@@ -9,5 +9,3 @@ 'use strict';

const createFilePathToPackage = ({ org = '', type = '', name = '', version = '' } = {}) => {
return path.join(ROOT, org, type, name, `${version}.package.json`);
}
const createFilePathToPackage = ({ org = '', type = '', name = '', version = '' } = {}) => path.join(ROOT, org, type, name, `${version}.package.json`)
module.exports.createFilePathToPackage = createFilePathToPackage;

@@ -18,5 +16,3 @@

// pkgAsset
const createFilePathToAsset = ({ org = '', type = '', name = '', version = '', asset = '' } = {}) => {
return path.join(ROOT, org, type, name, version, asset);
}
const createFilePathToAsset = ({ org = '', type = '', name = '', version = '', asset = '' } = {}) => path.join(ROOT, org, type, name, version, asset)
module.exports.createFilePathToAsset = createFilePathToAsset;

@@ -27,5 +23,3 @@

const createFilePathToImportMap = ({ org = '', name = '', version = '' } = {}) => {
return path.join(ROOT, org, BASE_IMPORT_MAPS, name, `${version}.import-map.json`);
}
const createFilePathToImportMap = ({ org = '', name = '', version = '' } = {}) => path.join(ROOT, org, BASE_IMPORT_MAPS, name, `${version}.import-map.json`)
module.exports.createFilePathToImportMap = createFilePathToImportMap;

@@ -36,5 +30,3 @@

const createFilePathToAlias = ({ org = '', type = '', name = '', alias = '' } = {}) => {
return path.join(ROOT, org, type, name, `${alias}.alias.json`);
}
const createFilePathToAlias = ({ org = '', type = '', name = '', alias = '' } = {}) => path.join(ROOT, org, type, name, `${alias}.alias.json`)
module.exports.createFilePathToAlias = createFilePathToAlias;

@@ -45,5 +37,3 @@

const createFilePathToVersion = ({ org = '', type = '', name = '' } = {}) => {
return path.join(ROOT, org, type, name, 'versions.json');
}
const createFilePathToVersion = ({ org = '', type = '', name = '' } = {}) => path.join(ROOT, org, type, name, 'versions.json')
module.exports.createFilePathToVersion = createFilePathToVersion;

@@ -9,5 +9,3 @@ 'use strict';

const createURIPathToPkgLog = ({ type = '', name = '', version = '' } = {}) => {
return path.join(ROOT, type, name, version);
}
const createURIPathToPkgLog = ({ type = '', name = '', version = '' } = {}) => path.join(ROOT, type, name, version)
module.exports.createURIPathToPkgLog = createURIPathToPkgLog;

@@ -18,5 +16,3 @@

const createURIPathToAsset = ({ type = '', name = '', version = '', asset = '' } = {}) => {
return path.join(ROOT, type, name, version, asset);
}
const createURIPathToAsset = ({ type = '', name = '', version = '', asset = '' } = {}) => path.join(ROOT, type, name, version, asset)
module.exports.createURIPathToAsset = createURIPathToAsset;

@@ -27,5 +23,3 @@

const createURIPathToImportMap = ({ name = '', version = '' } = {}) => {
return path.join(ROOT, BASE_IMPORT_MAPS, name, version);
}
const createURIPathToImportMap = ({ name = '', version = '' } = {}) => path.join(ROOT, BASE_IMPORT_MAPS, name, version)
module.exports.createURIPathToImportMap = createURIPathToImportMap;

@@ -36,5 +30,3 @@

const createURIToAlias = ({ type = '', name = '', alias = '' } = {}) => {
return path.join(ROOT, type, name, `v${alias}`);
}
const createURIToAlias = ({ type = '', name = '', alias = '' } = {}) => path.join(ROOT, type, name, `v${alias}`)
module.exports.createURIToAlias = createURIToAlias;

@@ -45,6 +37,4 @@

const createURIToTargetOfAlias = ({ type = '', name = '', version = '', extra = '' } = {}) => {
return path.join(ROOT, type, name, version, extra);
}
const createURIToTargetOfAlias = ({ type = '', name = '', version = '', extra = '' } = {}) => path.join(ROOT, type, name, version, extra)
module.exports.createURIToTargetOfAlias = createURIToTargetOfAlias;

@@ -5,5 +5,5 @@ 'use strict';

const readJSON = (sink, path) => {
const readJSON = (sink, path) =>
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
new Promise(async (resolve, reject) => {
try {

@@ -34,9 +34,9 @@ const buffer = [];

}
});
};
})
;
module.exports.readJSON = readJSON;
const writeJSON = (sink, path, obj, contentType) => {
const writeJSON = (sink, path, obj, contentType) =>
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
new Promise(async (resolve, reject) => {
try {

@@ -62,8 +62,7 @@ const buffer = Buffer.from(JSON.stringify(obj));

}
});
};
})
;
module.exports.writeJSON = writeJSON;
const streamCollector = (from) => {
return new Promise((resolve, reject) => {
const streamCollector = (from) => new Promise((resolve, reject) => {
const buffer = [];

@@ -82,3 +81,2 @@ const to = new Writable({

});
};
module.exports.streamCollector = streamCollector;

@@ -85,0 +83,0 @@

{
"name": "@eik/core",
"version": "1.1.8",
"version": "1.1.9",
"description": "Core server package",

@@ -27,3 +27,3 @@ "main": "lib/main.js",

"http-errors": "1.8.0",
"mime": "2.4.6",
"mime": "2.4.7",
"original-url": "1.2.3",

@@ -45,3 +45,3 @@ "rimraf": "3.0.2",

"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "6.15.0",
"eslint-config-prettier": "7.0.0",
"eslint-plugin-import": "2.22.1",

@@ -48,0 +48,0 @@ "eslint-plugin-prettier": "3.3.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