Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 27 2018 01:23
    @MylesBorins banned @fjeddy
  • Feb 24 2016 08:26
    @rvagg banned @jonathanenbe
DJ Tinkers
@TinkersDj_twitter
LOL
Jordan Harband
@ljharb
the goal of SES is to be 100% safe
and the nature of JS is that no changing "algorithm" changes the security landscape
DJ Tinkers
@TinkersDj_twitter

Oaklanders might believe those brain washing statements.

And sure, on paper there goal is to be 100% safe but it'll turn into a tangle mess missing the wide open cracks.

For shit sakes, javascript use to accidently create globals for years.

Jordan Harband
@ljharb
"oaklanders"?
javascript never accidentally did anything. users accidentally did, and still do.
that's what a linter is for.
SerhiiBulakh
@SerhiiBulakh
Hello guys! Could you help me please I make test with jest and I have problem. I have three class which use one class for get data. I mock classes but only one class successful
DJ Tinkers
@TinkersDj_twitter
@SerhiiBulakh
open an issue on there git
Arnaud De Backer
@deviarchscs
Hello everybody, I would like to present an open source project on which I'm working on:
https://github.com/postput/postput
It is a simple webserver (written in nodejs) that can serve any kind of files, wherever they are. It abstracts the complexity of storage providers to help you upload, download and operate on your files.
If you're interrested, don't hesitate to give me feedbacks
DJ Tinkers
@TinkersDj_twitter

@deviarchscs

So automatically sent to a storage provider without filling in the links?

Ayush Mahajan
@ay2306
How can I do this
  1. I have installed a global package aegir
  2. I cloned forked repo of aegir and made changes to the code
  3. Use this changed package globally instead of one downloaded using npm
Arnaud De Backer
@deviarchscs
@TinkersDj_twitter You still have to configure the storage obviously (ex: give the key + keyId + bucket name if you're using an S3 bucket ) but after the configuration done, you can simply upload your files using normal formdata upload and apply resizing, formating, blur etc... on your images.
romie
@theromie
How to properly set Async await on pool query?
routes.route("/get").get(async (rq, rs) => {
  const { pageNo, itemsPerPage } = rq.query;
  let totalRegcords = [];
  let pagination = [];
  //Get Total Claim records
  totalRegcords = await db.query(QUERY.ADMINCLAIM.count, (err, res) => {
    if (err) return err;
    return res.rows;
  });

  //Get Claim Paginate records
  pagination = await db.queryPaginated(
    QUERY.ADMINCLAIM.get,
    [],
    pageNo,
    itemsPerPage,
    (err, res) => {
      console.log(res.rows);
      if (err) return err;
      return res.rows;
    }
  );
  console.log(pagination);
  rs.status(STATUS.OK).json({
    totalRegcords: totalRegcords,
    pagination: pagination
  });
});
console.log(pagination); shows first then this console.log(res.rows);
Peter Delvaux
@pjetr
you should rewrite your query to return a Promise, or something like this:
let pagination = await new Promise((resolve, reject) => {
  db.queryPaginated(
    QUERY.ADMINCLAIM.get,
    [],
    pageNo,
    itemsPerPage,
    (err, res) => {
      if (err) reject(err);

      resolve(res.rows);
    }
  );
});
@theromie
Dhaval Parmar
@TechGeekD
@ay2306 have you tried this ?
npm install github:[GITHUB_USERNAME]/[GITHUB_REPO]#[BRANCH_NAME]
romie
@theromie
What will be query for pagination with total count in postgres ?
Peter Delvaux
@pjetr
about 30
Sandeep Gupta
@iamsandeepgupta
Hi, I have registered as Paytm merchant and have integrated the Paytm wallet in my node app and its working fine. I have tested initiate transaction API which is working fine as per it. Redirection and everything are working fine. Now I want to implement wallet transfer API in my node application so that I can make a transfer from a merchant to other users by their mobile number but in docs of Paytm, it was mentioned to have Subwalletguid in payload while calling API. I tried but I am not able to get the Subwalletguid anywhere on my dashboard. Link of the docs:- https://developer.paytm.com/docs/wallet-transfer-api/
I am stuck from last week on this.
Olonilua Olalekan
@lecxis

How savvy are you on the latest dev tools and technologies? All developers who complete the survey and register enter a raffle to win $16,000 worth of prizes. Get your community involved too - promote the survey and you may win in addition $1,000 in cash!

https://developereconomics.net/?member_id=pdSrFATx&lang=en

Strictly for developers or those learning any programming language

Make your voice heard and earn cool cash and swags as a developer.

Uzlopak
@Uzlopak
Hi, is there a recommended tsconfig for node 12?
Wilx1
@Wilx1
Hello, Good day all. Please I'm following up on Colt's yelpcamp tutorial, but I ran into this error: TypeError: Cannot read property 'push' of undefined. Please, any attempt to help me rectify it would be greatly appreciated. Thanks in anticipation.
Jason Luboff
@JLuboff
@Wilx1 You're trying to use push() on undefined which...you can't do. You can only use .push() on an array
Pedro Moura
@pouta
Hey! I need help with debugging a local dependency
This means I can't debug easily because all code in /dist is minified
when I add it as local dependency in package.json the main project uses the /dist folder
sakthivel
@Sakthi-Gnanam
Hey! I need help regarding thread local like implementation in node js with the help of async hooks. Am a newbie here, I looked around and found async hooks impacts performance in a negative, also they are experimental API. Any idea, how did the developers maintain the context before async hooks?
prudhvivijaykumar
@prudhvivijaykumar
Hello All, While login I have generated JWT Token without expiration time. So while re-login with the same credentials then I want to destroy the previous token. Any solution.?
Ashwin Kain
@Ashwin-Kapes
I'm trying to create a context inside axios response but it's not working. I'm using dialogflow-fulfillment library. Here's my code:
dialogflow/dialogflow-fulfillment-nodejs#280
function AuthToken(agent) {     
      axios.post(URL HERE, PAYLOAD HERE)
            .then(function(response) {
               agent.context.set({
                    "name": 'token',
                    "lifespan": 5,
                    "parameters": { "access_token": response.data.access_token }
                });
                return console.log(response);
            })
            .catch(function(error) {                
                return console.log(error);
            });

 agent.add(`Hello`);
    }
Ben Halverson
@benhalverson
Tiago Satur
@tiagosatur
Yo guys, does someone knows if webscraping in nodejs has a big server cost? i mean, i will use firebase function to do it and i can't have a big cost.
Also, is possible to get the site cookies using webscrap?
Yossitrx
@Yossitrx
Hey,
I have nodejs application that serve the hbs client files. I wish to create a new client app based on webpack and connect them both can someone help?
watscho
@watscho
Xarri Jorge
@xarrijorge
Why ES Harmony is better than CommonJS or AMD?
Whats up folks? Anyone have an idea on the question above?
Danilo Silva
@danilosilvadev
Does someone knows if is possible to do webscrap of cookies?
Jordan Harband
@ljharb
"ES Harmony" isn't really a thing anymore
if you mean ES Modules, well, for one, AMD is abjectly terrible
with ESM vs CJS, it's not really that one's better or worse, but CJS is sync and thus can't work natively in the browser
Xarri Jorge
@xarrijorge
Thanks brother @ljharb
Pat
@patsmithw_twitter
Hey, I have a node.js problem. Sometimes I get this "ER_NO_DB_ERROR: No database selected" and sometimes I don't. Anyone have an idea? Thanks
Z3TA
@Z3TA
As I see it , Node.js style require has been the greatest invention in CS history, it encourages making libraries rather then spaghetti. It's so sad that it will soon be forgotten as more and more people start using ES import. I'll probably not see something as simple and beautiful as Node.js was before ES6 in the rest of my life time.
Jordan Harband
@ljharb
it won't be forgotten at all, ESM and CJS both encourage modules/libraries
drethegreat1
@drethegreat1
hey, i know this is not the right page but maybe someone can help
need help figuring out how to use webhooks for MODE Analytics alerts
Govind S
@dopecodez

it won't be forgotten at all, ESM and CJS both encourage modules/libraries

right on, esm is basically built for letting us use require going forward