@entur/create-offer-configurations-from-offer-to-buy
Advanced tools
Comparing version 2.0.1 to 2.1.0
{ | ||
"name": "@entur/create-offer-configurations-from-offer-to-buy", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"type": "module", | ||
"description": "Create an array of offer configurations exactly as prescribed by the possibleTravellerIds field in an OfferToBuy", | ||
"main": "dist/index.js", | ||
"main": "dist/esm/index.js", | ||
"exports": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/commonjs/index.cjs" | ||
}, | ||
"repository": "https://github.com/entur/create-offer-configurations-from-offer-to-buy", | ||
@@ -15,3 +19,5 @@ "author": "Eirik Vageskar <eirik.vageskar@knowit.no>", | ||
"scripts": { | ||
"build": "rm -rf dist && npx tsc", | ||
"build": "rm -rf dist && npm run build:commonjs && npm run build:esm", | ||
"build:esm": "tsc --outDir dist/esm", | ||
"build:commonjs": "tsc --module commonjs --target es5 --outDir dist/commonjs && mv dist/commonjs/index.js dist/commonjs/index.cjs", | ||
"update-types": "npx swagger-typescript-api --path https://api.staging.entur.io/sales/v1/offers/api-docs/swagger.json --output source/types -n offersTypes.ts --no-client && npx swagger-typescript-api --path https://api.staging.entur.io/offers/v2-beta/api-docs/swagger.json --output source/types -n offers2Types.ts --no-client && npx swagger-typescript-api --path https://api.staging.entur.io/api-docs/reserve-offer?group=public --output source/types -n reserveOfferTypes.ts --no-client", | ||
@@ -21,3 +27,3 @@ "test": "jest", | ||
"lint:fix": "npx prettier --write *.{md,json} .*.cjs; xo --fix", | ||
"prepublishOnly": "npx tsc && npm run test", | ||
"prepublishOnly": "npm run build && npm run test", | ||
"prepare": "husky install", | ||
@@ -44,3 +50,3 @@ "publish": "npx np" | ||
"jest": "^27.0.6", | ||
"np": "^7.5.0", | ||
"np": "^7.6.0", | ||
"prettier": "^2.3.2", | ||
@@ -47,0 +53,0 @@ "typescript": "^4.4.3", |
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
359830
19
8233
1