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

@128technology/yinz

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@128technology/yinz - npm Package Compare versions

Comparing version 5.0.0-alpha.1 to 5.0.0-alpha.2

9

dist/instance/__tests__/LeafListInstance-test.js

@@ -31,2 +31,11 @@ "use strict";

});
it('should be able to delete', () => {
const instance = new __1.LeafListInstance(leafListModel, mockConfigXML, {});
const newItemXML = xmlUtil_1.default.toElement(`
<test:vector xmlns:test="http://foo.bar">bar</test:vector>
`);
instance.add(newItemXML);
instance.delete(util_1.allow, 'foo');
chai_1.expect(instance.toJSON(util_1.allow).vector).to.deep.equal(['bar']);
});
it('should serialize to JSON', () => {

@@ -33,0 +42,0 @@ const instance = new __1.LeafListInstance(leafListModel, mockConfigXML, {});

1

dist/instance/LeafListInstance.d.ts

@@ -20,2 +20,3 @@ import { Element } from 'libxmljs';

add(config: Element | LeafJSON): void;
delete(authorized: Authorized, value: string): void;
toJSON(authorized: Authorized, camelCase?: boolean, convert?: boolean): {

@@ -22,0 +23,0 @@ [name: string]: LeafListJSONValue;

@@ -38,2 +38,8 @@ "use strict";

}
delete(authorized, value) {
if (!authorized(this)) {
throw new Error('Unauthorized');
}
this.children = this.children.filter(leafListItem => leafListItem.getRawValue(authorized) !== value);
}
toJSON(authorized, camelCase = false, convert = true) {

@@ -40,0 +46,0 @@ if (!authorized(this)) {

2

package.json
{
"name": "@128technology/yinz",
"version": "5.0.0-alpha.1",
"version": "5.0.0-alpha.2",
"description": "A module for injesting a YIN datamodel and handling instance data.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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