Erster Docker-Stand
This commit is contained in:
3
_node_modules/@chevrotain/utils/lib/src/api.d.ts
generated
vendored
Normal file
3
_node_modules/@chevrotain/utils/lib/src/api.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { PRINT_WARNING, PRINT_ERROR } from "./print";
|
||||
export { timer } from "./timer";
|
||||
export { toFastProperties } from "./to-fast-properties";
|
||||
11
_node_modules/@chevrotain/utils/lib/src/api.js
generated
Normal file
11
_node_modules/@chevrotain/utils/lib/src/api.js
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.toFastProperties = exports.timer = exports.PRINT_ERROR = exports.PRINT_WARNING = void 0;
|
||||
var print_1 = require("./print");
|
||||
Object.defineProperty(exports, "PRINT_WARNING", { enumerable: true, get: function () { return print_1.PRINT_WARNING; } });
|
||||
Object.defineProperty(exports, "PRINT_ERROR", { enumerable: true, get: function () { return print_1.PRINT_ERROR; } });
|
||||
var timer_1 = require("./timer");
|
||||
Object.defineProperty(exports, "timer", { enumerable: true, get: function () { return timer_1.timer; } });
|
||||
var to_fast_properties_1 = require("./to-fast-properties");
|
||||
Object.defineProperty(exports, "toFastProperties", { enumerable: true, get: function () { return to_fast_properties_1.toFastProperties; } });
|
||||
//# sourceMappingURL=api.js.map
|
||||
1
_node_modules/@chevrotain/utils/lib/src/api.js.map
generated
Normal file
1
_node_modules/@chevrotain/utils/lib/src/api.js.map
generated
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;;AAAA,iCAAoD;AAA3C,sGAAA,aAAa,OAAA;AAAE,oGAAA,WAAW,OAAA;AACnC,iCAA+B;AAAtB,8FAAA,KAAK,OAAA;AACd,2DAAuD;AAA9C,sHAAA,gBAAgB,OAAA"}
|
||||
2
_node_modules/@chevrotain/utils/lib/src/print.d.ts
generated
vendored
Normal file
2
_node_modules/@chevrotain/utils/lib/src/print.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function PRINT_ERROR(msg: string): void;
|
||||
export declare function PRINT_WARNING(msg: string): void;
|
||||
19
_node_modules/@chevrotain/utils/lib/src/print.js
generated
Normal file
19
_node_modules/@chevrotain/utils/lib/src/print.js
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PRINT_WARNING = exports.PRINT_ERROR = void 0;
|
||||
function PRINT_ERROR(msg) {
|
||||
/* istanbul ignore else - can't override global.console in node.js */
|
||||
if (console && console.error) {
|
||||
console.error("Error: ".concat(msg));
|
||||
}
|
||||
}
|
||||
exports.PRINT_ERROR = PRINT_ERROR;
|
||||
function PRINT_WARNING(msg) {
|
||||
/* istanbul ignore else - can't override global.console in node.js*/
|
||||
if (console && console.warn) {
|
||||
// TODO: modify docs accordingly
|
||||
console.warn("Warning: ".concat(msg));
|
||||
}
|
||||
}
|
||||
exports.PRINT_WARNING = PRINT_WARNING;
|
||||
//# sourceMappingURL=print.js.map
|
||||
1
_node_modules/@chevrotain/utils/lib/src/print.js.map
generated
Normal file
1
_node_modules/@chevrotain/utils/lib/src/print.js.map
generated
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"print.js","sourceRoot":"","sources":["../../src/print.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,GAAW;IACrC,qEAAqE;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC,iBAAU,GAAG,CAAE,CAAC,CAAA;KAC/B;AACH,CAAC;AALD,kCAKC;AAED,SAAgB,aAAa,CAAC,GAAW;IACvC,oEAAoE;IACpE,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE;QAC3B,gCAAgC;QAChC,OAAO,CAAC,IAAI,CAAC,mBAAY,GAAG,CAAE,CAAC,CAAA;KAChC;AACH,CAAC;AAND,sCAMC"}
|
||||
4
_node_modules/@chevrotain/utils/lib/src/timer.d.ts
generated
vendored
Normal file
4
_node_modules/@chevrotain/utils/lib/src/timer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export declare function timer<T>(func: () => T): {
|
||||
time: number;
|
||||
value: T;
|
||||
};
|
||||
12
_node_modules/@chevrotain/utils/lib/src/timer.js
generated
Normal file
12
_node_modules/@chevrotain/utils/lib/src/timer.js
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.timer = void 0;
|
||||
function timer(func) {
|
||||
var start = new Date().getTime();
|
||||
var val = func();
|
||||
var end = new Date().getTime();
|
||||
var total = end - start;
|
||||
return { time: total, value: val };
|
||||
}
|
||||
exports.timer = timer;
|
||||
//# sourceMappingURL=timer.js.map
|
||||
1
_node_modules/@chevrotain/utils/lib/src/timer.js.map
generated
Normal file
1
_node_modules/@chevrotain/utils/lib/src/timer.js.map
generated
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../src/timer.ts"],"names":[],"mappings":";;;AAAA,SAAgB,KAAK,CAAI,IAAa;IACpC,IAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAClC,IAAM,GAAG,GAAG,IAAI,EAAE,CAAA;IAClB,IAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAA;IAChC,IAAM,KAAK,GAAG,GAAG,GAAG,KAAK,CAAA;IACzB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,CAAA;AACpC,CAAC;AAND,sBAMC"}
|
||||
1
_node_modules/@chevrotain/utils/lib/src/to-fast-properties.d.ts
generated
vendored
Normal file
1
_node_modules/@chevrotain/utils/lib/src/to-fast-properties.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export declare function toFastProperties(toBecomeFast: any): any;
|
||||
27
_node_modules/@chevrotain/utils/lib/src/to-fast-properties.js
generated
Normal file
27
_node_modules/@chevrotain/utils/lib/src/to-fast-properties.js
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.toFastProperties = void 0;
|
||||
// based on: https://github.com/petkaantonov/bluebird/blob/b97c0d2d487e8c5076e8bd897e0dcd4622d31846/src/util.js#L201-L216
|
||||
function toFastProperties(toBecomeFast) {
|
||||
function FakeConstructor() { }
|
||||
// If our object is used as a constructor it would receive
|
||||
FakeConstructor.prototype = toBecomeFast;
|
||||
var fakeInstance = new FakeConstructor();
|
||||
function fakeAccess() {
|
||||
return typeof fakeInstance.bar;
|
||||
}
|
||||
// help V8 understand this is a "real" prototype by actually using
|
||||
// the fake instance.
|
||||
fakeAccess();
|
||||
fakeAccess();
|
||||
// Always true condition to suppress the Firefox warning of unreachable
|
||||
// code after a return statement.
|
||||
if (1)
|
||||
return toBecomeFast;
|
||||
// Eval prevents optimization of this method (even though this is dead code)
|
||||
/* istanbul ignore next */
|
||||
// tslint:disable-next-line
|
||||
eval(toBecomeFast);
|
||||
}
|
||||
exports.toFastProperties = toFastProperties;
|
||||
//# sourceMappingURL=to-fast-properties.js.map
|
||||
1
_node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map
generated
Normal file
1
_node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map
generated
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"to-fast-properties.js","sourceRoot":"","sources":["../../src/to-fast-properties.ts"],"names":[],"mappings":";;;AAAA,yHAAyH;AACzH,SAAgB,gBAAgB,CAAC,YAAiB;IAChD,SAAS,eAAe,KAAI,CAAC;IAE7B,0DAA0D;IAC1D,eAAe,CAAC,SAAS,GAAG,YAAY,CAAA;IACxC,IAAM,YAAY,GAAG,IAAK,eAAuB,EAAE,CAAA;IAEnD,SAAS,UAAU;QACjB,OAAO,OAAO,YAAY,CAAC,GAAG,CAAA;IAChC,CAAC;IAED,kEAAkE;IAClE,qBAAqB;IACrB,UAAU,EAAE,CAAA;IACZ,UAAU,EAAE,CAAA;IAEZ,uEAAuE;IACvE,iCAAiC;IACjC,IAAI,CAAC;QAAE,OAAO,YAAY,CAAA;IAE1B,4EAA4E;IAC5E,0BAA0B;IAC1B,2BAA2B;IAC3B,IAAI,CAAC,YAAY,CAAC,CAAA;AACpB,CAAC;AAxBD,4CAwBC"}
|
||||
Reference in New Issue
Block a user