修改后台权限
This commit is contained in:
17
node_modules/@dotenvx/dotenvx/src/lib/helpers/prependPublicKey.js
generated
vendored
Normal file
17
node_modules/@dotenvx/dotenvx/src/lib/helpers/prependPublicKey.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
function prependPublicKey (publicKeyName, publicKey, filename, relativeFilepath = '.env.keys') {
|
||||
const comment = relativeFilepath === '.env.keys'
|
||||
? ''
|
||||
: ` # -fk ${relativeFilepath}`
|
||||
|
||||
return [
|
||||
'#/-------------------[DOTENV_PUBLIC_KEY]--------------------/',
|
||||
'#/ public-key encryption for .env files /',
|
||||
'#/ [how it works](https://dotenvx.com/encryption) /',
|
||||
'#/----------------------------------------------------------/',
|
||||
`${publicKeyName}="${publicKey}"${comment}`,
|
||||
'',
|
||||
`# ${filename}`
|
||||
].join('\n')
|
||||
}
|
||||
|
||||
module.exports = prependPublicKey
|
||||
Reference in New Issue
Block a user