credit-roles
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "credit-roles", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Enumeration and normalization of CRT Contributor Roles (https://credit.niso.org/)", | ||
@@ -11,2 +11,9 @@ "keywords": [ | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
@@ -23,31 +30,23 @@ "access": "public" | ||
}, | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"prepublishOnly": "npm run build && npm run test", | ||
"clean": "rm -rf dist", | ||
"test": "jest", | ||
"test:watch": "jest --watchAll", | ||
"lint": "eslint \"src/**/*.ts\" -c .eslintrc.js --max-warnings 1", | ||
"lint:format": "prettier --check src/*.ts src/**/*.ts", | ||
"build:esm": "tsc --module es2015 --outDir dist/esm", | ||
"build:cjs": "tsc --module commonjs --outDir dist/cjs", | ||
"declarations": "tsc --declaration --emitDeclarationOnly --declarationMap --outDir dist/types", | ||
"build": "npm-run-all -l clean -p build:cjs build:esm declarations", | ||
"prepublishOnly": "npm run build && npm run test" | ||
"unlink": "npm uninstall -g orcid;", | ||
"link": "npm run unlink; npm link;", | ||
"dev": "npm run link && esbuild src/cli/index.ts --bundle --outfile=dist/orcid.cjs --platform=node --watch", | ||
"lint": "eslint \"src/**/*.ts*\" -c ./.eslintrc.cjs", | ||
"lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\"", | ||
"test": "vitest run", | ||
"test:watch": "vitest watch", | ||
"build:esm": "tsc --project ./tsconfig.json --module es2015 --outDir dist --declaration", | ||
"build": "npm-run-all -l clean -p build:esm" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^29.2.3", | ||
"eslint": "^8.21.0", | ||
"eslint": "^8.42.0", | ||
"eslint-config-curvenote": "latest", | ||
"jest": "28.1.3", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.8.0", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^28.0.7", | ||
"typescript": "^4.9.3" | ||
"prettier": "^2.8.8", | ||
"typescript": "^5.1.3", | ||
"vitest": "^0.32.0" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # credit-roles | ||
A utility for validating [CRT Contributor Roles](https://credit.niso.org/) in your application, building canonical URLS, and showing descriptions. | ||
A utility for validating [CRT Contributor Roles](https://credit.niso.org/) in your application, building canonical URLs, and showing descriptions. | ||
@@ -26,3 +26,3 @@ ```shell | ||
// Handles British spelling and capicalizations | ||
// Handles British spelling and capitalizations | ||
credit.normalize('conceptualiSation'); // "Conceptualization" | ||
@@ -59,2 +59,6 @@ | ||
As of v2.0.0 this package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). | ||
--- | ||
<p style="text-align: center; color: #aaa; padding-top: 50px"> | ||
@@ -61,0 +65,0 @@ Made with love by |
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
6
67
Yes
12098
5
154
1