Permalink
Browse files

Switch to object.assign since lodash.assign is deprecated.

  • Loading branch information...
1 parent aaa5cc9 commit 60824c1e69aea2a91c554f0a83e80d4cb3df343b @XhmikosR XhmikosR committed Sep 25, 2016
Showing with 3 additions and 3 deletions.
  1. +1 −1 package.json
  2. +1 −1 tasks/lib/uglify.js
  3. +1 −1 test/fixtures/expected/sourcemapin.js.map
View
@@ -17,8 +17,8 @@
},
"dependencies": {
"chalk": "^1.0.0",
- "lodash.assign": "^4.0.9",
"maxmin": "^1.1.0",
+ "object.assign": "^4.0.4",
"uglify-js": "~2.7.0",
"uri-path": "^1.0.0"
},
View
@@ -11,7 +11,7 @@
// External libs.
var path = require('path');
var UglifyJS = require('uglify-js');
-var assign = require('lodash.assign');
+var assign = require('object.assign');
var uriPath = require('uri-path');
var getOutputOptions;
@@ -1 +1 @@
-{"version":3,"sources":["../test/fixtures/src/simple2.coffee"],"names":["number","opposite","square","x","list","math","root","Math","sqrt","cube","race","winner","runners","arguments","length","slice","call","print","elvis","alert","cubes","accum$","i$","length$","num"],"mappings":";;+DACCA,QAAW,GACXC,UAAW,EAGKA,WAAhBD,QAAS,IAGTE,OAAS,SAAAC,SAAOA,GAAIA,GAGpBC,MAAQ,EAAG,EAAG,EAAG,EAAG,GAGpBC,MACGC,KAAQC,KAAIC,KACbN,OAAQA,OACRO,KAAQ,SAAAN,SAAOA,GAAID,OAAOC,KAG1BO,KAAO,SAAAC,OAAAC,eAASA,SAAA,GAAAC,UAAAC,UAAAC,MAAAC,KAAAH,UAAA,MACfI,MAAMN,OAAQC,UAGf,mBAAsBM,QAAA,MAAAA,OAAtBC,MAAM,cAGRC,MAAA,SAAAC,QAAS,IAAA,QAAAC,GAAA,EAAAC,QAAyBnB,KAAAU,OAAzBQ,GAAAC,UAAAD,GAAkBE,IAAOpB,KAAAkB,gBAAzBjB,KAAII,KAAMe","file":"sourcemapin.js"}
+{"version":3,"sources":["../test/fixtures/src/simple2.coffee"],"names":["number","opposite","square","x","list","math","root","Math","sqrt","cube","race","winner","runners","arguments","length","slice","call","print","elvis","alert","cubes","accum$","i$","length$","num"],"mappings":";;+DACCA,QAAW,GACXC,UAAW,EAGKA,WAAhBD,QAAS,IAGTE,OAAS,SAAAC,SAAOA,GAAIA,GAGpBC,MAAQ,EAAG,EAAG,EAAG,EAAG,GAGpBC,MACGC,KAAQC,KAAIC,KACbN,OAAQA,OACRO,KAAQ,SAAAN,SAAOA,GAAID,OAAOC,KAG1BO,KAAO,SAAAC,OAAAC,eAASA,SAAA,GAAAC,UAAAC,UAAAC,MAAAC,KAAAH,UAAA,MACfI,MAAMN,OAAQC,UAGf,mBAAsBM,QAAA,MAAAA,OAAtBC,MAAM,cAGRC,MAAA,SAAAC,QAAS,IAAA,QAAAC,GAAA,EAAAC,QAAyBnB,KAAAU,OAAzBQ,GAAAC,UAAAD,GAAkBE,IAAOpB,KAAAkB,gBAAzBjB,KAAII,KAAMe","file":"sourcemapin.js","sourcesContent":["# Assignment:\nnumber = 42\nopposite = true\n\n# Conditions:\nnumber = -42 if opposite\n\n# Functions:\nsquare = (x) -> x * x\n\n# Arrays:\nlist = [1, 2, 3, 4, 5]\n\n# Objects:\nmath =\n root: Math.sqrt\n square: square\n cube: (x) -> x * square x\n\n# Splats:\nrace = (winner, runners...) ->\n print winner, runners\n\n# Existence:\nalert \"I knew it!\" if elvis?\n\n# Array comprehensions:\ncubes = (math.cube num for num in list)"]}

0 comments on commit 60824c1

Please sign in to comment.