Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

credit-roles

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credit-roles - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

dist/index.d.ts

45

package.json
{
"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

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