This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const workflow = Machine({ | |
id: "workflow", | |
initial: "running", | |
states: { | |
running: { | |
id: "file", | |
type: "parallel", | |
states: { | |
upload: { | |
initial: "idle", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function doSomething() { | |
await timeout(2000); | |
} | |
function timeout(ms) { | |
return new Promise((res,rej) => setTimeout(rej,ms)); | |
} | |
Promise.race([ | |
doSomething(), | |
timeout(1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Raw source --- | |
(thisArg, ...args) => { | |
return apply(fn, thisArg, args); | |
}; | |
--- Optimized code --- | |
optimization_id = 0 | |
source_position = 98 | |
kind = OPTIMIZED_FUNCTION | |
name = cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Raw source --- | |
(thisArg, ...args) => ReflectApply(func, thisArg, args); | |
--- Optimized code --- | |
optimization_id = 0 | |
source_position = 1082 | |
kind = OPTIMIZED_FUNCTION | |
stack_slots = 7 | |
compiler = turbofan | |
address = 0x7ffeefbfea68 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unresolved resolutions seem to be coming from <b>/Users/bfarias/Documents/oss/node-policy/examples/copy-contents/node_modules/qs/package.json<span style="font-weight:normal;text-decoration:none;font-style:normal"> not having all dependencies installed | |
the following <span style="color:#A50">devDependencies<span style="color:#FFF"> are missing | |
unresolved resolutions seem to be coming from <b>/Users/bfarias/Documents/oss/node-policy/examples/copy-contents/node_modules/safer-buffer/package.json<span style="font-weight:normal;text-decoration:none;font-style:normal"> not having all dependencies installed | |
the following <span style="color:#A50">devDependencies<span style="color:#FFF"> are missing | |
unresolved resolutions seem to be coming from <b>/Users/bfarias/Documents/oss/node-policy/node_modules/@bradleymeck/tofu/node_modules/minimist/package.json<span style="font-weight:normal;text-decoration:none;font-style:normal"> not having all dependencies installed | |
the following <span style="color:#A50">devDependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
// get file slim.code.js.lz4 from https://github.com/nodejs/Gzemnid/blob/master/doc/Using_pre-built_datasets.md | |
// lz4cat < slim.code.js.lz4 | node check.js | |
'use strict'; | |
;(async () => { | |
const rl=require("readline").createInterface({ | |
input: process.stdin, | |
crlfDelay: Infinity | |
}); | |
let current_file = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require | |
at require (internal/modules/cjs/helpers.js:20:18) | |
at Object.<anonymous> (/Users/bfarias/Documents/node/test/parallel/test-internal-module-taint.js:7:3) | |
at Module._compile (internal/modules/cjs/loader.js:722:30) | |
at Object..js (internal/modules/cjs/loader.js:733:10) | |
at Module.load (internal/modules/cjs/loader.js:621:32) | |
at tryModuleLoad (internal/modules/cjs/loader.js:564:12) | |
at Function._load (internal/modules/cjs/loader.js:556:3) | |
at Function.runMain (internal/modules/cjs/loader.js:775:12) | |
_load |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
el.js-controls-1.0.0.tgz/src/controls/index.coffee:1:export * from './control' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:2:export * from './text' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:3:export * from './textarea' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:4:export * from './checkbox' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:5:export * from './select' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:6:export * from './quantity-select' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:7:export * from './country-select' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:8:export * from './state-select' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:9:export * from './user-email' | |
el.js-controls-1.0.0.tgz/src/controls/index.coffee:10:export * from './user-name' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
require('http').createServer( | |
(req, res) => { | |
require('fs').createReadStream('/dev/random').pipe(res); | |
} | |
).listen(8080); |