tobiipro / lodash-firecloud Goto Github PK
View Code? Open in Web Editor NEWCollection of lodash mixins.
License: Apache License 2.0
Collection of lodash mixins.
License: Apache License 2.0
new name needs to be chosen - deferred
?
PS: a test should be added making sure we don't override builtin mixins
a partial/alternative effort to #3 (overloading) would be to have funAsync
counterparts to fun
mixins
e.g. await _.forEach(array, async function(item) {...})
only collection methods should need Promise-support https://lodash.com/docs/4.17.5#countBy
Doing imports from commonjs seems to import undefined:
let _ = require('lodash-firecloud');
Was throwing errors like:
[14:32:55] E/configParser - TypeError: _.defaultsDeep is not a function
at Object.<anonymous> (/Users/jban/git/tobii/drive/e2e/conf-local.js:36:20)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at ConfigParser.addFileConfig (/Users/jban/git/tobii/drive/node_modules/protractor/built/configParser.js:135:26)
at Object.initFn [as init] (/Users/jban/git/tobii/drive/node_modules/protractor/built/launcher.js:93:22)
Adding .default
to the import looks to fix it:
let _ = require('lodash-firecloud').default;
Intended or not?
The commit in question: https://github.com/tobiipro/drive/commit/37b7a112bfee9154be69621ff565e2e8cd4ef38c#diff-8ec2d066d74463a18a844d487e7537a6
@IanSavchenko do you see another=simpler way of achieving this https://github.com/tobiipro/gs-client/blob/3376e16b4f4704f7ad2f447e6420778fa3b85d31/.eslintrc.js#L95-L117 ?
with lodash built-ins ? it's a defaultsDeep down to 1-level only
otherwise I intend to move that in here. at least temporarily, that function will need to be used in all (currently 3) repos where we use typescript, because a lack of functionality in eslint's overrides
PS: as a bonus, a test could check that README.md has a markdown section for each mixin
from internal atex-web-ext
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.