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

hpw

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpw - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

.editorconfig

206

.eslintrc.json

@@ -7,3 +7,3 @@ {

},
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {

@@ -16,36 +16,11 @@ "ecmaVersion": "latest"

"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-loop-func": [
"error"
],
"block-spacing": [
"error",
"always"
],
"camelcase": [
"error"
],
"eqeqeq": [
"error",
"always"
],
"strict": [
"error",
"global"
],
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-loop-func": ["error"],
"block-spacing": ["error", "always"],
"camelcase": ["error"],
"eqeqeq": ["error", "always"],
"strict": ["error", "global"],
"brace-style": [

@@ -58,6 +33,3 @@ "error",

],
"comma-style": [
"error",
"last"
],
"comma-style": ["error", "last"],
"comma-spacing": [

@@ -70,9 +42,4 @@ "error",

],
"eol-last": [
"error"
],
"func-call-spacing": [
"error",
"never"
],
"eol-last": ["error"],
"func-call-spacing": ["error", "never"],
"key-spacing": [

@@ -119,29 +86,10 @@ "error",

],
"new-parens": [
"error"
],
"no-lonely-if": [
"error"
],
"no-trailing-spaces": [
"error"
],
"no-unneeded-ternary": [
"error"
],
"no-whitespace-before-property": [
"error"
],
"object-curly-spacing": [
"error",
"always"
],
"operator-assignment": [
"error",
"always"
],
"operator-linebreak": [
"error",
"after"
],
"new-parens": ["error"],
"no-lonely-if": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"object-curly-spacing": ["error", "always"],
"operator-assignment": ["error", "always"],
"operator-linebreak": ["error", "after"],
"semi-spacing": [

@@ -154,6 +102,3 @@ "error",

],
"space-before-blocks": [
"error",
"always"
],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": [

@@ -167,9 +112,4 @@ "error",

],
"space-in-parens": [
"error",
"never"
],
"space-infix-ops": [
"error"
],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": [

@@ -185,14 +125,6 @@ "error",

],
"no-unreachable": [
"error"
],
"no-global-assign": [
"error"
],
"no-self-compare": [
"error"
],
"no-unmodified-loop-condition": [
"error"
],
"no-unreachable": ["error"],
"no-global-assign": ["error"],
"no-self-compare": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-constant-condition": [

@@ -204,14 +136,6 @@ "error",

],
"no-console": [
"off"
],
"no-useless-concat": [
"error"
],
"no-useless-escape": [
"error"
],
"no-shadow-restricted-names": [
"error"
],
"no-console": ["off"],
"no-useless-concat": ["error"],
"no-useless-escape": ["error"],
"no-shadow-restricted-names": ["error"],
"no-use-before-define": [

@@ -223,13 +147,5 @@ "error",

],
"arrow-parens": [
"error",
"always"
],
"arrow-body-style": [
"error",
"as-needed"
],
"arrow-spacing": [
"error"
],
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": ["error"],
"no-confusing-arrow": [

@@ -241,43 +157,15 @@ "error",

],
"no-useless-computed-key": [
"error"
],
"no-useless-rename": [
"error"
],
"no-var": [
"error"
],
"object-shorthand": [
"error",
"always"
],
"prefer-arrow-callback": [
"error"
],
"prefer-const": [
"error"
],
"prefer-numeric-literals": [
"error"
],
"prefer-rest-params": [
"error"
],
"prefer-spread": [
"error"
],
"rest-spread-spacing": [
"error",
"never"
],
"template-curly-spacing": [
"error",
"never"
],
"consistent-return": [
"error",
{ "treatUndefinedAsUnspecified": true }
]
"no-useless-computed-key": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-numeric-literals": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": ["error", "never"],
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }]
}
}

@@ -79,3 +79,3 @@ #!/usr/bin/env node

throw new Error(
`Solution is too long: no more than ${maxLength} characters expected.`
`Solution is too long: no more than ${maxLength} characters expected.`,
);

@@ -85,3 +85,3 @@ }

throw new Error(
`Solution is too short: at least ${minLength} characters expected.`
`Solution is too short: at least ${minLength} characters expected.`,
);

@@ -99,3 +99,3 @@ }

throw new Error(
`Case failed: ${args}, expected: ${expected}, result: ${result}`
`Case failed: ${args}, expected: ${expected}, result: ${result}`,
);

@@ -102,0 +102,0 @@ }

{
"name": "hpw",
"version": "0.2.1",
"version": "0.2.2",
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",

@@ -15,3 +15,3 @@ "description": "Labs Auto Checker",

"type": "git",
"url": "https://github.com/HowProgrammingWorks/Labs"
"url": "git+https://github.com/HowProgrammingWorks/Labs.git"
},

@@ -25,11 +25,12 @@ "bugs": {

"bin": {
"hpw": "./bin/hpw.js"
"hpw": "bin/hpw.js"
},
"scripts": {
"install": "node ./bin/install.js",
"test": "node ./bin/hpw.js",
"lint": "eslint ."
"test": "npm run lint && node ./bin/hpw.js",
"types": "tsc -p tsconfig.json",
"lint": "eslint . && prettier --check \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/.*rc\"",
"fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \"**/.*rc\""
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},

@@ -40,4 +41,8 @@ "dependencies": {

"devDependencies": {
"eslint": "^8.49.0"
}
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.0"
}
}
# Laboratory Work for How.Programming.Works Project
Install:
1. Create empty folder
2. In this folder run `npm install hpw`
3. Follow instructions
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