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

siren-parser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siren-parser - npm Package Compare versions

Comparing version 8.5.3 to 8.6.0

16

dist/index.js

@@ -6,3 +6,15 @@ "use strict";

});
exports["default"] = Entity;
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"];
}
});

@@ -427,4 +439,2 @@ var _Action = _interopRequireDefault(require("./Action"));

};
module.exports = exports.default;
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "siren-parser",
"version": "8.5.3",
"version": "8.6.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "src/index.js",

@@ -29,2 +29,8 @@ # 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()
```

@@ -31,0 +37,0 @@ 3. An ES6 module installed on the window as a global:

@@ -402,1 +402,7 @@ import Action from './Action';

};
export {
Entity,
Action,
Link
};

Sorry, the diff of this file is not supported yet

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