SungardAS / lambda-formation

A small framework for building nodejs AWS Lambda projects that are compatible with AWS CloudFormation Custom Resources
Apache License 2.0
22 stars 4 forks source link

lambda-formation.util clashed with stdlib.util #7

Closed estahn closed 7 years ago

estahn commented 7 years ago

var util = require('lambda-formation').util;

https://nodejs.org/api/util.html

kmcgrath commented 7 years ago

I realize this was probably an unfortunate pick of names, but how did the clash happen? Both would have be set to the same object in the same module. Did this happen to you?

quick work around would be:

var lfUtil = require("lambda-formation").util;
var nodeUtil = require("util");
// or
var util = require("util");
estahn commented 7 years ago

@kmcgrath I did change the assignment like you suggested.