siren-parser 8.6.0 → 9.0.0
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.
- package/README.md +1 -1
- package/dist/Action.js +0 -2
- package/dist/Field.js +0 -2
- package/dist/Link.js +0 -2
- package/dist/assert.js +0 -2
- package/dist/chaiPlugin.js +0 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ There are three ways to use `siren-parser`'s functionality.
|
|
|
17
17
|
|
|
18
18
|
1. In Node.js, `require` it as you would any other NPM package:
|
|
19
19
|
```javascript
|
|
20
|
-
const SirenParse = require('siren-parser');
|
|
20
|
+
const SirenParse = require('siren-parser').default;
|
|
21
21
|
var parsedEntity = SirenParse('{"class":["foo","bar"]}');
|
|
22
22
|
```
|
|
23
23
|
|
package/dist/Action.js
CHANGED
package/dist/Field.js
CHANGED
package/dist/Link.js
CHANGED
package/dist/assert.js
CHANGED
package/dist/chaiPlugin.js
CHANGED
|
@@ -134,6 +134,4 @@ function _default(chai, utils) {
|
|
|
134
134
|
objectProperty('sirenProperty', 'properties', _index["default"]);
|
|
135
135
|
objectProperty('sirenProperties', 'properties', _index["default"]);
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
module.exports = exports.default;
|
|
139
137
|
//# sourceMappingURL=chaiPlugin.js.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siren-parser",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "babel src --out-dir ./dist --source-maps
|
|
7
|
+
"build": "babel src --out-dir ./dist --source-maps",
|
|
8
8
|
"lint": "eslint src test --ext .js",
|
|
9
9
|
"test": "npm run lint && npm run test:unit",
|
|
10
10
|
"test:unit": "nyc mocha"
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@babel/node": "^7.12.16",
|
|
31
31
|
"@babel/preset-env": "^7.12.16",
|
|
32
32
|
"@babel/register": "^7.12.13",
|
|
33
|
-
"babel-plugin-add-module-exports": "^1.0.4",
|
|
34
33
|
"babel-plugin-istanbul": "^6.0.0",
|
|
35
34
|
"chai": "^4.3.0",
|
|
36
35
|
"eslint": "^7.20.0",
|