typeson-registry
Version:
The type registry for typeson
127 lines • 3.82 kB
JSON
{
"name": "typeson-registry",
"version": "12.0.0",
"description": "The type registry for typeson",
"author": "dfahlander",
"contributors": [
"Brett Zamir"
],
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.umd.min.cjs",
"module": "./index.js",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.min.js"
},
"require": "./dist/index.umd.min.cjs",
"default": "./dist/index.umd.min.cjs"
},
"./polyfills/createObjectURL.js": {
"import": {
"types": "./dist/polyfills/createObjectURL.d.ts",
"default": "./polyfills/createObjectURL.js"
},
"require": "./polyfills/createObjectURL.umd.cjs",
"default": "./polyfills/createObjectURL.umd.cjs"
},
"./*": "./*"
},
"c8": {
"reporter": [
"text",
"html"
],
"check-coverage": true,
"branches": 100,
"lines": 100,
"functions": 100,
"statements": 100,
"exclude": [
"build.js",
"dist",
"windows-devinstall.js",
".ncurc.js",
".eslintrc.js",
"browser-test",
"coverage",
"test/**",
"node_modules/**"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/dfahlander/typeson-registry.git"
},
"browserslist": [
"cover 100%"
],
"keywords": [
"typeson",
"JSON",
"remoting",
"universal"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/dfahlander/typeson-registry/issues"
},
"homepage": "https://github.com/dfahlander/typeson-registry#readme",
"engines": {
"node": "^20.11.0 || >= 22.0.0"
},
"devDependencies": {
"@babel/core": "^7.28.3",
"@babel/eslint-parser": "^7.28.0",
"@babel/preset-env": "^7.28.3",
"@brettz9/node-static": "^0.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@types/chai": "^5.2.2",
"@types/jsdom": "^21.1.7",
"@types/mocha": "^10.0.10",
"@types/semver": "^7.7.0",
"@types/whatwg-url": "^13.0.0",
"c8": "^10.1.3",
"canvas": "^3.2.0",
"chai": "^6.0.1",
"eslint": "^9.34.0",
"eslint-config-ash-nazg": "^39.0.1",
"eslint-plugin-n": "^17.21.3",
"jsdom": "^26.1.0",
"mocha": "^11.7.1",
"open-cli": "^8.0.0",
"rollup": "^4.50.0",
"semver": "^7.7.2",
"socket.io": "^4.8.1",
"socket.io-client": "^4.8.1",
"typescript": "^5.9.2"
},
"dependencies": {
"base64-arraybuffer-es6": "^3.1.0",
"typeson": "^9.0.4",
"whatwg-url": "^14.2.0"
},
"tonicExample": "var Typeson = require('typeson');\nvar TSON = new Typeson().register(require('typeson-registry/dist/presets/builtin'));\n\nTSON.stringify({foo: new Date()}, null, 2);",
"scripts": {
"tsc": "tsc && node tools/append-to-declaration-files.js",
"eslint": "eslint .",
"lint": "npm run eslint --",
"start": "static -p 8085",
"rollup": "node ./build.js",
"build": "npm run rollup && tsc -p tsconfig-build.json",
"mocha": "mocha --require chai/register-expect.js --require chai/register-assert.js test/*.js",
"open-coverage": "open-cli http://localhost:8085/coverage/ && npm start",
"coverage": "rm -Rf node_modules/.cache && c8 npm run mocha",
"test-nocov": "npm run build && npm run eslint && npm run coverage",
"test": "npm run build && npm run eslint && npm run coverage",
"test:worker-open": "open-cli http://localhost:8085/browser-test/worker.html && npm start",
"test:browser-open": "open-cli http://localhost:8085/browser-test/ && npm start",
"test:browser": "npm run build && npm run eslint && npm run test:browser-open",
"windows": "node windows-devinstall"
}
}