npm run dev
- Open browser
http://sandbox.datalynk:8000
npm run build
npm version patch
npm publish
- api.qrcode.toCanvas(...)
- api.barcode.toCanvas(...)
The api will fetch a copy of the error.json and mux it into Api.errors
. If you have biuld failures, ensure
that the URL specified in the package.json
file's fetch_errors
::curl can be resolved
{ "name": "auxilium-connect", "version": "1.0.24", "description": "", "main": "dist/v1/api.js", "types": "dist/v1/src/index.d.ts", "scripts": { "test": "echo "Error: no test specified" && exit 1", "start": "npm run clean && npm run fetch_errors && webpack -w & npm run serve", "serve": "lite-server --cors --p '0.0.0.0' -w --base-dir ./dist", "build": "npm run fetch_errors && webpack", "clean": "rm -rf ./dist/v1 && rm -f ./src/Errors.ts", "fetch_errors": "rm -f ./src/Errors.ts && echo "export const errors = " > ./src/errors.ts && curl 'http://api/errors.json' >> ./src/Errors.ts" }, "author": "", "license": "ISC", "devDependencies": { "@types/socket.io-client": "^1.4.32", "@types/webappsec-credential-management": "^0.5.1", "css-loader": "^3.4.2", "lite-server": "^2.5.4", "ts-loader": "^6.2.2", "typescript": "^3.8.3", "webpack": "^4.42.1", "webpack-cli": "^3.3.11" }, "dependencies": { "rxjs": "^6.5.4", "socket.io-client": "^2.3.0" } }