mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* first action! (#1)
This commit is contained in:
parent
8deacc95b1
commit
ace1e6a69a
3750 changed files with 1155519 additions and 0 deletions
96
node_modules/npm-registry-fetch/config.js
generated
vendored
Normal file
96
node_modules/npm-registry-fetch/config.js
generated
vendored
Normal file
|
@ -0,0 +1,96 @@
|
|||
'use strict'
|
||||
|
||||
const pkg = require('./package.json')
|
||||
const figgyPudding = require('figgy-pudding')
|
||||
const silentLog = require('./silentlog.js')
|
||||
|
||||
const AUTH_REGEX = /^(?:.*:)?(token|_authToken|username|_password|password|email|always-auth|_auth|otp)$/
|
||||
const SCOPE_REGISTRY_REGEX = /@.*:registry$/gi
|
||||
module.exports = figgyPudding({
|
||||
'agent': {},
|
||||
'algorithms': {},
|
||||
'body': {},
|
||||
'ca': {},
|
||||
'cache': {},
|
||||
'cert': {},
|
||||
'fetch-retries': {},
|
||||
'fetch-retry-factor': {},
|
||||
'fetch-retry-maxtimeout': {},
|
||||
'fetch-retry-mintimeout': {},
|
||||
'force-auth': {},
|
||||
forceAuth: 'force-auth',
|
||||
'gzip': {},
|
||||
'headers': {},
|
||||
'https-proxy': {},
|
||||
'ignore-body': {},
|
||||
ignoreBody: 'ignore-body',
|
||||
'integrity': {},
|
||||
'is-from-ci': 'isFromCI',
|
||||
'isFromCI': {
|
||||
default () {
|
||||
return (
|
||||
process.env['CI'] === 'true' ||
|
||||
process.env['TDDIUM'] ||
|
||||
process.env['JENKINS_URL'] ||
|
||||
process.env['bamboo.buildKey'] ||
|
||||
process.env['GO_PIPELINE_NAME']
|
||||
)
|
||||
}
|
||||
},
|
||||
'key': {},
|
||||
'local-address': {},
|
||||
'log': {
|
||||
default: silentLog
|
||||
},
|
||||
'map-json': 'mapJson',
|
||||
'mapJSON': 'mapJson',
|
||||
'mapJson': {},
|
||||
'max-sockets': 'maxsockets',
|
||||
'maxsockets': {
|
||||
default: 12
|
||||
},
|
||||
'memoize': {},
|
||||
'method': {
|
||||
default: 'GET'
|
||||
},
|
||||
'no-proxy': {},
|
||||
'noproxy': {},
|
||||
'npm-session': 'npmSession',
|
||||
'npmSession': {},
|
||||
'offline': {},
|
||||
'otp': {},
|
||||
'prefer-offline': {},
|
||||
'prefer-online': {},
|
||||
'projectScope': {},
|
||||
'project-scope': 'projectScope',
|
||||
'Promise': {default: () => Promise},
|
||||
'proxy': {},
|
||||
'query': {},
|
||||
'refer': {},
|
||||
'referer': 'refer',
|
||||
'registry': {
|
||||
default: 'https://registry.npmjs.org/'
|
||||
},
|
||||
'retry': {},
|
||||
'scope': {},
|
||||
'spec': {},
|
||||
'strict-ssl': {},
|
||||
'timeout': {},
|
||||
'user-agent': {
|
||||
default: `${
|
||||
pkg.name
|
||||
}@${
|
||||
pkg.version
|
||||
}/node@${
|
||||
process.version
|
||||
}+${
|
||||
process.arch
|
||||
} (${
|
||||
process.platform
|
||||
})`
|
||||
}
|
||||
}, {
|
||||
other (key) {
|
||||
return key.match(AUTH_REGEX) || key.match(SCOPE_REGISTRY_REGEX)
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue