Sha256: 60d131ce565f429b786870c951ab40c139822b47c9375197177c3a995c93bb10

Contents?: true

Size: 842 Bytes

Versions: 55

Compression:

Stored size: 842 Bytes

Contents

{"version":3,"names":["_isNode","require","assertNode","node","isNode","_node$type","type","JSON","stringify","TypeError"],"sources":["../../src/asserts/assertNode.ts"],"sourcesContent":["import isNode from \"../validators/isNode.ts\";\nimport type * as t from \"../index.ts\";\n\nexport default function assertNode(node?: any): asserts node is t.Node {\n  if (!isNode(node)) {\n    const type = node?.type ?? JSON.stringify(node);\n    throw new TypeError(`Not a valid node of type \"${type}\"`);\n  }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGe,SAASC,UAAUA,CAACC,IAAU,EAA0B;EACrE,IAAI,CAAC,IAAAC,eAAM,EAACD,IAAI,CAAC,EAAE;IAAA,IAAAE,UAAA;IACjB,MAAMC,IAAI,IAAAD,UAAA,GAAGF,IAAI,oBAAJA,IAAI,CAAEG,IAAI,YAAAD,UAAA,GAAIE,IAAI,CAACC,SAAS,CAACL,IAAI,CAAC;IAC/C,MAAM,IAAIM,SAAS,CAAE,6BAA4BH,IAAK,GAAE,CAAC;EAC3D;AACF","ignoreList":[]}

Version data entries

55 entries across 15 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.48 node_modules/@babel/helper-member-expression-to-functions/node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.48 node_modules/@babel/helper-hoist-variables/node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.48 node_modules/@babel/helper-function-name/node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.48 node_modules/@babel/helper-environment-visitor/node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.47 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.46 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.45 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.44 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.43 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.42 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.41 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.40 node_modules/@babel/types/lib/asserts/assertNode.js.map
wice_grid-7.1.0 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.39 node_modules/@babel/types/lib/asserts/assertNode.js.map
immosquare-cleaner-0.1.38 node_modules/@babel/types/lib/asserts/assertNode.js.map