Sha256: 99f7a42812026b4c240e815c8d0bb3e3ac168b7d5dea535529fdd6c9a4f62611

Contents?: true

Size: 473 Bytes

Versions: 53

Compression:

Stored size: 473 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = assertNode;

var _isNode = _interopRequireDefault(require("../validators/isNode"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function assertNode(node) {
  if (!(0, _isNode.default)(node)) {
    const type = node && node.type || JSON.stringify(node);
    throw new TypeError(`Not a valid node of type "${type}"`);
  }
}

Version data entries

53 entries across 53 versions & 8 rubygems

Version Path
trusty-cms-4.3.2 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.3.1 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.3 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.2.3 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.2.2 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.2.1 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.2 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.1.9 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.1.8 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.1.7 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.1.6 node_modules/@babel/types/lib/asserts/assertNode.js
trusty-cms-4.1.5 node_modules/@babel/types/lib/asserts/assertNode.js
enju_library-0.3.8 spec/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.3 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.2 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.1 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.0.12 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.0.11 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.0.10 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js
condenser-0.0.9 lib/condenser/processors/node_modules/@babel/types/lib/asserts/assertNode.js