Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipld-schema-describer

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipld-schema-describer - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

.github/dependabot.yml

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"
]
}
}
}

16

README.md

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc