theprogrammablemind_4wp
Advanced tools
Comparing version 8.0.0-beta.42 to 8.0.0-beta.43
const { Semantics, Semantic } = require('./src/semantics') | ||
const { Generators, Generator } = require('./src/generators') | ||
const { Config } = require('./src/config') | ||
const { w, where } = require('./src/helpers') | ||
const Digraph = require('./src/digraph') | ||
@@ -17,5 +18,5 @@ const client = require('./client') | ||
ensureTestFile: client.ensureTestFile, | ||
where: client.where, | ||
where, | ||
stableId: client.stableId, | ||
w: client.w, | ||
w, | ||
Config, | ||
@@ -22,0 +23,0 @@ Semantics, |
@@ -67,4 +67,4 @@ { | ||
}, | ||
"version": "8.0.0-beta.42", | ||
"version": "8.0.0-beta.43", | ||
"license": "UNLICENSED" | ||
} |
const deepEqual = require('deep-equal') | ||
const stringify = require('json-stable-stringify') | ||
function where (goUp = 2) { | ||
const e = new Error() | ||
const regexForm1 = /\((.*):(\d+):(\d+)\)$/ | ||
const regexForm2 = /at (.*):(\d+):(\d+)$/ | ||
const lines = e.stack.split('\n') | ||
let line | ||
let match | ||
for (line of lines.slice(1)) { | ||
// if (!(line.includes('config.js:') || line.includes('client.js:') || line.includes('<anonymous>'))) { | ||
if (!(line.includes('config.js:') || line.includes('client.js:'))) { | ||
match = regexForm1.exec(line) || regexForm2.exec(line) | ||
if (!match) { | ||
continue | ||
} | ||
break | ||
} | ||
} | ||
// const line = e.stack.split("\n")[goUp]; | ||
// const match = regexForm1.exec(line) || regexForm2.exec(line) | ||
if (match) { | ||
return `${match[1]}:${match[2]}` | ||
} else { | ||
return 'running in browser' | ||
} | ||
} | ||
function w (func) { | ||
func.where = where(3) | ||
return func | ||
} | ||
// properties - the properties that correspond to types | ||
@@ -406,3 +437,5 @@ // types - the expected types of the properties | ||
sortJson, | ||
subPriority | ||
subPriority, | ||
where, | ||
w, | ||
} |
@@ -69,3 +69,2 @@ const { args: contextArgs, normalizeGenerator, normalizeSemantic } = require('./helpers') | ||
args.uuid = this.uuid | ||
debugger | ||
Object.assign(args, (args.getUUIDScoped || (() => { return {} }))(this.uuid)) | ||
@@ -72,0 +71,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
221934
6392