isaacscript 1.1.67 → 1.1.68
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,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,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
|
-
*/
|