{
+ "$schema": "https://json.schemastore.org/package",
"name": "e-mobility-charging-stations-simulator",
- "version": "1.1.94",
+ "version": "1.2.29",
"engines": {
- "node": ">=16.0.0",
- "npm": ">=8.3.0"
+ "node": ">=18.18.0",
+ "pnpm": ">=8.6.0"
+ },
+ "volta": {
+ "node": "20.10.0",
+ "pnpm": "8.12.1"
},
"repository": {
"type": "git",
},
"description": "Electric vehicle charging stations simulator",
"author": "SAP E-Mobility <e-mobility@sap.com>",
+ "keywords": [
+ "ocpp",
+ "ocpp-j",
+ "ocpp1.6",
+ "ocpp2.0",
+ "charging station",
+ "load testing"
+ ],
"contributors": [
{
"name": "Jérôme Benoit",
"url": "http://www.apache.org/licenses/LICENSE-2.0"
}
],
+ "type": "module",
"exports": [
- "./dist/start.cjs",
- "./dist/start.mjs"
+ "./dist/start.js"
],
"auto-changelog": {
"commitUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/commit/{id}",
"useTsNode": true
},
"scripts": {
+ "preinstall": "node skip-preinstall.js || npx --yes only-allow pnpm",
"prepare": "node prepare.js",
- "build-requirements": "node build-requirements.js",
- "start": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/start.cjs",
- "start:debug": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.cjs",
- "start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.cjs",
- "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.cjs",
- "start:dev:esm": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.mjs",
- "start:prof": "cross-env NODE_ENV=production node -r source-map-support/register --prof dist/start.cjs",
- "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node -r source-map-support/register dist/start.cjs",
- "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node -r source-map-support/register dist/start.cjs",
- "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node -r source-map-support/register dist/start.cjs",
- "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.cjs",
- "rollup": "npm run build-requirements && rollup --config",
- "build": "npm run rollup",
- "build:dev": "npm run rollup -- --environment BUILD:development",
- "build:dev:watch": "npm run rollup -- --environment BUILD:development --watch",
- "lint": "cross-env TIMING=1 eslint --cache --ext .js,.ts src",
- "lint:fix": "cross-env TIMING=1 eslint --cache --fix --ext .js,.ts src",
+ "build-requirements": "node --no-warnings build-requirements.js",
+ "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js",
+ "start:dev": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps dist/start.js",
+ "start:dev:debug": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps --inspect dist/start.js",
+ "start:prof": "cross-env NODE_ENV=production node --enable-source-maps --prof dist/start.js",
+ "start:doctorprof": "cross-env NODE_ENV=production clinic doctor -- node --enable-source-maps dist/start.js",
+ "start:flameprof": "cross-env NODE_ENV=production clinic flame -- node --enable-source-maps dist/start.js",
+ "start:bubbleprof": "cross-env NODE_ENV=production clinic bubbleprof -- node --enable-source-maps dist/start.js",
+ "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node --enable-source-maps dist/start.js",
+ "esbuild": "pnpm build-requirements && node bundle.js",
+ "build": "pnpm esbuild",
+ "build:dev": "cross-env BUILD=development pnpm esbuild",
+ "build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm build",
+ "build:cf:dev": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm build:dev",
+ "clean:dist": "npx rimraf dist",
+ "clean:node_modules": "npx rimraf node_modules",
+ "lint": "cross-env TIMING=1 eslint --cache src",
+ "lint:fix": "cross-env TIMING=1 eslint --cache --fix src",
"format": "prettier --cache --write .",
- "test": "c8 mocha test/**/*Test.ts",
- "test:debug": "mocha --no-parallel --inspect test/**/*Test.ts",
+ "test": "glob -c \"c8 node --import tsx --test\" \"tests/**/*.test.ts\"",
+ "test:debug": "glob -c \"node --import tsx --test --inspect\" \"tests/**/*.test.ts\"",
"coverage": "c8 report --reporter=lcov",
"coverage:html": "c8 report --reporter=html",
"clinic:clean": "clinic clean",
- "robohydra": "robohydra test/robohydra/config.json",
- "git:sinit": "git submodule update --init --recursive --force",
- "git:sdiff": "git diff && git submodule foreach 'git diff'",
- "git:supdate": "git submodule update --remote --recursive --merge",
- "git:spush": "git push --recurse-submodules=on-demand",
"release": "release-it"
},
- "overrides": {
- "cacheable-request": "^10.2.7",
- "d3-color": "^3.1.0"
+ "pnpm": {
+ "overrides": {
+ "cacheable-request": "^10.2.10",
+ "d3-color": "^3.1.0",
+ "ejs": "^3.1.9",
+ "got": "^12.6.1",
+ "semver": "^7.5.3",
+ "uuid": "^9.0.0",
+ "tough-cookie": "^4.1.3"
+ }
},
"dependencies": {
- "@mikro-orm/core": "^5.6.13",
- "@mikro-orm/mariadb": "^5.6.13",
- "@mikro-orm/reflection": "^5.6.13",
- "@mikro-orm/sqlite": "^5.6.13",
+ "@mikro-orm/core": "^5.9.4",
+ "@mikro-orm/mariadb": "^5.9.4",
+ "@mikro-orm/reflection": "^5.9.4",
+ "@mikro-orm/sqlite": "^5.9.4",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
- "basic-ftp": "^5.0.2",
- "chalk": "^4.1.2",
- "http-status-codes": "^2.2.0",
- "just-clone": "^6.2.0",
+ "basic-ftp": "^5.0.4",
+ "chalk": "^5.3.0",
+ "date-fns": "3.0.0-rc.2",
+ "http-status-codes": "^2.3.0",
"just-merge": "^3.2.0",
- "logform": "^2.5.1",
- "mnemonist": "^0.39.5",
- "moment": "^2.29.4",
- "mongodb": "^5.1.0",
- "poolifier": "^2.3.7",
- "proper-lockfile": "^4.1.2",
- "source-map-support": "^0.5.21",
- "tar": "^6.1.13",
- "tslib": "^2.5.0",
- "winston": "^3.8.2",
+ "logform": "^2.6.0",
+ "mnemonist": "^0.39.6",
+ "mongodb": "^6.3.0",
+ "poolifier": "^3.0.14",
+ "tar": "^6.2.0",
+ "tslib": "^2.6.2",
+ "winston": "^3.11.0",
"winston-daily-rotate-file": "^4.7.1",
- "ws": "^8.13.0"
+ "ws": "^8.15.1"
},
"optionalDependencies": {
- "bufferutil": "^4.0.7",
+ "bufferutil": "^4.0.8",
"utf-8-validate": "^6.0.3"
},
"devDependencies": {
- "@commitlint/cli": "^17.4.4",
- "@commitlint/config-conventional": "^17.4.4",
- "@mikro-orm/cli": "^5.6.13",
- "@release-it/bumper": "^4.0.2",
- "@rollup/plugin-json": "^6.0.0",
- "@types/mocha": "^10.0.1",
- "@types/mochawesome": "^6.2.1",
- "@types/node": "^18.15.0",
- "@types/proper-lockfile": "^4.1.2",
- "@types/tar": "^6.1.4",
- "@types/ws": "^8.5.4",
- "@typescript-eslint/eslint-plugin": "^5.54.1",
- "@typescript-eslint/parser": "^5.54.1",
+ "@commitlint/cli": "^18.4.3",
+ "@commitlint/config-conventional": "^18.4.3",
+ "@mikro-orm/cli": "^5.9.4",
+ "@release-it/bumper": "^6.0.1",
+ "@types/node": "^20.10.4",
+ "@types/tar": "^6.1.10",
+ "@types/ws": "^8.5.10",
+ "@typescript-eslint/eslint-plugin": "^6.14.0",
+ "@typescript-eslint/parser": "^6.14.0",
"auto-changelog": "^2.4.0",
- "c8": "^7.13.0",
- "clinic": "^12.0.0",
+ "c8": "^8.0.1",
+ "clinic": "^13.0.0",
"cross-env": "^7.0.3",
- "eslint": "^8.36.0",
- "eslint-config-prettier": "^8.7.0",
- "eslint-import-resolver-typescript": "^3.5.3",
- "eslint-plugin-import": "^2.27.5",
- "eslint-plugin-jsdoc": "^40.0.1",
- "eslint-plugin-n": "^15.6.1",
- "eslint-plugin-prettier": "^4.2.1",
+ "esbuild": "^0.19.9",
+ "esbuild-plugin-clean": "^1.0.1",
+ "esbuild-plugin-copy": "^2.1.1",
+ "eslint": "^8.55.0",
+ "eslint-config-prettier": "^9.1.0",
+ "eslint-import-resolver-typescript": "^3.6.1",
+ "eslint-plugin-import": "^2.29.0",
+ "eslint-plugin-jsdoc": "^46.9.1",
+ "eslint-plugin-n": "^16.4.0",
+ "eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-tsdoc": "^0.2.17",
- "expect": "^29.5.0",
+ "expect": "^29.7.0",
+ "glob": "^10.3.10",
"husky": "^8.0.3",
- "lint-staged": "^13.2.0",
- "mocha": "^10.2.0",
- "mochawesome": "^7.1.3",
- "prettier": "^2.8.4",
- "release-it": "^15.8.0",
- "robohydra": "^0.6.9",
- "rollup": "^3.19.1",
- "rollup-plugin-analyzer": "^4.0.0",
- "rollup-plugin-copy": "^3.4.0",
- "rollup-plugin-delete": "^2.0.0",
- "rollup-plugin-terser": "^7.0.2",
- "rollup-plugin-ts": "^3.2.0",
- "semver": "^7.3.8",
- "ts-node": "^10.9.1",
- "typescript": "^4.9.5"
+ "lint-staged": "^15.2.0",
+ "prettier": "^3.1.1",
+ "release-it": "^17.0.1",
+ "rimraf": "^5.0.5",
+ "semver": "^7.5.4",
+ "tsx": "^4.6.2",
+ "typescript": "~5.3.3"
}
}