Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 06 20:19
    dependabot[bot] labeled #8
  • Nov 06 20:19
    sailsbot commented #8
  • Nov 06 20:19
    dependabot[bot] opened #8
  • Nov 06 20:19

    dependabot[bot] on npm_and_yarn

    Bump eslint from 3.19.0 to 6.6.… (compare)

  • Nov 06 20:19
    dependabot[bot] labeled #4
  • Nov 06 20:19
    dependabot[bot] opened #4
  • Nov 06 20:19

    dependabot[bot] on npm_and_yarn

    Bump eslint from 3.19.0 to 6.6.… (compare)

  • Oct 08 21:55
    marcker synchronize #1
  • Oct 08 21:26
    marcker opened #1
  • Jul 19 15:15
    shackbarth closed #49
  • May 03 19:59

    mikermcneil on master

    remove unused require Fix node 10 tests to correctly … Eliminate deprecation warning t… and 2 more (compare)

  • May 02 15:25
    mikermcneil commented on c179232
  • May 02 01:16

    mikermcneil on master

    -0 is broken in Node 10, so ski… (compare)

  • May 01 19:11

    rachaelshaw on master

    Remove node 6 from CI config fi… (compare)

  • Apr 30 23:19

    rachaelshaw on master

    Update CI configuration (compare)

  • Apr 30 23:02

    rachaelshaw on master

    Change heading in README to use… (compare)

  • Apr 26 22:44

    rachaelshaw on v8.0.0

    (compare)

  • Apr 26 22:44

    rachaelshaw on master

    8.0.0 (compare)

  • Apr 26 22:42

    rachaelshaw on validate-content-type

    (compare)

  • Apr 26 22:42

    rachaelshaw on master

    Check for a `content-type` head… Merge branch 'master' into vali… Fix typo and tweak error messag… and 4 more (compare)

César
@ICesarI
@Geocloud, just follow the instructions that every machinepack has and that's it.
JSMap
@JSMap
@ICesarI thank you
Offline Connection
@joewhat
can some one outline for me how to use this machine for creating sails new with gulp? http://node-machine.org/machinepack-sailsgulpify
John Tomaselli
@johntom

@Geocloud I wrote the mp for authorize.net and yelp. In controller

var AuthorizeNet = require('machinepack-authorizenet');

 AuthorizeNet.createTransactionRequest({
            transactionKey: 'secret',
            apiLoginId: 'secret',
            amount: paypalOptions.total,
            currency: 'usa',
            cardnumber: paypalOptions.eccnum,
            cardexpmonth: paypalOptions.cbexpdatem,
            cardexpyear: paypalOptions.cbexpdatey,
            cvv2: paypalOptions.ecvc,
            billingFirstName: 'john',
            billingLastName: 'Thomas',
            billingAddress1: "500 5th Ave",
            billingCity: "New York",
            billingState: 'NY',
            billingPostalCode: '10011',
            billingCountry: 'USA'
          }).exec({
            // An unexpected error occurred.
            error: function (err) {
              return res.json(err);
            },
            // OK.
            success: function (newCharge) {
              console.log('Stripe result ', newCharge.id, newCharge.source.id)
              var upstr = ' execute procedure "SP Member EnrollPart3"(%s,%s,%s,%s,%s ,%s,%s,%s,%s,%s ,%s,%s,%s,%s,%s,  %s)';
              var upstr2 = util.format(upstr,
                bq(paypalOptions.memid),
                bq(paypalOptions.payoption),
                bq(paypalOptions.promocode),
                bq(paypalOptions.password),
                bq(paypalOptions.subtotal),
                bq(paypalOptions.processingfee),
                bq(paypalOptions.total),
                bq(paypalOptions.cbcardtype),
                bq(paypalOptions.eccnum),
                bq(paypalOptions.ecvc),
                bq(paypalOptions.cbexpdatem),
                bq(paypalOptions.cbexpdatey),
                bq(paypalOptions.autopayment),
                bq(newCharge.id),
                bq(newCharge.source.id),
                bq(newCharge.status));

HTH

...
Mike McNeil
@mikermcneil
New major versions of machinepack-process, machinepack-fs, and machinepack-mysql are out. (Major caveat is that you can't use them in Treeline yet, but we're working on that).
VoidVolker
@VoidVolker
hey, I released new tool to watch files/directories changes and execute commands: https://www.npmjs.com/package/nano-watcher - it is small and simple, can work on mounted FS and VBox share, can run numerous commands with any arguments in any directory
VoidVolker
@VoidVolker
treeline new myappp isn't creates file treeline.json and application cannot be initialized
@mikermcneil
VoidVolker
@VoidVolker
solved via manual creating...
Custom Website
@customwebsite
Can I get an invite to treeline? I can't wait to give it a go!
@mikermcneil ^^
Miguel Angel Salinas Gancedo
@masalinas
Anybody had used the module node-red-contrib-ui to paint charts??
Robert Kopaczewski
@23doors
machinepack-http is broken in recent release. It shows in docs (http://node-machine.org/machinepack-http/send-http-request) that there are formData and params but they are not specified in input for machinepack anymore. https://runkit.com/582c52bc7f8b590013d4197b/5837191997657a0014e10e38
Mike McNeil
@mikermcneil
What version?
Robert Kopaczewski
@23doors
hm? well, latest.. so. 3.0.
Mike McNeil
@mikermcneil
Hmm weird. Checking it out
Mike McNeil
@mikermcneil
Ah I'm sorry the importer needs an update
Robert Kopaczewski
@23doors
not sure what you mean. examples from http://node-machine.org/machinepack-http/send-http-request do not work so either: docs are wrong or something in package is wrong. breaking backwards compatibility without even updating docs is kinda bad.
Gabriel Alcivar
@galcivar
Agreed with Robert, tried using the machinepack and keeps failing. Will we have some documentation update soon?
Mike McNeil
@mikermcneil
Hey guys, sorry about the inconvenience. The Node-Machine.org (registry) importer is down right now, but we'll have it up again ASAP. machinepack-http@v3 is a breaking change that simplifies the interface and improves usability. I'm at the Node Interactive conference in Austin right now, but as soon as I sit down I'll take a look. In the mean time, if you npm install machinepack-http@^2.0.0, you'll get the version you're expecting.
Mike McNeil
@mikermcneil
Alright, on it
Mike McNeil
@mikermcneil
OK so just about got it sorted out-- the issue has to do with how the registry does its sandboxing. When it reads machine definitions, it prevents access to require to avoid malicious code injection, but to still allow machine definitions to be normal JavaScript. Unfortunately, this also prevents the use of constants, which are handy. Since the machines in question were using constants, they were skipped during import.

To fix this, we added special exception, allowing machines to require from the top-level constants folder in the machinepack.

Note that this restriction is only OUTSIDE of the fn -- you can make any require call you like inside of the fn.

At some point in the future, we might want to formalize this convention further. Realistically, as convenient as it is, I was originally thinking of moving us towards a system where pack metadata is pushed manually (so developers can see errors when things aren't working right). It's just that, to do that, we need a concept of authentication etc. And plus, we could display any warnings/errors on the registry page for the pack. This way, we also stay closely tied to NPM's ecosystem, which is how I'd like to keep things.
Mike McNeil
@mikermcneil

--

redeploying now, sorry about the inconvenience

Mike McNeil
@mikermcneil
Ended up having to roll it back for now to keep it online - will take another look at this in a few hours once Heroku has had a bit of time to cool down from all the extraneous builds -_-
Mike McNeil
@mikermcneil
@/all Alright, the registry is back up and running again, and the latest machines are being synced.
@23doors @galcivar You can see the new usage of sendHttpRequest() in mp-http@v3 here. Also, there are a few new shortcut machines you might want to take advantage of: http://node-machine.org/machinepack-http (same idea as $.get(), $.post(), etc. from jQuery)
Angel Daniel Munoz Gonzalez
@AngelMunoz
Hey, Hello Is it a bad practice if for example I would like to include a mongo/sql machine as a dependency on other machine?
Mike McNeil
@mikermcneil
Not at all- just use the machinepack as a dep in package.json and require it in the fn
Angel Daniel Munoz Gonzalez
@AngelMunoz
thanks
Smruti Mandal
@smrutimandal
Folks, i see that the in the postgresql machine pack, 0.4 had machines such as countRecords and listRecords. But in the latest version(1.0.0.10) those machines don't exist anymore and have been replaced with Connectable, Queryable and Transactional machines
I would like to add a few machines from the "Modeled" layer for pgsql. Can someone kindly help with some documentation around creating machines at this layer.
Divyansh Batham
@DivyanshBatham
Hello Everyone :smile:
I need some help with machinepack-hackerrank, can someone help me with it?
Kacper Dela
@kdela
Hi guys! Do you remember node-machines editor with GUI?
Kacper Dela
@kdela
Ah treeline, I found it ;)
Mohamed Chedli Ben Yaghlane
@medchedli
Hi ! Is treeline beta project is still in development ?
if no can someone please provide us with more details why the project is no longer active
Thank you
Jonathan Leek
@mrjonleek
is it possible to intialize a machine with an argument let myMachine = require(‘machine-myMachine’)(‘SOME_API_TOKEN’)?
Mike McNeil
@mikermcneil
As of the latest major release earlier this year, yes— use the .configure() method
@mrjonleek it is also available on pack instances, where it prefills any input with the given name for every machine in the pack. (Just be sure to use an input name that’s disambiguous!)
Jonathan Leek
@mrjonleek
Anyone else having issues running install? I'm getting a not found repository: npm ERR! Error while executing: npm ERR! /usr/local/bin/git ls-remote -h -t git://github.com/treelinehq/machinepack-sails.git npm ERR! npm ERR! fatal: remote error: npm ERR! Repository not found. npm ERR! npm ERR! exited with error code: 128
Custom Website
@customwebsite
Looks like treelinehq has remove their github repos? https://github.com/treelinehq/
maybe they're migrating from treelinehq to sailshq?
Ephraim Moss
@ephraimm
Not sure if this is the right spot for this but I'm having trouble with machnepack-redis on heroku:
Redis connection manager failed unexpectedly.  Details: Error: Redis client disconnected.
at RedisClient.onIntraConnectionEnd (/app/node_modules/machinepack-redis/machines/get-connection.js:225:25)
at RedisClient.emit (events.js:193:13)
at RedisClient.EventEmitter.emit (domain.js:481:20)
at RedisClient.connection_gone (/app/node_modules/machinepack-redis/node_modules/redis/index.js:578:14)
at Socket.<anonymous> (/app/node_modules/machinepack-redis/node_modules/redis/index.js:286:14)
at Object.onceWrapper (events.js:281:20)
at Socket.emit (events.js:198:15)
at Socket.EventEmitter.emit (domain.js:481:20)
at endReadableNT (_stream_readable.js:1142:12)
at processTicksAndRejections (internal/process/task_queues.js:81:17)