@membrane/membrane-sdk-js
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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 | ||
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
112641
2972
0
0
4