Socket
Socket
Sign inDemoInstall

cleaner-node

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleaner-node - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0

3

.vscode/settings.json

@@ -19,5 +19,6 @@ {

"titleBar.inactiveBackground": "#9fc98999",
"titleBar.inactiveForeground": "#15202b99"
"titleBar.inactiveForeground": "#15202b99",
"commandCenter.border": "#15202b99"
},
"peacock.color": "#9fc989"
}
{
"name": "cleaner-node",
"version": "0.21.0",
"name" : "cleaner-node",
"version" : "0.22.0",
"description": "Helpful utilities and scripts to make Node projects more legible and easier for the next developer to take over.",
"main": "index.js",
"scripts": {
"lint": "eslint ./src/**/*.js",
"main" : "index.js",
"scripts" : {
"lint" : "eslint ./src/**/*.js",
"lint:fix": "eslint ./src/**/*.js --fix"

@@ -12,3 +12,3 @@ },

"type": "git",
"url": "git+https://github.com/FredLackey/cleaner-node.git"
"url" : "git+https://github.com/FredLackey/cleaner-node.git"
},

@@ -29,36 +29,36 @@ "keywords": [

],
"author": "Fred Lackey <fred.lackey@gmail.com>",
"author" : "Fred Lackey <fred.lackey@gmail.com>",
"license": "Apache-2.0",
"bugs": {
"bugs" : {
"url": "https://github.com/FredLackey/cleaner-node/issues"
},
"homepage": "https://github.com/FredLackey/cleaner-node#readme",
"homepage" : "https://github.com/FredLackey/cleaner-node#readme",
"dependencies": {
"camelcase": "^6.3.0",
"email-addresses": "^5.0.0",
"gravatar": "^1.8.2",
"html-to-text": "^8.2.0",
"is-html": "2.x.x",
"jsonwebtoken": "^8.5.1",
"camelcase" : "^7.0.0",
"email-addresses" : "^5.0.0",
"gravatar" : "^1.8.2",
"html-to-text" : "^8.2.1",
"is-html" : "3.x.x",
"jsonwebtoken" : "^8.5.1",
"know-your-http-well": "^0.5.0",
"md5-file": "^5.0.0",
"moment": "^2.29.3",
"node-fetch": "2.x.x",
"semver": "^7.3.7",
"uuid": "^8.3.2",
"uuid-validate": "0.0.3"
"md5-file" : "^5.0.0",
"moment" : "^2.29.4",
"node-fetch" : "2.x.x",
"semver" : "^7.3.8",
"uuid" : "^9.0.0",
"uuid-validate" : "0.0.3"
},
"devDependencies": {
"eslint": "^8.14.0",
"eslint-config-airbnb": "^19.0.4",
"eslint" : "^8.26.0",
"eslint-config-airbnb" : "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-standard": "^4.1.0"
"eslint-config-standard" : "^17.0.0",
"eslint-plugin-import" : "^2.26.0",
"eslint-plugin-jsx-a11y" : "^6.6.1",
"eslint-plugin-node" : "^11.1.0",
"eslint-plugin-promise" : "^6.1.1",
"eslint-plugin-react" : "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-standard" : "^4.1.0"
}
}

@@ -64,1 +64,2 @@ # cleaner-node

| 0.20.0 | 2022/06/14 | Add `crypto.encode`, `crypto.decode`. |
| 0.22.0 | 2022/10/23 | Ensure HTTP status codes are numeric. |

@@ -7,3 +7,3 @@ const wells = require('know-your-http-well');

ALPHANUMERIC: 'abcdefghijklmnopqrstuvwxyz0123456789',
BRACKETS : [
BRACKETS : [
{ open: '<', close: '/>' },

@@ -17,30 +17,30 @@ { open: '<', close: '>' },

],
CLEAR_CODE : 'ACDEFGHJKLMNPRTVWXY0123456789',
DIGITS : '0123456789',
ENUM_NAME : 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
CLEAR_CODE: 'ACDEFGHJKLMNPRTVWXY0123456789',
DIGITS : '0123456789',
ENUM_NAME : 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
},
durations: {
YEAR : 'years',
QUARTER : 'quarters',
MONTH : 'months',
WEEK : 'weeks',
DAY : 'days',
HOUR : 'hours',
MINUTE : 'minutes',
SECOND : 'seconds',
MILLISECOND : 'milliseconds',
YEAR : 'years',
QUARTER : 'quarters',
MONTH : 'months',
WEEK : 'weeks',
DAY : 'days',
HOUR : 'hours',
MINUTE : 'minutes',
SECOND : 'seconds',
MILLISECOND: 'milliseconds',
YEARS : 'years',
QUARTERS : 'quarters',
MONTHS : 'months',
WEEKS : 'weeks',
DAYS : 'days',
HOURS : 'hours',
MINUTES : 'minutes',
SECONDS : 'seconds',
MILLISECONDS : 'milliseconds',
YEARS : 'years',
QUARTERS : 'quarters',
MONTHS : 'months',
WEEKS : 'weeks',
DAYS : 'days',
HOURS : 'hours',
MINUTES : 'minutes',
SECONDS : 'seconds',
MILLISECONDS: 'milliseconds',
},
http: {
status: {
codes: wells.statusPhrasesToCodes,
codes : wells.statusPhrasesToCodes,
phrases: wells.statusPhrasesToCodes

@@ -51,3 +51,3 @@ }

ALPHANUMERIC_DELIMITED: '^[a-zA-Z\\d-_]+$',
ENUM_NAMES: '^[a-zA-Z\\d_]+$'
ENUM_NAMES : '^[a-zA-Z\\d_]+$'
}

@@ -57,4 +57,9 @@ };

// Accounting for common typos
me.strings.ENUM_NAMES = me.strings.ENUM_NAME;
me.strings.ENUM_NAMES = me.strings.ENUM_NAME;
// Ensure HTTP status codes are numeric
Object.keys(me.http.status.codes).filter(x => (x && x.toUpperCase() === x)).forEach(key => {
me.http.status.codes[key] = Number(me.http.status.codes[key]);
});
module.exports = me;
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