(pkg, body)
| 56 | } |
| 57 | |
| 58 | createConfig (pkg, body) { |
| 59 | const spec = npa(pkg) |
| 60 | const uri = `/-/package/${spec.escapedName}/trust` |
| 61 | return otplease(this.npm, this.npm.flatOptions, opts => npmFetch(uri, { |
| 62 | ...opts, |
| 63 | method: 'POST', |
| 64 | body: body, |
| 65 | })) |
| 66 | } |
| 67 | |
| 68 | static permissionLabels = { |
| 69 | [PERMISSIONS.CREATE_PACKAGE]: 'publish', |
no test coverage detected