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

@membrane/membrane-sdk-js

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@membrane/membrane-sdk-js - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

27

lib/index.js

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

var Immutable = require("immutable");
var util = require("util");
// import * as util from "util";
var deepEqual = require("deep-equal");

@@ -366,6 +366,7 @@ exports.I = Immutable;

return;
var str = "> begin " +
args.map(function (a) { return (typeof a === "string" ? a : util.inspect(a)); }).join(" ");
console.log(indent(str, traceLevel));
traceLevel++;
// const str =
// "> begin " +
// args.map((a) => (typeof a === "string" ? a : util.inspect(a))).join(" ");
// console.log(indent(str, traceLevel));
// traceLevel++;
};

@@ -379,5 +380,6 @@ exports.traceBegin = traceBegin;

return;
var str = "> " +
args.map(function (a) { return (typeof a === "string" ? a : util.inspect(a)); }).join(" ");
console.log(indent(str, traceLevel));
// const str =
// "> " +
// args.map((a) => (typeof a === "string" ? a : util.inspect(a))).join(" ");
// console.log(indent(str, traceLevel));
};

@@ -391,6 +393,7 @@ exports.trace = trace;

return;
traceLevel--;
var str = "> end " +
args.map(function (a) { return (typeof a === "string" ? a : util.inspect(a)); }).join(" ");
console.log(indent(str, traceLevel));
// traceLevel--;
// const str =
// "> end " +
// args.map((a) => (typeof a === "string" ? a : util.inspect(a))).join(" ");
// console.log(indent(str, traceLevel));
};

@@ -397,0 +400,0 @@ exports.traceEnd = traceEnd;

@@ -41,2 +41,3 @@ "use strict";

var _1 = require(".");
// import assert from "assert";
// Objects that want to be treated as Refs can set this property to true

@@ -43,0 +44,0 @@ var kRefEquivalentKey = Symbol.for("RefEquivalent");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _1 = require(".");
var assert = require("assert");
// Traverses a schema using a ref
var RefTraversal = /** @class */ (function () {
function RefTraversal(ref, schema, rootType) {
// assert.ok(ref, "Invalid ref provided to RefTraversal constructor");
// assert.ok(schema, "Invalid schema provided to RefTraversal constructor");
// assert.ok(!rootType || typeof rootType === 'string', 'Invalid root type provided to RefTraversal constructor');
var _this = this;

@@ -29,5 +31,2 @@ // Traverse the whole ref

};
assert.ok(ref, "Invalid ref provided to RefTraversal constructor");
assert.ok(schema, "Invalid schema provided to RefTraversal constructor");
// assert.ok(!rootType || typeof rootType === 'string', 'Invalid root type provided to RefTraversal constructor');
ref = (0, _1.$$)(ref);

@@ -34,0 +33,0 @@ this._ref = ref;

@@ -23,3 +23,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var assert = require("assert");
// import * as assert from "assert";
var _1 = require(".");

@@ -59,3 +59,7 @@ var _primitiveSchema = {

}
assert.equal(typeof rootTypeName, "string", "rootType must be a string or typed");
// assert.equal(
// typeof rootTypeName,
// "string",
// "rootType must be a string or typed"
// );
// console.log('ROOT TYPE NAME', rootTypeName);

@@ -330,3 +334,3 @@ var _a = this._getTypeNameAndSchema(rootTypeName), typeName = _a.typeName, rootSchema = _a.schema;

}
assert.ok(!(0, _1.isWrapperTypeName)(innerType), "Type wrappers require an ofType");
// assert.ok(!isWrapperTypeName(innerType), `Type wrappers require an ofType`);
return { wrappers: wrappers, innerType: innerType };

@@ -344,3 +348,3 @@ };

}
assert.ok(type, "Type \"".concat(typeName, "\" not found in current context"));
// assert.ok(type, `Type "${typeName}" not found in current context`);
return {

@@ -430,3 +434,6 @@ // The schema where typed's type resides

}
assert.ok(this.context.length >= 2, "Unexpected enter param before entering a member first");
// assert.ok(
// this.context.length >= 2,
// "Unexpected enter param before entering a member first"
// );
var info = this._getTypedInfo(typed, this.context[this.context.length - 2]);

@@ -433,0 +440,0 @@ this.context.push(__assign({ param: typed }, info));

{
"name": "@membrane/membrane-sdk-js",
"version": "0.3.0",
"version": "0.3.1",
"description": "Helpers for working with Membrane",

@@ -5,0 +5,0 @@ "license": "MIT",

# Deprecated
Membrane gref parser and schema utils using immutable.js
Use `@membrane/sdk` instead
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