Questions tagged [hoist]

Hoist was an Integration Platform as a Service that allows developers to build JS based integrations that consist of modules that consume synthetic events from APIs.

A module is a browserify compatible node module that can be called from Hoist.

Hoist.io died in May 2016, right after their Live launch.

Links

7 questions
6
votes
0 answers

Force Hoisting Of Package Dependencies In Yarn (v1) Workspace

I have a monorepo containing many packages. It is using yarn(v1) workspaces. One of the packages contains a set of development dependencies (packages/example-dev/@example/dev) that are consumed as a package by applications external to the monorepo.…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
5
votes
3 answers

If I want to "use" hoisting, is there a downside to using function expressions instead of regular function declarations?

I'm learning JavaScript, and I feel like I understand hoisting decently enough, so I'm not asking what it is or how to do it or anything like that. Is it good to hoist? If I can, should I be declaring my variables using var foo = function() {}; Or…
Senichi
  • 53
  • 3
3
votes
1 answer

Naming columns from a hoisted vector after unnest_wider

Playing around with some of the new functionality of tidyr 1.0 and I've come across a bit of a head scratcher. I've used boxplot.stats to get a vector of boxplot values I'd like to use to plot. I've done this successfully but am convinced there is…
tomasu
  • 1,388
  • 9
  • 11
1
vote
1 answer

Strange things happen when using Object.defineProperty with let or var

Can anyone explain why testVariable has two different ouputs when using let. And why there isn't any runtime error when varibles with the same name are defined in window object? Object.defineProperty(window, 'testVariable', { value: 22 …
James
  • 157
  • 1
  • 6
1
vote
1 answer

In Hoist does Hoist.data().save(obj) overwrite the object or merge it?

When I save an object into Hoist data when there is an existing _id does it merge the object or overwrite it? For example: Hoist.data("FOO").findById("a") returns { _id: "a", hash: "moose", prop2: "asda" } after Hoist.data("FOO").save( { _id: "a",…
Andrew Cox
  • 10,672
  • 3
  • 33
  • 38
0
votes
4 answers

LET vs VAR and Hoisting from Block Scope to Global Scope

In light of questions: Understanding let vs. var hoisting and Are variables declared with let or const not hoisted in ES6? I do not understand what happens when hoisting lifts a variable out of block scope, into global scope. In my code, I…
KWallace
  • 624
  • 7
  • 15
0
votes
1 answer

Order of hoisting in Javascript detailed

Question #1. I understand that "var" is function scoped, but does javascript order the hoist alphabetically? or first come first serve. function x () { var b; var c; var a; } After hoisting, does the result become this or the same…
Zahidul Islam
  • 99
  • 1
  • 9