ipld-schema-describer
Advanced tools
Comparing version 0.0.0 to 1.0.0
114
package.json
{ | ||
"name": "ipld-schema-describer", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"description": "IPLD Schema Describer", | ||
"main": "ipld-schema-describer.js", | ||
"type": "module", | ||
"scripts": { | ||
"lint": "standard", | ||
"build": "npm_config_yes=true npx ipjs@latest build --tests", | ||
"publish": "npm_config_yes=true npx ipjs@latest publish", | ||
"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 *.js dist/", | ||
"build:types": "npm run build:copy && cd dist && tsc --build", | ||
"test:cjs": "npm run build && mocha dist/cjs/node-test/test-*.js", | ||
"test:node": "hundreds mocha test/test-*.js", | ||
"test:node": "c8 --check-coverage --branches 100 --functions 100 --lines 100 mocha test/test-*.js", | ||
"test:browser": "polendina --cleanup dist/cjs/node-test/test-*.js", | ||
@@ -17,5 +21,3 @@ "test": "npm run lint && npm run test:node && npm run test:cjs && npm run test:browser", | ||
".": { | ||
"require": "./cjs/ipld-schema-describer.js", | ||
"import": "./esm/ipld-schema-describer.js", | ||
"browser": "./esm/ipld-schema-describer.js" | ||
"import": "./ipld-schema-describer.js" | ||
} | ||
@@ -38,12 +40,94 @@ }, | ||
"devDependencies": { | ||
"c8": "^7.3.4", | ||
"chai": "^4.2.0", | ||
"hundreds": "^0.0.9", | ||
"mocha": "^8.2.0", | ||
"c8": "^7.7.3", | ||
"chai": "^4.3.4", | ||
"ipjs": "^5.0.0", | ||
"mocha": "^9.0.1", | ||
"polendina": "^1.1.0", | ||
"standard": "^15.0.0" | ||
"standard": "^16.0.3", | ||
"typescript": "^4.3.4" | ||
}, | ||
"browser": { | ||
".": "./cjs/ipld-schema-describer.js" | ||
"dependencies": { | ||
"ipld-schema": "^1.1.1" | ||
}, | ||
"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", | ||
"@semantic-release/github", | ||
"@semantic-release/git" | ||
] | ||
} | ||
} | ||
} |
@@ -8,3 +8,3 @@ # ipld-schema-describer | ||
```js | ||
import SchemaDescriber from 'ipld-schema-describer' | ||
import { describe } from 'ipld-schema-describer' | ||
import schemaPrint from 'ipld-schema/print.js' | ||
@@ -18,3 +18,3 @@ | ||
const { schema, root } = SchemaDescriber.describe(obj) | ||
const { schema, root } = describe(obj) | ||
console.log(schemaPrint(schema)) | ||
@@ -27,3 +27,3 @@ console.log('\nRoot:', root) | ||
``` | ||
type $Struct_1 struct { | ||
type Struct_1 struct { | ||
f0 Int | ||
@@ -34,11 +34,11 @@ f1 String | ||
type $List_1 [Int] | ||
type List_1 [Int] | ||
type $Struct_2 struct { | ||
foo $Struct_1 | ||
bar $List_1 | ||
type Struct_2 struct { | ||
foo Struct_1 | ||
bar List_1 | ||
baz String | ||
} | ||
Root: $Struct_2 | ||
Root: Struct_2 | ||
``` | ||
@@ -45,0 +45,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
21280
12
466
0
Yes
1
7
1
+ Addedipld-schema@^1.1.1
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedget-stdin@8.0.0(transitive)
+ Addedipld-schema@1.1.6(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)