isaacscript 1.1.66 → 1.1.70
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.
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.70",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript",
|
|
5
5
|
"homepage": "https://isaacscript.github.io/",
|
|
6
6
|
"bugs": {
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"prompt": "^1.2.0",
|
|
28
28
|
"source-map": "^0.7.3",
|
|
29
29
|
"source-map-support": "^0.5.21",
|
|
30
|
-
"sync-directory": "^4.0.
|
|
31
|
-
"typescript": "4.
|
|
32
|
-
"typescript-to-lua": "1.
|
|
30
|
+
"sync-directory": "^4.0.9",
|
|
31
|
+
"typescript": "^4.5.4",
|
|
32
|
+
"typescript-to-lua": "^1.3.0",
|
|
33
33
|
"update-notifier": "^5.1.0",
|
|
34
34
|
"yaml": "^1.10.2",
|
|
35
|
-
"yargs": "^17.3.
|
|
35
|
+
"yargs": "^17.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/command-exists": "^1.2.0",
|
|
39
39
|
"@types/figlet": "^1.5.4",
|
|
40
40
|
"@types/fs-extra": "^9.0.13",
|
|
41
|
-
"@types/node": "^17.0.
|
|
41
|
+
"@types/node": "^17.0.4",
|
|
42
42
|
"@types/prompt": "^1.1.2",
|
|
43
43
|
"@types/source-map-support": "^0.5.4",
|
|
44
44
|
"@types/update-notifier": "^5.1.0",
|
|
45
|
-
"@types/yargs": "^17.0.
|
|
46
|
-
"isaacscript-lint": "^1.0.
|
|
45
|
+
"@types/yargs": "^17.0.8",
|
|
46
|
+
"isaacscript-lint": "^1.0.77"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -1,31 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
const crypto = __importStar(require("crypto"));
|
|
23
|
+
const tstl = __importStar(require("typescript-to-lua"));
|
|
8
24
|
class CustomPrinter extends tstl.LuaPrinter {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
printStatement(statement) {
|
|
26
|
+
const uuid = crypto.randomUUID();
|
|
27
|
+
const debugLineToInsert = `Isaac.DebugString("CRASH DEBUG ${uuid}")\n`;
|
|
28
|
+
const originalResult = super.printStatement(statement);
|
|
29
|
+
return this.createSourceNode(statement, [
|
|
30
|
+
debugLineToInsert,
|
|
31
|
+
originalResult,
|
|
32
|
+
]);
|
|
33
|
+
}
|
|
18
34
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
printer: (
|
|
22
|
-
program: ts.Program,
|
|
23
|
-
emitHost: tstl.EmitHost,
|
|
24
|
-
fileName: string,
|
|
25
|
-
file: tstl.File,
|
|
26
|
-
) => new CustomPrinter(emitHost, program, fileName).print(file),
|
|
35
|
+
const plugin = {
|
|
36
|
+
printer: (program, emitHost, fileName, file) => new CustomPrinter(emitHost, program, fileName).print(file),
|
|
27
37
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*/
|
|
38
|
+
// ts-prune-ignore-next
|
|
39
|
+
exports.default = plugin;
|
|
31
40
|
//# sourceMappingURL=addCrashDebugStatements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addCrashDebugStatements.js","sourceRoot":"","sources":["../../../src/plugins/addCrashDebugStatements.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"addCrashDebugStatements.js","sourceRoot":"","sources":["../../../src/plugins/addCrashDebugStatements.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAGjC,wDAA0C;AAE1C,MAAM,aAAc,SAAQ,IAAI,CAAC,UAAU;IACzC,cAAc,CAAC,SAAyB;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACjC,MAAM,iBAAiB,GAAG,kCAAkC,IAAI,MAAM,CAAC;QACvE,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE;YACtC,iBAAiB;YACjB,cAAc;SACf,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,MAAM,GAAgB;IAC1B,OAAO,EAAE,CACP,OAAmB,EACnB,QAAuB,EACvB,QAAgB,EAChB,IAAe,EACf,EAAE,CAAC,IAAI,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;CAChE,CAAC;AAEF,uBAAuB;AACvB,kBAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.70",
|
|
4
4
|
"description": "A command line tool for managing Isaac mods written in TypeScript",
|
|
5
5
|
"homepage": "https://isaacscript.github.io/",
|
|
6
6
|
"bugs": {
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"prompt": "^1.2.0",
|
|
28
28
|
"source-map": "^0.7.3",
|
|
29
29
|
"source-map-support": "^0.5.21",
|
|
30
|
-
"sync-directory": "^4.0.
|
|
31
|
-
"typescript": "4.
|
|
32
|
-
"typescript-to-lua": "1.
|
|
30
|
+
"sync-directory": "^4.0.9",
|
|
31
|
+
"typescript": "^4.5.4",
|
|
32
|
+
"typescript-to-lua": "^1.3.0",
|
|
33
33
|
"update-notifier": "^5.1.0",
|
|
34
34
|
"yaml": "^1.10.2",
|
|
35
|
-
"yargs": "^17.3.
|
|
35
|
+
"yargs": "^17.3.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/command-exists": "^1.2.0",
|
|
39
39
|
"@types/figlet": "^1.5.4",
|
|
40
40
|
"@types/fs-extra": "^9.0.13",
|
|
41
|
-
"@types/node": "^17.0.
|
|
41
|
+
"@types/node": "^17.0.4",
|
|
42
42
|
"@types/prompt": "^1.1.2",
|
|
43
43
|
"@types/source-map-support": "^0.5.4",
|
|
44
44
|
"@types/update-notifier": "^5.1.0",
|
|
45
|
-
"@types/yargs": "^17.0.
|
|
46
|
-
"isaacscript-lint": "^1.0.
|
|
45
|
+
"@types/yargs": "^17.0.8",
|
|
46
|
+
"isaacscript-lint": "^1.0.77"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
1
|
import * as crypto from "crypto";
|
|
3
2
|
import { SourceNode } from "source-map";
|
|
4
3
|
import * as ts from "typescript";
|
|
@@ -25,5 +24,5 @@ const plugin: tstl.Plugin = {
|
|
|
25
24
|
) => new CustomPrinter(emitHost, program, fileName).print(file),
|
|
26
25
|
};
|
|
27
26
|
|
|
27
|
+
// ts-prune-ignore-next
|
|
28
28
|
export default plugin;
|
|
29
|
-
*/
|
package/update.sh
CHANGED
|
@@ -10,7 +10,7 @@ cd "$DIR"
|
|
|
10
10
|
|
|
11
11
|
PACKAGE_JSON="$DIR/package.json"
|
|
12
12
|
OLD_HASH=$(md5sum "$PACKAGE_JSON")
|
|
13
|
-
npx npm-check-updates --upgrade --packageFile "$PACKAGE_JSON" --reject chalk
|
|
13
|
+
npx npm-check-updates --upgrade --packageFile "$PACKAGE_JSON" --reject chalk
|
|
14
14
|
NEW_HASH=$(md5sum "$PACKAGE_JSON")
|
|
15
15
|
if [[ $OLD_HASH != $NEW_HASH ]]; then
|
|
16
16
|
npm install
|