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 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
@@ -147,6 +147,4 @@ Action.prototype.getFieldsByType = function (fieldType) {
147
147
  var vals = (0, _util.getMatchingValue)(this._fieldsByType, fieldType);
148
148
  return vals ? vals.slice() : [];
149
149
  };
150
-
151
- module.exports = exports.default;
152
150
  //# sourceMappingURL=Action.js.map
package/dist/Field.js CHANGED
@@ -73,6 +73,4 @@ Field.prototype.toJSON = function () {
73
73
  Field.prototype.hasClass = function (cls) {
74
74
  return this["class"] instanceof Array && (0, _util.contains)(this["class"], cls);
75
75
  };
76
-
77
- module.exports = exports.default;
78
76
  //# sourceMappingURL=Field.js.map
package/dist/Link.js CHANGED
@@ -57,6 +57,4 @@ Link.prototype.toJSON = function () {
57
57
  Link.prototype.hasClass = function (cls) {
58
58
  return this["class"] instanceof Array && (0, _util.contains)(this["class"], cls);
59
59
  };
60
-
61
- module.exports = exports.default;
62
60
  //# sourceMappingURL=Link.js.map
package/dist/assert.js CHANGED
@@ -10,6 +10,4 @@ function _default(expectation, msg) {
10
10
  throw new Error(msg);
11
11
  }
12
12
  }
13
-
14
- module.exports = exports.default;
15
13
  //# sourceMappingURL=assert.js.map
@@ -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": "8.6.0",
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 --plugins=add-module-exports",
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",