Skip to content
Permalink
Browse files

[dist][fix] bump bffs / cdnup and fix swagger spec for publish to inc… (

#51)

* [dist][fix] bump bffs / cdnup and fix swagger spec for publish to include 201

* update tests to be explicit about acls
  • Loading branch information...
msluther committed Apr 2, 2019
1 parent d120fa3 commit 97a4a15629c012dc226f84ab0875b83b3f55dee9
Showing with 29 additions and 15 deletions.
  1. +3 −0 config.example.json
  2. +12 −1 lib/npm/publisher.js
  3. +13 −13 package-lock.json
  4. +1 −1 package.json
@@ -8,6 +8,7 @@
"prefix": "wrhs",
"cdn": {
"prod": {
"acl": "public-read",
"pkgcloud": {
"provider": "amazon",
"endpoint": "aws.amazon.net",
@@ -18,6 +19,7 @@
"url": "https://mycloudfrontURL.com"
},
"test": {
"acl": "public-read",
"pkgcloud": {
"provider": "amazon",
"endpoint": "aws.amazon.net",
@@ -28,6 +30,7 @@
"url": "https://mycloudfrontURL.com"
},
"dev": {
"acl": "public-read",
"pkgcloud": {
"provider": "amazon",
"endpoint": "aws.amazon.net",
@@ -87,7 +87,18 @@ Publisher.prototype.setup = function () {
* requestBody:
* description: The npm publish payload
* responses:
* $ref: '#/responses/Standard'
* 201:
* description: Created
* 400:
* $ref: '#/responses/Standard400'
* 401:
* $ref: '#/responses/Standard401'
* 403:
* $ref: '#/responses/Standard403'
* 404:
* $ref: '#/responses/Standard404'
* 500:
* $ref: '#/responses/Standard500'
*/
this.router = params(new Router())
.put('/:pkg', this.auth, this.verify.bind(this));

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -40,7 +40,7 @@
"async": "^1.4.1",
"authboot": "^2.0.1",
"basic-auth": "^2.0.0",
"bffs": "^5.3.0",
"bffs": "^5.4.0",
"body-parser": "^1.18.3",
"carpenterd-api-client": "^2.0.0",
"commenting": "~1.0.3",

0 comments on commit 97a4a15

Please sign in to comment.
You can’t perform that action at this time.