cddl 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -32,7 +32,7 @@ person = {
32
32
  You can use this package to parse the file into an abstract syntax tree (AST):
33
33
 
34
34
  ```js
35
- const CDDL = require('cddl')
35
+ const CDDL = require('cddl').default
36
36
 
37
37
  const ast = CDDL.parse('./spec.cddl')
38
38
  console.log(ast)
@@ -51,4 +51,4 @@ console.log(ast)
51
51
 
52
52
  ---
53
53
 
54
- If you are interested in this project, please feel free to contribute ideas or code patches. Have a look into our [contributing guidelines](https://github.com/christian-bromann/cddl/blob/master/LICENSE) to get started.
54
+ If you are interested in this project, please feel free to contribute ideas or code patches. Have a look into our [contributing guidelines](https://github.com/christian-bromann/cddl/blob/master/LICENSE) to get started.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "cddl",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Concise data definition language (RFC 8610) implementation and JSON validator in Node.js",
5
- "main": "index.js",
5
+ "main": "build/index.js",
6
6
  "bin": {
7
7
  "cddl": "./bin/cddl.js"
8
8
  },