Comments (11)
Thanks for filing this issue. I'd like to understand your concern in a little more detail please. Note this is only needed/used on development. Is it about installation time or runtime? Thanks
from async-pool.
If it is only used in development you could just install it as an devDependency. It is currently installed as a normal dependency and gets installed by default if someone depends on tiny-async-pool
.
The problem I have is git specific, but I don't want to use git for npm module resolution. If I install tiny-async-pool
npm tries to install assertion
module from your GitHub account (using git). This is uneccesary.
I work with Docker and try to keep my Images as small as possible so I don't want to install git if it is not necessary.
from async-pool.
Is is only about installation
from async-pool.
Thanks for the clarification, I understand your problem now. On each deployed server, you run npm install
and installing the extra assertion
module from github impacts your install time.
Why can't we make assertion
a devDependency
? Because, it's an actual dependency (that can be avoided user's staging/production environment). Note the difference between user's dependencies (i.e., dependencies
) and async-pool
development dependencies (i.e., devDependencies
, e.g., mocha
).
Why can't we use node's internal assert
? Because what I have in assertion
is actually a higher level abstraction. If we change assertion
to use node's internal assert
under the hoods we would still need to install it.
What can we do? I assume your application has dozen other dependencies and the problem is that assertion
comes from github instead of npm. Would publishing assertion
in npm (as regular package) instead of relying on github solve your problem?
Thanks
from async-pool.
Publishing assertion
would be great and would solve my problem, but you would have to change the package name, because assertion
is already used by another package.
from async-pool.
Done, that module was named yaassertion
. New version released 1.0.2
.
Fixed by ad1489a
from async-pool.
Please, let me know if you find any problems
from async-pool.
Thank you.
from async-pool.
The package yaasertion
is not published on npm. [email protected]
cannot be installed....
from async-pool.
My bad, I published to a wrong npm registry. Re-did it now https://www.npmjs.com/package/yaassertion, please can you check?
from async-pool.
Now it works. Thank you.
from async-pool.
Related Issues (20)
- how to kill this XD HOT 3
- don't throw on empty array HOT 5
- Readability issue HOT 2
- Deno support HOT 1
- Typescript bindings HOT 4
- Chrome fails (Uncaught (in promise) TypeError: Failed to fetch) HOT 1
- another args to function HOT 1
- Failed to process the request HOT 3
- why using "array" as an input for iteratorFn() HOT 4
- Promise.allSettled() instead of Promise.all() option HOT 9
- question) How can i execute function with multiple arguments? HOT 1
- Benchmarks, overhead information HOT 1
- Unhandled rejections in some corner case HOT 2
- your code amazing!
- Allow for 1.x style await, without having to use for await HOT 9
- Feature: guarantee order of results HOT 3
- Does not "yield" reliably
- README.md usage issue HOT 2
- Allow iterable to be an async-iterable / async-generator HOT 2
- Add documentation about ordering no longer being preserved HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from async-pool.