encoding-sniffer
Advanced tools
Comparing version 0.1.0 to 0.2.0
141
package.json
{ | ||
"name": "encoding-sniffer", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Implementation of the HTML encoding sniffer algo, with stream support", | ||
"type": "commonjs", | ||
"main": "lib/index.js", | ||
"funding": "https://github.com/fb55/encoding-sniffer?sponsor=1", | ||
"bugs": { | ||
"url": "https://github.com/fb55/encoding-sniffer/issues" | ||
}, | ||
"repository": { | ||
@@ -12,61 +12,58 @@ "type": "git", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/fb55/encoding-sniffer/issues" | ||
"funding": "https://github.com/fb55/encoding-sniffer?sponsor=1", | ||
"license": "MIT", | ||
"author": "Felix Boehm <me@feedic.com>", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"source": "./src/index.ts", | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"source": "./src/index.ts", | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
}, | ||
"./sniffer": { | ||
"import": { | ||
"source": "./src/sniffer.ts", | ||
"types": "./dist/esm/sniffer.d.ts", | ||
"default": "./dist/esm/sniffer.js" | ||
}, | ||
"require": { | ||
"source": "./src/sniffer.ts", | ||
"types": "./dist/commonjs/sniffer.d.ts", | ||
"default": "./dist/commonjs/sniffer.js" | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
"iconv-lite": "^0.6.3", | ||
"whatwg-encoding": "^3.1.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.5.11", | ||
"@types/node": "^20.10.6", | ||
"@types/whatwg-encoding": "^2.0.2", | ||
"@typescript-eslint/eslint-plugin": "^6.17.0", | ||
"@typescript-eslint/parser": "^6.17.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-unicorn": "^50.0.1", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.1.1", | ||
"ts-jest": "^29.1.1", | ||
"typedoc": "^0.25.6", | ||
"typescript": "^5.3.3" | ||
}, | ||
"main": "./dist/commonjs/index.js", | ||
"types": "./dist/commonjs/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"test": "npm run test:jest && npm run lint", | ||
"test:jest": "jest", | ||
"build": "tshy", | ||
"build:docs": "typedoc --hideGenerator src/index.ts", | ||
"format": "npm run format:es && npm run format:prettier", | ||
"format:es": "npm run lint:es -- --fix", | ||
"format:prettier": "npm run prettier -- --write", | ||
"lint": "npm run lint:es && npm run lint:prettier", | ||
"lint:es": "eslint --ignore-path .gitignore .", | ||
"lint:prettier": "npm run prettier -- --check", | ||
"format": "npm run format:es && npm run format:prettier", | ||
"format:es": "npm run lint:es -- --fix", | ||
"format:prettier": "npm run prettier -- --write", | ||
"make-cjs": "sed -i '' 's/\"type\": \"module\"/\"type\": \"commonjs\"/g' package.json", | ||
"make-esm": "sed -i '' 's/\"type\": \"commonjs\"/\"type\": \"module\"/g' package.json", | ||
"prepublishOnly": "npm run build", | ||
"prettier": "prettier '**/*.{ts,md,json,yml}'", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"make-esm": "sed -i '' 's/\"type\": \"commonjs\"/\"type\": \"module\"/g' package.json", | ||
"make-cjs": "sed -i '' 's/\"type\": \"module\"/\"type\": \"commonjs\"/g' package.json", | ||
"build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/encoding-sniffer/$(git rev-parse HEAD)/src/", | ||
"build:esm": "npm run make-esm && npm run build:cjs -- --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json; npm run make-cjs", | ||
"build:docs": "typedoc --hideGenerator src/index.ts", | ||
"prepublishOnly": "npm run build" | ||
"test": "npm run test:jest && npm run lint", | ||
"test:jest": "jest" | ||
}, | ||
"author": "Felix Boehm <me@feedic.com>", | ||
"license": "MIT", | ||
"files": [ | ||
"lib" | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/index.js" | ||
}, | ||
"./lib/sniffer": { | ||
"import": "./lib/esm/sniffer.js", | ||
"require": "./lib/sniffer.js" | ||
} | ||
"prettier": { | ||
"proseWrap": "always", | ||
"tabWidth": 4 | ||
}, | ||
"jest": { | ||
"preset": "ts-jest", | ||
"testEnvironment": "node", | ||
"coverageProvider": "v8", | ||
@@ -78,8 +75,36 @@ "moduleNameMapper": { | ||
] | ||
} | ||
}, | ||
"preset": "ts-jest", | ||
"testEnvironment": "node" | ||
}, | ||
"prettier": { | ||
"tabWidth": 4, | ||
"proseWrap": "always" | ||
"dependencies": { | ||
"iconv-lite": "^0.6.3", | ||
"whatwg-encoding": "^3.1.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.14.2", | ||
"@types/whatwg-encoding": "^2.0.3", | ||
"@typescript-eslint/eslint-plugin": "^7.13.0", | ||
"@typescript-eslint/parser": "^7.13.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-n": "^17.9.0", | ||
"eslint-plugin-unicorn": "^54.0.0", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.3.2", | ||
"ts-jest": "^29.1.4", | ||
"tshy": "^1.15.1", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5" | ||
}, | ||
"tshy": { | ||
"exports": { | ||
".": "./src/index.ts", | ||
"./sniffer": "./src/sniffer.ts" | ||
}, | ||
"exclude": [ | ||
"src/**/*.spec.ts" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167439
21
2512
Yes
15
1