UNPKG

@ipld/dag-cbor

Version:

JS implementation of DAG-CBOR

164 lines (163 loc) 4.45 kB
{ "name": "@ipld/dag-cbor", "version": "7.0.2", "description": "JS implementation of DAG-CBOR", "main": "./cjs/index.js", "types": "./types/index.d.ts", "scripts": { "lint": "standard *.js test/*.js", "build": "npm run build:js && npm run build:types", "build:js": "ipjs build --tests --main && npm run build:copy", "build:copy": "cp -a tsconfig.json index.js dist/ && mkdir -p dist/test && cp test/*.js dist/test/", "build:types": "npm run build:copy && cd dist && tsc --build", "test:cjs": "npm run build:js && mocha dist/cjs/node-test/test-*.js && npm run test:cjs:browser", "test:esm": "npm run build:js && mocha dist/esm/node-test/test-*.js && npm run test:esm:browser", "test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js", "test:cjs:browser": "polendina --page --worker --serviceworker --cleanup dist/cjs/browser-test/test-*.js", "test:esm:browser": "polendina --page --worker --serviceworker --cleanup dist/esm/browser-test/test-*.js", "test:ts": "npm run build:types && npm run test --prefix test/ts-use", "test": "npm run lint && npm run test:node && npm run test:esm && npm run test:ts", "test:ci": "npm run lint && npm run test:node && npm run test:esm && npm run test:cjs && npm run test:ts", "coverage": "c8 --reporter=html mocha test/test-*.js && npm_config_yes=true npx st -d coverage -p 8080" }, "keywords": [ "ipfs", "ipld", "multiformats" ], "author": "Rod <rod@vagg.org> (http://r.va.gg/)", "license": "(Apache-2.0 AND MIT)", "exports": { "browser": "./esm/index.js", "require": "./cjs/index.js", "import": "./esm/index.js" }, "dependencies": { "cborg": "^1.6.0", "multiformats": "^9.5.4" }, "devDependencies": { "buffer": "^6.0.3", "c8": "^7.10.0", "chai": "^4.3.4", "ipjs": "^5.2.0", "ipld-garbage": "^4.0.10", "mocha": "^10.0.0", "polendina": "~3.1.0", "standard": "^17.0.0", "typescript": "~4.7.2" }, "standard": { "ignore": [ "dist" ] }, "directories": { "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/ipld/js-dag-cbor.git" }, "bugs": { "url": "https://github.com/ipld/js-dag-cbor/issues" }, "homepage": "https://github.com/ipld/js-dag-cbor#readme", "typesVersions": { "*": { "*": [ "types/*" ], "types/*": [ "types/*" ] } }, "release": { "branches": [ "master" ], "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "conventionalcommits", "releaseRules": [ { "breaking": true, "release": "major" }, { "revert": true, "release": "patch" }, { "type": "feat", "release": "minor" }, { "type": "fix", "release": "patch" }, { "type": "chore", "release": "patch" }, { "type": "docs", "release": "patch" }, { "type": "test", "release": "patch" }, { "scope": "no-release", "release": false } ] } ], [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits", "presetConfig": { "types": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "chore", "section": "Trivial Changes" }, { "type": "docs", "section": "Trivial Changes" }, { "type": "test", "section": "Tests" } ] } } ], "@semantic-release/changelog", [ "@semantic-release/npm", { "pkgRoot": "dist" } ], "@semantic-release/github", "@semantic-release/git" ] }, "browser": "./cjs/index.js" }