siren-parser
Advanced tools
Comparing version 8.6.0 to 8.6.1
@@ -6,15 +6,3 @@ "use strict"; | ||
}); | ||
exports.Entity = exports["default"] = Entity; | ||
Object.defineProperty(exports, "Action", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Action["default"]; | ||
} | ||
}); | ||
Object.defineProperty(exports, "Link", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Link["default"]; | ||
} | ||
}); | ||
exports["default"] = Entity; | ||
@@ -439,2 +427,4 @@ var _Action = _interopRequireDefault(require("./Action")); | ||
}; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "siren-parser", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "src/index.js", |
@@ -29,8 +29,2 @@ # node-siren-parser | ||
``` | ||
You can also import `Action`, `Entity`, and `Link` by name if you need to add custom functionality to parsed entities. | ||
```javascript | ||
import SirenParse, { Action, Entity, Link } from 'siren-parser'; | ||
Entity.prototype.printEntity = function() { console.log(this) }; | ||
var parsedEntity = SirenParse('{"class":["foo","bar"]}'); // parsedEntity will have printEntity() | ||
``` | ||
@@ -37,0 +31,0 @@ 3. An ES6 module installed on the window as a global: |
@@ -402,7 +402,1 @@ import Action from './Action'; | ||
}; | ||
export { | ||
Entity, | ||
Action, | ||
Link | ||
}; |
Sorry, the diff of this file is not supported yet
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
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
161553
1604
379