New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@petrocloud/constants

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@petrocloud/constants - npm Package Compare versions

Comparing version

to
1.2.0

.github/workflows/ci.yml

27

.eslintrc.json

@@ -8,3 +8,3 @@ // Refer to http://eslint.org/docs/rules/ for details on each rule and how to configure them

"parserOptions": {
"ecmaVersion": 8 // support for async/await
"ecmaVersion": 13
},

@@ -17,3 +17,3 @@ "plugins": [

"no-await-in-loop": [
"error"
0
],

@@ -133,3 +133,5 @@ "no-compare-neg-zero": [

"curly": [
"error"
"error",
"multi-line",
"consistent"
],

@@ -299,6 +301,10 @@ "default-case": [

"no-unused-expressions": [
0
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
],
"chai-friendly/no-unused-expressions": [
"error"
0
],

@@ -428,3 +434,6 @@ "no-unused-labels": [

"i",
"j"
"j",
"x",
"y",
"z"
]

@@ -447,3 +456,4 @@ }

"ArrayExpression": 1,
"ObjectExpression": 1
"ObjectExpression": 1,
"SwitchCase": 1
}

@@ -544,5 +554,2 @@ ],

}, {
"selector": "ForOfStatement",
"message": "iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations."
}, {
"selector": "LabeledStatement",

@@ -549,0 +556,0 @@ "message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."

@@ -11,4 +11,9 @@ ---------------------------------------------------------

Version 1.2.0 - (2024-08-22)
--------------------------------
- enh: Upgrade http-status-codes (mudrekh)
Version 1.1.1 - (2021-05-17)
--------------------------------
- enh: Add license (mudrekh)

@@ -15,0 +20,0 @@ Version 1.1.0 - (2019-09-03)

{
"name": "@petrocloud/constants",
"version": "1.1.1",
"version": "1.2.0",
"description": "Standard constants",

@@ -17,24 +17,24 @@ "main": "index.js",

"type": "git",
"url": "git+ssh://git@bitbucket.org/petrocloud/constants.git"
"url": "git+ssh://git@github.com/twenty20solutions/constants.git"
},
"author": "Mudrekh Goderya",
"license": "MIT",
"homepage": "https://bitbucket.org/petrocloud/constants#readme",
"homepage": "https://github.com/twenty20solutions/constants#readme",
"dependencies": {
"http-status-codes": "^1.3.2"
"http-status-codes": "^2.3.0"
},
"devDependencies": {
"@petrocloud/dn-coding-standards": "^0.1.7",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"@petrocloud/dn-coding-standards": "^4.6.4",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"chai-http": "^4.4.0",
"dirty-chai": "^2.0.1",
"eslint": "^5.16.0",
"eslint-plugin-chai-friendly": "^0.7.1",
"mocha": "^8.4.0",
"nyc": "^15.1.0",
"sinon": "^10.0.0",
"sinon-chai": "^3.6.0",
"supertest": "^6.1.3"
"eslint": "^8.57.0",
"eslint-plugin-chai-friendly": "^1.0.1",
"mocha": "^10.7.3",
"nyc": "^17.0.0",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"supertest": "^7.0.0"
}
}

@@ -0,1 +1,3 @@

/* eslint-disable no-console */
global.chai = require('chai');

@@ -5,3 +7,7 @@ global.should = global.chai.should();

global.Promise = require('bluebird');
try {
require('bluebird'); // eslint-disable-line global-require
console.warn('This project still uses bluebird');
console.warn('Consider migrating to NodeJS promises');
} catch (err) {} // eslint-disable-line no-empty
global.sinon = require('sinon');

@@ -8,0 +14,0 @@

'use strict';
/* eslint-disable no-sync,global-require */
const fs = require('fs');
const dirs = fs.readdirSync(__dirname);
console.log(dirs);
const files = fs.readdirSync(__dirname);
dirs.forEach((file) => {
files.forEach((file) => {
if (file !== 'index.js') {
require(`./${file}`); //eslint-disable-line
require(`./${file}`);
}
});
'use strict';
process.env.NODE_ENV = 'test';
process.env.DBPATH = './test/database';
let level;
let sublevel;
/* eslint-disable */
try {
level = require('level');
sublevel = require('subleveldown');
global.TESTDB = sublevel(level(process.env.DBPATH, { valueEncoding: 'json' }));
} catch (err) {
console.warn('Could not load a suitable TESTDB');
console.warn('If these tests need a mock DB, you should consider adding them as a dependency');
}
/* eslint-enable */
process.env.DBPATH = './testdb';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet