@entur/create-offer-configurations-from-offer-to-buy
Advanced tools
Comparing version 3.1.2 to 4.0.0
{ | ||
"name": "@entur/create-offer-configurations-from-offer-to-buy", | ||
"version": "3.1.2", | ||
"version": "4.0.0", | ||
"description": "Create an array of offer configurations exactly as prescribed by the possibleTravellerIds field in an OfferToBuy", | ||
"type": "module", | ||
"description": "Create an array of offer configurations exactly as prescribed by the possibleTravellerIds field in an OfferToBuy", | ||
"main": "dist/esm/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/create-offer-configurations-from-offer-to-buy.cjs", | ||
"module": "./dist/create-offer-configurations-from-offer-to-buy.js", | ||
"exports": { | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/commonjs/index.cjs" | ||
".": { | ||
"import": "./dist/create-offer-configurations-from-offer-to-buy.js", | ||
"require": "./dist/create-offer-configurations-from-offer-to-buy.cjs" | ||
} | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"repository": "https://github.com/entur/create-offer-configurations-from-offer-to-buy", | ||
"author": "Eirik Vageskar <eirik.vageskar@knowit.no>", | ||
"license": "EUPL-1.2", | ||
"files": [ | ||
"dist" | ||
], | ||
"homepage": "https://www.npmjs.com/package/@entur/create-offer-configurations-from-offer-to-buy", | ||
"scripts": { | ||
"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/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", | ||
"test": "mocha test/**/*.ts", | ||
"prepack": "npm run build", | ||
"build": "vite build", | ||
"update-types": "npx swagger-typescript-api --path https://api.staging.entur.io/offers/v2/api-docs/swagger.json --output source/types -n offersTypes.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", | ||
"test": "vitest run", | ||
"lint": "npx prettier --check *.{md,json} .*.cjs; xo", | ||
"lint:fix": "npx prettier --write *.{md,json} .*.cjs; xo --fix", | ||
"prepublishOnly": "npm run build && npm run test", | ||
"prepublish": "npm run test", | ||
"prepare": "husky install", | ||
@@ -31,10 +34,4 @@ "publish": "npx np" | ||
"devDependencies": { | ||
"@babel/core": "^7.14.8", | ||
"@babel/preset-env": "^7.14.8", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@sindresorhus/tsconfig": "^1.0.2", | ||
"@types/babel__core": "^7.1.15", | ||
"@types/babel__preset-env": "^7.9.2", | ||
"@types/eslint-plugin-prettier": "^3.1.0", | ||
"@types/mocha": "^9.1.1", | ||
"@types/prettier": "^2.3.2", | ||
@@ -46,11 +43,11 @@ "@types/xo": "^0.39.1", | ||
"eslint-plugin-sort-keys": "^2.3.5", | ||
"expect": "^28.1.3", | ||
"husky": "^7.0.1", | ||
"mocha": "^10.0.0", | ||
"np": "^7.6.0", | ||
"prettier": "^2.3.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.4.3", | ||
"vite": "^4.3.5", | ||
"vite-plugin-dts": "^2.3.0", | ||
"vitest": "^0.31.0", | ||
"xo": "^0.42.0" | ||
} | ||
} |
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
16
104587
8
2923
1