Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
@npmcli /
package-json /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
2.69
KB
-rw-r--r--
2023-11-23 07:39
update-dependencies.js
1.98
KB
-rw-r--r--
2023-11-23 07:39
update-scripts.js
664
B
-rw-r--r--
2023-11-23 07:39
update-workspaces.js
626
B
-rw-r--r--
2023-11-23 07:39
Save
Rename
const updateScripts = ({ content, originalContent = {} }) => { const newScripts = content.scripts if (!newScripts) { return originalContent } // validate scripts content being appended const hasInvalidScripts = () => Object.entries(newScripts) .some(([key, value]) => typeof key !== 'string' || typeof value !== 'string') if (hasInvalidScripts()) { throw Object.assign( new TypeError( 'package.json scripts should be a key-value pair of strings.'), { code: 'ESCRIPTSINVALID' } ) } return { ...originalContent, scripts: { ...newScripts, }, } } module.exports = updateScripts