Comments (8)
Hey @fraxken
Yes, I think you are right.
I tried npx pacote tarball github://github.com/mbalabash/estimo.git#v2.3.0 ./estimo-v2.3.0.tgz
) and looks like it works well. I can try to prepare PR for it.
Am I right that we need to:
- change
mergeDependencies.js
to add dependency links withgithub:
tocustomResolvers
- change
depWalker.js
to make it processgithub:
links in the same way how it works now forgit+
links
?
from scanner.
@mbalabash Yes that's right.
However i think mergeDependencies already add github:
because of the RegEx (to confirm). However yes the walker was only designed for git+
what is not great in the light of what is possible.
I also wonder if i missed a case with git:
(because i'v seen an example in the npm doc).
https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies
from scanner.
Note: UT are not very good around walker (and i have few cross-os issues to fix).
Also, think to setup an env NODE_SECURE_TOKEN
with an npm access token (Otherwise you will be limited on the use of the npm registry).
https://docs.npmjs.com/creating-and-viewing-access-tokens
from scanner.
Yes, mergeDependencies.js
already will add github:
and git:
links. I misread RegEx 😁
OK, then I will start working on PR. Probably will ask some more questions)
from scanner.
Opened PR
from scanner.
Thanks for the contribution @mbalabash.
from scanner.
@all-contributors please add @mbalabash for code
from scanner.
I've put up a pull request to add @mbalabash! 🎉
from scanner.
Related Issues (20)
- Transfer back required i18n translation HOT 2
- Add banner HOT 1
- Improve TypeScript interfaces and types
- Compare and validate packument and tarball manifest
- Adding a new diff API
- Fix UT (broken snapshot) HOT 2
- Add documentation for cwd and from API HOT 9
- Add support for npm workspaces HOT 3
- Add option to donate for this project HOT 2
- New warning idea - linting lockfile dependencies urls HOT 3
- verdaccio's pkg info does not contain the 'maintainers' field HOT 3
- Unclear behaviour with vulnerabilities when using cwd HOT 6
- Verify the behavior for a package alias
- Allow to set registry as options of the Scanner
- Detect if root project (or git projects) are also available on NPM HOT 1
- Flag git package with cwd (Arborist) analysis
- Synchronize @nodesecure/scanner type definitions with definitions from the latest @nodesecure/js-x-ray version
- Difference between two payloads (new API) HOT 2
- Implement SAST warnings for SemVer 0.0.0
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 scanner.