Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

full npm api support #8

Open
tjwebb opened this issue Apr 22, 2014 · 1 comment
Open

full npm api support #8

tjwebb opened this issue Apr 22, 2014 · 1 comment

Comments

@tjwebb
Copy link
Member

tjwebb commented Apr 22, 2014

This is relevant mostly for publishing. npmjs.us mirror already supports the full GET api. The PUT api is basically not supported at all; npm publishing to the npmjs.us mirror will fail. Some unit tests are in order here.

@tjwebb
Copy link
Member Author

tjwebb commented Apr 22, 2014

a pretty good start

tjwebb@registry:~/npmjs.us$ npm adduser test1
Username: (test) test1
Password: 
Email: (this IS public) ([email protected]) 
npm http PUT https://registry.npmjs.us/public/-/user/org.couchdb.user:test1
npm http 201 https://registry.npmjs.us/public/-/user/org.couchdb.user:test1
tjwebb@registry:~/npmjs.us$ 
tjwebb@registry:~/npmjs.us$ 
tjwebb@registry:~/npmjs.us$ 
tjwebb@registry:~/npmjs.us$ npm login test1
Username: (test1) 
Email: (this IS public) ([email protected]) 
npm http PUT https://registry.npmjs.us/public/-/user/org.couchdb.user:test1
npm http 409 https://registry.npmjs.us/public/-/user/org.couchdb.user:test1
npm http GET https://registry.npmjs.us/public/-/user/org.couchdb.user:test1?write=true
npm http 200 https://registry.npmjs.us/public/-/user/org.couchdb.user:test1?write=true
npm http PUT https://registry.npmjs.us/public/-/user/org.couchdb.user:test1/-rev/1-02edfc3c9c3a3dd4f20d573622b6aa89
npm http 201 https://registry.npmjs.us/public/-/user/org.couchdb.user:test1/-rev/1-02edfc3c9c3a3dd4f20d573622b6aa89
tjwebb@registry:~/npmjs.us$ npm publish
npm http PUT https://registry.npmjs.us/public/npmjs.us-test
npm http 201 https://registry.npmjs.us/public/npmjs.us-test
+ [email protected]
tjwebb@registry:~/npmjs.us$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant