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

@lykmapipo/common

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lykmapipo/common - npm Package Compare versions

Comparing version 0.44.4 to 0.44.5

SECURITY.md

21

CHANGELOG.md

@@ -0,1 +1,22 @@

#### 0.44.5 (2021-11-11)
##### Chores
* **release:** compile latest source ([163e2f24](https://github.com/lykmapipo/common/commit/163e2f24d03c3be37b8eb013c4e5e09e5ced13b7))
* **deps:**
* drop parse-json ([aa7b5521](https://github.com/lykmapipo/common/commit/aa7b5521377e2b2fd81d931faab96800c5e85298))
* force latest version & audit fix ([9907ef3a](https://github.com/lykmapipo/common/commit/9907ef3af911328a998ade2e74e0345eee4cba23))
* force latest version & audit fix ([9dbec09b](https://github.com/lykmapipo/common/commit/9dbec09bb67a9d1af88ca3877ff11466854dcba5))
* force latest version & audit fix ([1a7f6e0f](https://github.com/lykmapipo/common/commit/1a7f6e0f2efa591516e56727ef61d04b5219bf17))
* force latest version & audit fix ([580aa24d](https://github.com/lykmapipo/common/commit/580aa24de81ae1bf4ae4cd13e2dd73dfe487f356))
* force latest version & audit fix ([9d4bdc4b](https://github.com/lykmapipo/common/commit/9d4bdc4bc3de44b764ea284245d6f765125bafa4))
* force latest version & audit fix ([fc4eb9ab](https://github.com/lykmapipo/common/commit/fc4eb9ab4c3c33e849f9cb43fc0c975175f7677d))
* force latest version & audit fix ([eb5a3799](https://github.com/lykmapipo/common/commit/eb5a3799b5c164ca8071f7944dcdad43f9d87870))
* force latest version & audit fix ([9676f0bf](https://github.com/lykmapipo/common/commit/9676f0bfdadec4ee5f79f786317a6a735c269be3))
* **ci:** update travis badge url ([00738b0b](https://github.com/lykmapipo/common/commit/00738b0bf2384aaccb69e15842916e676fe1a70b))
##### Documentation Changes
* **security:** restore security policy guide ([6534240e](https://github.com/lykmapipo/common/commit/6534240e5fcad9212c38d1ebff42f67458d3e5de))
#### 0.44.4 (2021-09-06)

@@ -2,0 +23,0 @@

5

es/index.js

@@ -12,3 +12,2 @@ import { resolve } from 'path';

import moment from 'moment';
import parseJson from 'parse-json';
import hashObject from 'object-hash';

@@ -477,7 +476,7 @@ import renderTemplate from 'string-template';

const filePath = resolve(path, 'package.json');
const json = parseJson(readFileSync(filePath, 'utf8'));
const json = JSON.parse(readFileSync(filePath, 'utf8'));
return json;
} catch (e) {
const filePath = resolve(process.cwd(), 'package.json');
const json = parseJson(readFileSync(filePath, 'utf8'));
const json = JSON.parse(readFileSync(filePath, 'utf8'));
return json;

@@ -484,0 +483,0 @@ }

45

lib/index.js

@@ -13,3 +13,2 @@ 'use strict';

const moment = require('moment');
const parseJson = require('parse-json');
const hashObject = require('object-hash');

@@ -478,7 +477,7 @@ const renderTemplate = require('string-template');

const filePath = path.resolve(path$1, 'package.json');
const json = parseJson(fs.readFileSync(filePath, 'utf8'));
const json = JSON.parse(fs.readFileSync(filePath, 'utf8'));
return json;
} catch (e) {
const filePath = path.resolve(process.cwd(), 'package.json');
const json = parseJson(fs.readFileSync(filePath, 'utf8'));
const json = JSON.parse(fs.readFileSync(filePath, 'utf8'));
return json;

@@ -1611,59 +1610,39 @@ }

enumerable: true,
get: function () {
return mime.getExtension;
}
get: function () { return mime.getExtension; }
});
Object.defineProperty(exports, 'mimeTypeOf', {
enumerable: true,
get: function () {
return mime.getType;
}
get: function () { return mime.getType; }
});
Object.defineProperty(exports, 'STATUS_CODES', {
enumerable: true,
get: function () {
return statuses.message;
}
get: function () { return statuses.message; }
});
Object.defineProperty(exports, 'uuidv1', {
enumerable: true,
get: function () {
return uuid.v1;
}
get: function () { return uuid.v1; }
});
Object.defineProperty(exports, 'uuidv3', {
enumerable: true,
get: function () {
return uuid.v3;
}
get: function () { return uuid.v3; }
});
Object.defineProperty(exports, 'uuidv4', {
enumerable: true,
get: function () {
return uuid.v4;
}
get: function () { return uuid.v4; }
});
Object.defineProperty(exports, 'uuidv5', {
enumerable: true,
get: function () {
return uuid.v5;
}
get: function () { return uuid.v5; }
});
Object.defineProperty(exports, 'isBrowser', {
enumerable: true,
get: function () {
return browserOrNode.isBrowser;
}
get: function () { return browserOrNode.isBrowser; }
});
Object.defineProperty(exports, 'isNode', {
enumerable: true,
get: function () {
return browserOrNode.isNode;
}
get: function () { return browserOrNode.isNode; }
});
Object.defineProperty(exports, 'isWebWorker', {
enumerable: true,
get: function () {
return browserOrNode.isWebWorker;
}
get: function () { return browserOrNode.isWebWorker; }
});

@@ -1670,0 +1649,0 @@ exports.RESOURCE_ACTIONS = RESOURCE_ACTIONS;

{
"name": "@lykmapipo/common",
"version": "0.44.4",
"version": "0.44.5",
"description": "Helper utilities for day to day development",

@@ -21,3 +21,5 @@ "main": "lib/index.js",

"changelog": "changelog",
"chore:deps": "ncu -u && npm install --save"
"chore:deps": "ncu -u --timeout=60000 && npm install --save --timeout=60000",
"chore:deps:minor": "ncu -u --target=minor --timeout=60000 && npm install --save --timeout=60000",
"chore:deps:patch": "ncu -u --target=patch --timeout=60000 && npm install --save --timeout=60000"
},

@@ -53,10 +55,10 @@ "repository": {

"devDependencies": {
"@babel/cli": "^7.15.4",
"@babel/core": "^7.15.5",
"@babel/node": "^7.15.4",
"@babel/preset-env": "^7.15.4",
"@babel/register": "^7.15.3",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/travis-cli": "^13.1.0",
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/node": "^7.16.0",
"@babel/preset-env": "^7.16.0",
"@babel/register": "^7.16.0",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@commitlint/travis-cli": "^13.2.1",
"@lykmapipo/test-helpers": "^0.6.23",

@@ -73,4 +75,4 @@ "acorn": "^8.5.0",

"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsdoc": "^36.0.8",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^36.1.1",
"eslint-plugin-mocha": "^9.0.0",

@@ -80,12 +82,12 @@ "eslint-plugin-prettier": "^4.0.0",

"handlebars": "^4.7.7",
"husky": "^7.0.2",
"husky": "^7.0.4",
"kind-of": "^6.0.3",
"lint-staged": "^11.1.2",
"lint-staged": "^11.2.6",
"lodash.template": "^4.5.0",
"minimist": "^1.2.5",
"mocha": "^9.1.1",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"prettier": "^2.3.2",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"rollup": "^2.56.3",
"rollup": "^2.59.0",
"shelljs": "^0.8.4",

@@ -100,6 +102,5 @@ "websocket-extensions": "^0.1.4"

"lodash": ">=4.17.21",
"mime": ">=2.5.2",
"mime": ">=2.6.0",
"moment": ">=2.29.1",
"object-hash": ">=2.2.0",
"parse-json": ">=5.2.0",
"randomcolor": ">=0.6.2",

@@ -106,0 +107,0 @@ "statuses": ">=2.0.1",

# common
[![Build Status](https://travis-ci.com/lykmapipo/common.svg?branch=master)](https://travis-ci.com/lykmapipo/common)
[![Build Status](https://app.travis-ci.com/lykmapipo/common.svg?branch=master)](https://app.travis-ci.com/lykmapipo/common)
[![Dependencies Status](https://david-dm.org/lykmapipo/common.svg)](https://david-dm.org/lykmapipo/common)

@@ -5,0 +5,0 @@ [![Coverage Status](https://coveralls.io/repos/github/lykmapipo/common/badge.svg?branch=master)](https://coveralls.io/github/lykmapipo/common?branch=master)

@@ -68,3 +68,2 @@ import { resolve as resolvePath } from 'path';

import moment from 'moment';
import parseJson from 'parse-json';
import hashObject from 'object-hash';

@@ -537,7 +536,7 @@ import renderTemplate from 'string-template';

const filePath = resolvePath(path, 'package.json');
const json = parseJson(readFileSync(filePath, 'utf8'));
const json = JSON.parse(readFileSync(filePath, 'utf8'));
return json;
} catch (e) {
const filePath = resolvePath(process.cwd(), 'package.json');
const json = parseJson(readFileSync(filePath, 'utf8'));
const json = JSON.parse(readFileSync(filePath, 'utf8'));
return json;

@@ -544,0 +543,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