Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 18.188.241.246
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
npm /
node_modules /
read-installed /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
fixtures
[ DIR ]
drwxr-xr-x
basic.js
1.3
KB
-rw-r--r--
cyclic-extraneous-peer-deps.js
1.9
KB
-rw-r--r--
depth-0.js
1.01
KB
-rw-r--r--
depth-1.js
826
B
-rw-r--r--
dev.js
863
B
-rw-r--r--
empty.js
527
B
-rw-r--r--
extraneous-dev.js
600
B
-rw-r--r--
extraneous.js
752
B
-rw-r--r--
grandparent-peer-dev.js
585
B
-rw-r--r--
grandparent-peer.js
761
B
-rw-r--r--
issue-40.js
441
B
-rw-r--r--
linked-dep-dev-deps-extraneous...
1.29
KB
-rw-r--r--
noargs.js
818
B
-rw-r--r--
peer-dep-at-latest.js
425
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cyclic-extraneous-peer-deps.js
var test = require("tap").test var mkdirp = require("mkdirp") var rimraf = require("rimraf") var fs = require("fs") var path = require("path") var readInstalled = require("../read-installed.js") var parent = { name: "parent", version: "1.2.3", dependencies: {}, devDependencies: { "child1":"*" }, readme:"." } var child1 = { name: "child1", version: "1.2.3", peerDependencies: { child2: "*" }, readme:"." } var child2 = { name: "child2", version: "1.2.3", peerDependencies: { child1: "*" }, readme:"." } var root = path.resolve(__dirname, "cyclic-extraneous-peer-deps") var parentjson = path.resolve(root, "package.json") var child1root = path.resolve(root, "node_modules/child1") var child1json = path.resolve(child1root, "package.json") var child2root = path.resolve(root, "node_modules/child2") var child2json = path.resolve(child2root, "package.json") test("setup", function (t) { rimraf.sync(root) mkdirp.sync(child1root) mkdirp.sync(child2root) fs.writeFileSync(parentjson, JSON.stringify(parent, null, 2) + "\n", "utf8") fs.writeFileSync(child1json, JSON.stringify(child1, null, 2) + "\n", "utf8") fs.writeFileSync(child2json, JSON.stringify(child2, null, 2) + "\n", "utf8") t.pass("setup done") t.end() }) test("dev mode", function (t) { // peer dev deps should both be not extraneous. readInstalled(root, { dev: true }, function (er, data) { if (er) throw er t.notOk(data.dependencies.child1.extraneous, "c1 not extra") t.notOk(data.dependencies.child2.extraneous, "c2 not extra") t.end() }) }) test("prod mode", function (t) { readInstalled(root, { dev: false }, function (er, data) { if (er) throw er t.ok(data.dependencies.child1.extraneous, "c1 extra") t.ok(data.dependencies.child2.extraneous, "c2 extra") t.end() }) }) test("cleanup", function (t) { rimraf.sync(root) t.pass("cleanup done") t.end() })
Close