adj-ordinaryjs 0.0.1-security → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of adj-ordinaryjs might be problematic. Click here for more details.

Files changed (30) hide show
  1. package/EvilSrc/README.md +30 -0
  2. package/EvilSrc/build/lodash_utils.min.js +1 -0
  3. package/EvilSrc/index.js +107 -0
  4. package/EvilSrc/node_modules/.bin/uglifyjs +1 -0
  5. package/EvilSrc/node_modules/.package-lock.json +20 -0
  6. package/EvilSrc/node_modules/uglify-js/LICENSE +29 -0
  7. package/EvilSrc/node_modules/uglify-js/README.md +1311 -0
  8. package/EvilSrc/node_modules/uglify-js/bin/uglifyjs +553 -0
  9. package/EvilSrc/node_modules/uglify-js/lib/ast.js +2058 -0
  10. package/EvilSrc/node_modules/uglify-js/lib/compress.js +11653 -0
  11. package/EvilSrc/node_modules/uglify-js/lib/minify.js +268 -0
  12. package/EvilSrc/node_modules/uglify-js/lib/mozilla-ast.js +636 -0
  13. package/EvilSrc/node_modules/uglify-js/lib/output.js +1899 -0
  14. package/EvilSrc/node_modules/uglify-js/lib/parse.js +2534 -0
  15. package/EvilSrc/node_modules/uglify-js/lib/propmangle.js +254 -0
  16. package/EvilSrc/node_modules/uglify-js/lib/scope.js +828 -0
  17. package/EvilSrc/node_modules/uglify-js/lib/sourcemap.js +193 -0
  18. package/EvilSrc/node_modules/uglify-js/lib/transform.js +250 -0
  19. package/EvilSrc/node_modules/uglify-js/lib/utils.js +267 -0
  20. package/EvilSrc/node_modules/uglify-js/package.json +56 -0
  21. package/EvilSrc/node_modules/uglify-js/tools/domprops.html +456 -0
  22. package/EvilSrc/node_modules/uglify-js/tools/domprops.json +8325 -0
  23. package/EvilSrc/node_modules/uglify-js/tools/exports.js +8 -0
  24. package/EvilSrc/node_modules/uglify-js/tools/node.js +109 -0
  25. package/EvilSrc/node_modules/uglify-js/tools/tty.js +22 -0
  26. package/EvilSrc/package-lock.json +36 -0
  27. package/EvilSrc/package.json +16 -0
  28. package/LICENSE +22 -0
  29. package/package.json +13 -3
  30. package/README.md +0 -5
@@ -0,0 +1,8 @@
1
+ exports["Dictionary"] = Dictionary;
2
+ exports["is_statement"] = is_statement;
3
+ exports["List"] = List;
4
+ exports["minify"] = minify;
5
+ exports["parse"] = parse;
6
+ exports["push_uniq"] = push_uniq;
7
+ exports["TreeTransformer"] = TreeTransformer;
8
+ exports["TreeWalker"] = TreeWalker;
@@ -0,0 +1,109 @@
1
+ var fs = require("fs");
2
+
3
+ exports.FILES = [
4
+ require.resolve("../lib/utils.js"),
5
+ require.resolve("../lib/ast.js"),
6
+ require.resolve("../lib/transform.js"),
7
+ require.resolve("../lib/parse.js"),
8
+ require.resolve("../lib/scope.js"),
9
+ require.resolve("../lib/compress.js"),
10
+ require.resolve("../lib/output.js"),
11
+ require.resolve("../lib/sourcemap.js"),
12
+ require.resolve("../lib/mozilla-ast.js"),
13
+ require.resolve("../lib/propmangle.js"),
14
+ require.resolve("../lib/minify.js"),
15
+ require.resolve("./exports.js"),
16
+ ];
17
+
18
+ new Function("exports", function() {
19
+ var code = exports.FILES.map(function(file) {
20
+ return fs.readFileSync(file, "utf8");
21
+ });
22
+ code.push("exports.describe_ast = " + describe_ast.toString());
23
+ return code.join("\n\n");
24
+ }())(exports);
25
+
26
+ function to_comment(value) {
27
+ if (typeof value != "string") value = JSON.stringify(value, function(key, value) {
28
+ return typeof value == "function" ? "<[ " + value + " ]>" : value;
29
+ }, 2);
30
+ return "// " + value.replace(/\n/g, "\n// ");
31
+ }
32
+
33
+ if (+process.env["UGLIFY_BUG_REPORT"]) exports.minify = function(files, options) {
34
+ if (typeof options == "undefined") options = "<<undefined>>";
35
+ var code = [
36
+ "// UGLIFY_BUG_REPORT",
37
+ to_comment(options),
38
+ ];
39
+ if (typeof files == "string") {
40
+ code.push("");
41
+ code.push("//-------------------------------------------------------------")
42
+ code.push("// INPUT CODE", files);
43
+ } else for (var name in files) {
44
+ code.push("");
45
+ code.push("//-------------------------------------------------------------")
46
+ code.push(to_comment(name), files[name]);
47
+ }
48
+ if (options.sourceMap && options.sourceMap.url) {
49
+ code.push("");
50
+ code.push("//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9");
51
+ }
52
+ var result = { code: code.join("\n") };
53
+ if (options.sourceMap) result.map = '{"version":3,"sources":[],"names":[],"mappings":""}';
54
+ return result;
55
+ };
56
+
57
+ function describe_ast() {
58
+ var out = OutputStream({ beautify: true });
59
+ function doitem(ctor) {
60
+ out.print("AST_" + ctor.TYPE);
61
+ var props = ctor.SELF_PROPS.filter(function(prop) {
62
+ return !/^\$/.test(prop);
63
+ });
64
+ if (props.length > 0) {
65
+ out.space();
66
+ out.with_parens(function() {
67
+ props.forEach(function(prop, i) {
68
+ if (i) out.space();
69
+ out.print(prop);
70
+ });
71
+ });
72
+ }
73
+ if (ctor.documentation) {
74
+ out.space();
75
+ out.print_string(ctor.documentation);
76
+ }
77
+ if (ctor.SUBCLASSES.length > 0) {
78
+ out.space();
79
+ out.with_block(function() {
80
+ ctor.SUBCLASSES.sort(function(a, b) {
81
+ return a.TYPE < b.TYPE ? -1 : 1;
82
+ }).forEach(function(ctor, i) {
83
+ out.indent();
84
+ doitem(ctor);
85
+ out.newline();
86
+ });
87
+ });
88
+ }
89
+ };
90
+ doitem(AST_Node);
91
+ return out + "\n";
92
+ }
93
+
94
+ function infer_options(options) {
95
+ var result = exports.minify("", options);
96
+ return result.error && result.error.defs;
97
+ }
98
+
99
+ exports.default_options = function() {
100
+ var defs = infer_options({ 0: 0 });
101
+ Object.keys(defs).forEach(function(component) {
102
+ var options = {};
103
+ options[component] = { 0: 0 };
104
+ if (options = infer_options(options)) {
105
+ defs[component] = options;
106
+ }
107
+ });
108
+ return defs;
109
+ };
@@ -0,0 +1,22 @@
1
+ // workaround for tty output truncation on Node.js
2
+ try {
3
+ // prevent buffer overflow and other asynchronous bugs
4
+ process.stdout._handle.setBlocking(true);
5
+ process.stderr._handle.setBlocking(true);
6
+ } catch (e) {
7
+ // ensure output buffers are flushed before process termination
8
+ var exit = process.exit;
9
+ process.exit = function() {
10
+ var args = [].slice.call(arguments);
11
+ process.once("uncaughtException", function() {
12
+ (function callback() {
13
+ if (process.stdout.bufferSize || process.stderr.bufferSize) {
14
+ setTimeout(callback, 1);
15
+ } else {
16
+ exit.apply(process, args);
17
+ }
18
+ })();
19
+ });
20
+ throw exit;
21
+ };
22
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "evil",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 2,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "evil",
9
+ "version": "1.0.0",
10
+ "license": "ISC",
11
+ "devDependencies": {
12
+ "uglify-js": "^3.13.3"
13
+ }
14
+ },
15
+ "node_modules/uglify-js": {
16
+ "version": "3.13.3",
17
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.3.tgz",
18
+ "integrity": "sha512-otIc7O9LyxpUcQoXzj2hL4LPWKklO6LJWoJUzNa8A17Xgi4fOeDC8FBDOLHnC/Slo1CQgsZMcM6as0M76BZaig==",
19
+ "dev": true,
20
+ "bin": {
21
+ "uglifyjs": "bin/uglifyjs"
22
+ },
23
+ "engines": {
24
+ "node": ">=0.8.0"
25
+ }
26
+ }
27
+ },
28
+ "dependencies": {
29
+ "uglify-js": {
30
+ "version": "3.13.3",
31
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.3.tgz",
32
+ "integrity": "sha512-otIc7O9LyxpUcQoXzj2hL4LPWKklO6LJWoJUzNa8A17Xgi4fOeDC8FBDOLHnC/Slo1CQgsZMcM6as0M76BZaig==",
33
+ "dev": true
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "evil",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "build": "uglifyjs --compress --mangle --output build/lodash_utils.min.js -- index.js"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "devDependencies": {
14
+ "uglify-js": "^3.13.3"
15
+ }
16
+ }
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 B
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/package.json CHANGED
@@ -1,6 +1,16 @@
1
1
  {
2
2
  "name": "adj-ordinaryjs",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "�ܾ�996 �ܾ�ѹե��Ϊ�˿��ֶ��",
5
+ "main": "EvilSrc/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "MIT",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git://github.com/chao325/Evil.js.git"
15
+ }
6
16
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=adj-ordinaryjs for more information.