UNPKG
@calvin_von/proxy-plugin-cache
Version:
latest (2.4.0)
2.4.0
2.3.2
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.0-beta
1.2.0-beta.18
1.2.0-beta.17
1.2.0-beta.16
1.2.0-beta.15
1.2.0-beta.14
1.2.0-beta.13
1.2.0-beta.12
1.2.0-beta.11
1.2.0-beta.10
1.2.0-beta.9
1.2.0-beta.8
1.2.0-beta.7
1.2.0-beta.6
1.2.0-beta.5
1.2.0-beta.4
1.2.0-beta.3
1.2.0-beta.2
1.2.0-beta.1
1.2.0-beta
1.1.0
1.0.0
A dalao-proxy plugin for cache response
@calvin_von/proxy-plugin-cache
/
scripts
/
post-install.js
8 lines
(6 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
#!/usr/bin/env node
const
{ packageInstaller, hasGlobalArgs, getProcessUserInfo } =
require
(
'@dalao-proxy/utils'
);
const
installGlobally =
hasGlobalArgs
(); packageInstaller.
install
([
'@calvin_von/proxy-plugin-inject'
], {
isLocally
: !(installGlobally ||
getProcessUserInfo
().
sudo
), });