Sha256: d4f273a9a459c10af8f1d6e96532cc700d3ba9740bc3784c3bd72b0308e7a437

Contents?: true

Size: 424 Bytes

Versions: 7

Compression:

Stored size: 424 Bytes

Contents

"use strict";

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

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

function assertNode(node) {
  if (!(0, _isNode.default)(node)) {
    var _node$type;

    const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node);
    throw new TypeError(`Not a valid node of type "${type}"`);
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
disco_app-0.16.1 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
disco_app-0.15.2 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
disco_app-0.18.4 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
disco_app-0.18.1 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
disco_app-0.14.0 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/types/lib/asserts/assertNode.js