@remotion/bundler 3.0.0-lambda.395 → 3.0.0-lambda.400
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/error-overlay/react-overlay/utils/path.d.ts +1 -1
- package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -1
- package/dist/error-overlay/react-overlay/utils/path.js +0 -18
- package/dist/error-overlay/react-overlay/utils/path.js.map +1 -1
- package/package.json +3 -3
- package/dist/dev-middleware/compatible.api.d.ts +0 -1
- package/dist/dev-middleware/compatible.api.d.ts.map +0 -1
- package/dist/dev-middleware/compatible.api.js +0 -2
- package/dist/dev-middleware/compatible.api.js.map +0 -1
- package/dist/dev-middleware/compatibleapi.d.ts +0 -1
- package/dist/dev-middleware/compatibleapi.d.ts.map +0 -1
- package/dist/dev-middleware/compatibleapi.js +0 -2
- package/dist/dev-middleware/compatibleapi.js.map +0 -1
- package/dist/error-overlay/entry-devserver.d.ts +0 -12
- package/dist/error-overlay/entry-devserver.d.ts.map +0 -1
- package/dist/error-overlay/entry-devserver.js +0 -36
- package/dist/error-overlay/entry-devserver.js.map +0 -1
- package/dist/error-overlay/index.d.ts +0 -5
- package/dist/error-overlay/index.d.ts.map +0 -1
- package/dist/error-overlay/index.js +0 -28
- package/dist/error-overlay/index.js.map +0 -1
- package/dist/error-overlay/react-overlay/stack-frame.d.ts +0 -47
- package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +0 -1
- package/dist/error-overlay/react-overlay/stack-frame.js +0 -82
- package/dist/error-overlay/react-overlay/stack-frame.js.map +0 -1
- package/dist/setup-env-variables.d.ts +0 -2
- package/dist/setup-env-variables.d.ts.map +0 -1
- package/dist/setup-env-variables.js +0 -5
- package/dist/setup-env-variables.js.map +0 -1
- package/dist/test/latest-remotion-version.d.ts +0 -2
- package/dist/test/latest-remotion-version.d.ts.map +0 -1
- package/dist/test/latest-remotion-version.js +0 -7
- package/dist/test/latest-remotion-version.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare function normalizeStringPosix(path: string, allowAboveRoot: boolean): string;
|
|
2
2
|
//# sourceMappingURL=path.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":"AAIA,iBAAS,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,UAmElE"}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
/*
|
|
3
3
|
Source code adapted from https://github.com/browserify/path-browserify and refactored in Typescript. This file is MIT-licensed.
|
|
4
4
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.pathNormalize = void 0;
|
|
7
5
|
function normalizeStringPosix(path, allowAboveRoot) {
|
|
8
6
|
let res = '';
|
|
9
7
|
let lastSegmentLength = 0;
|
|
@@ -79,20 +77,4 @@ function normalizeStringPosix(path, allowAboveRoot) {
|
|
|
79
77
|
}
|
|
80
78
|
return res;
|
|
81
79
|
}
|
|
82
|
-
function pathNormalize(path) {
|
|
83
|
-
if (path.length === 0)
|
|
84
|
-
return '.';
|
|
85
|
-
const isAbsolute = path.charCodeAt(0) === 47; /* / */
|
|
86
|
-
const trailingSeparator = path.charCodeAt(path.length - 1) === 47; /* / */
|
|
87
|
-
// Normalize the path
|
|
88
|
-
path = normalizeStringPosix(path, !isAbsolute);
|
|
89
|
-
if (path.length === 0 && !isAbsolute)
|
|
90
|
-
path = '.';
|
|
91
|
-
if (path.length > 0 && trailingSeparator)
|
|
92
|
-
path += '/';
|
|
93
|
-
if (isAbsolute)
|
|
94
|
-
return '/' + path;
|
|
95
|
-
return path;
|
|
96
|
-
}
|
|
97
|
-
exports.pathNormalize = pathNormalize;
|
|
98
80
|
//# sourceMappingURL=path.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":";AAAA;;EAEE
|
|
1
|
+
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":";AAAA;;EAEE;AAEF,SAAS,oBAAoB,CAAC,IAAY,EAAE,cAAuB;IAClE,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC;IACnB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,IAAI,CAAC;IACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM;YAAE,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;aAC1C,IAAI,IAAI,KAAK,EAAE,CAAC,OAAO;YAAE,MAAM;;YAC/B,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC;QACvB,IAAI,IAAI,KAAK,EAAE,CAAC,OAAO,EAAE;YACxB,IAAI,SAAS,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,KAAK,CAAC,EAAE;gBACtC,OAAO;aACP;iBAAM,IAAI,SAAS,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,KAAK,CAAC,EAAE;gBAC7C,IACC,GAAG,CAAC,MAAM,GAAG,CAAC;oBACd,iBAAiB,KAAK,CAAC;oBACvB,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,OAAO;oBAC7C,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,KA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AS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;gBACxC,iBAAiB,GAAG,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;aACtC;YAED,SAAS,GAAG,CAAC,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;SACT;aAAM,IAAI,IAAI,KAAK,EAAE,CAAC,OAAO,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE;YAC9C,EAAE,IAAI,CAAC;SACP;aAAM;YACN,IAAI,GAAG,CAAC,CAAC,CAAC;SACV;KACD;IAED,OAAO,GAAG,CAAC;AACZ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.400+3b736b911",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"memfs": "3.4.0",
|
|
30
30
|
"mime-types": "2.1.34",
|
|
31
31
|
"react-refresh": "0.9.0",
|
|
32
|
-
"remotion": "3.0.0-lambda.
|
|
32
|
+
"remotion": "3.0.0-lambda.400+3b736b911",
|
|
33
33
|
"semver": "7.3.4",
|
|
34
34
|
"source-map": "0.5.7",
|
|
35
35
|
"source-map-loader": "3.0.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "3b736b911f76ee53084b35b96ae5fda4f3c2a73a"
|
|
67
67
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=compatible.api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatible.api.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatible.api.js","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=compatibleapi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatibleapi.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compatibleapi.js","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const querystring: any;
|
|
2
|
-
declare const url: any;
|
|
3
|
-
declare const SockJS: any;
|
|
4
|
-
declare const formatWebpackMessages: any;
|
|
5
|
-
declare const reportBuildError: any, dismissBuildError: any;
|
|
6
|
-
declare let sockOptions: {
|
|
7
|
-
sockHost?: string;
|
|
8
|
-
sockPort?: string;
|
|
9
|
-
sockPath?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const connection: any;
|
|
12
|
-
//# sourceMappingURL=entry-devserver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry-devserver.d.ts","sourceRoot":"","sources":["../../src/error-overlay/entry-devserver.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,WAAW,KAAyB,CAAC;AAC3C,QAAA,MAAM,GAAG,KAAiB,CAAC;AAC3B,QAAA,MAAM,MAAM,KAA2B,CAAC;AACxC,QAAA,MAAM,qBAAqB,KAAmD,CAAC;AAC/E,QAAA,MAAO,gBAAgB,OAAE,iBAAiB,KAAkC,CAAC;AAE7E,QAAA,IAAI,WAAW,EAAE;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAKP,QAAA,MAAM,UAAU,KAOf,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// @ts-check
|
|
3
|
-
const querystring = require('querystring');
|
|
4
|
-
const url = require('url');
|
|
5
|
-
const SockJS = require('sockjs-client');
|
|
6
|
-
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
7
|
-
const { reportBuildError, dismissBuildError } = require('react-error-overlay');
|
|
8
|
-
let sockOptions = {};
|
|
9
|
-
if (typeof __resourceQuery === 'string' && __resourceQuery.length > 1) {
|
|
10
|
-
sockOptions = querystring.parse(__resourceQuery.substr(1));
|
|
11
|
-
}
|
|
12
|
-
const connection = new SockJS(url.format({
|
|
13
|
-
protocol: window.location.protocol,
|
|
14
|
-
hostname: sockOptions.sockHost || window.location.hostname,
|
|
15
|
-
port: sockOptions.sockPort || window.location.port,
|
|
16
|
-
pathname: sockOptions.sockPath || '/sockjs-node',
|
|
17
|
-
}));
|
|
18
|
-
connection.onmessage = function (e) {
|
|
19
|
-
const { type, data } = JSON.parse(e.data);
|
|
20
|
-
let formatted;
|
|
21
|
-
switch (type) {
|
|
22
|
-
case 'ok':
|
|
23
|
-
dismissBuildError();
|
|
24
|
-
break;
|
|
25
|
-
case 'errors':
|
|
26
|
-
formatted = formatWebpackMessages({
|
|
27
|
-
errors: data,
|
|
28
|
-
warnings: [],
|
|
29
|
-
});
|
|
30
|
-
reportBuildError(formatted.errors[0]);
|
|
31
|
-
break;
|
|
32
|
-
default:
|
|
33
|
-
// Do nothing.
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=entry-devserver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entry-devserver.js","sourceRoot":"","sources":["../../src/error-overlay/entry-devserver.ts"],"names":[],"mappings":";AAAA,YAAY;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,GAAG,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C,MAAM;QACP,QAAQ;QACR,cAAc;KACd;AACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error-overlay/index.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,SAAS,CAAC;AAc9B,qBAAa,kBAAkB;IAC9B,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAsBhC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorOverlayPlugin = void 0;
|
|
4
|
-
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
|
|
5
|
-
const chunkPathBasic = require.resolve('./entry-basic.js');
|
|
6
|
-
const chunkPathDevServer = require.resolve('./entry-devserver.js');
|
|
7
|
-
const deps = [];
|
|
8
|
-
class ErrorOverlayPlugin {
|
|
9
|
-
apply(compiler) {
|
|
10
|
-
const className = this.constructor.name;
|
|
11
|
-
if (compiler.options.mode !== 'development') {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (!compiler.options.devServer) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const devServerEnabled = Boolean(compiler.options.devServer);
|
|
18
|
-
const usingSocket = devServerEnabled && typeof compiler.options.devServer.socket === 'string';
|
|
19
|
-
const sockOptions = {};
|
|
20
|
-
if (devServerEnabled && usingSocket) {
|
|
21
|
-
sockOptions.sockHost = compiler.options.devServer.sockHost;
|
|
22
|
-
sockOptions.sockPath = compiler.options.devServer.sockPath;
|
|
23
|
-
sockOptions.sockPort = compiler.options.devServer.sockPort;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.ErrorOverlayPlugin = ErrorOverlayPlugin;
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/error-overlay/index.ts"],"names":[],"mappings":";;;AAGA,MAAM,sBAAsB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAEjF,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAC3D,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACnE,MAAM,IAAI,GAAa,EAAE,CAAC;AAQ1B,MAAa,kBAAkB;IAC9B,KAAK,CAAC,QAA0B;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAExC,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa,EAAE;YAC5C,OAAO;SACP;QAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE;YAChC,OAAO;SACP;QAED,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7D,MAAM,WAAW,GAChB,gBAAgB,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,QAAQ,CAAC;QAE3E,MAAM,WAAW,GAAgB,EAAE,CAAC;QACpC,IAAI,gBAAgB,IAAI,WAAW,EAAE;YACpC,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3D,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;SAC3D;IACF,CAAC;CACD;AAvBD,gDAuBC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
/** A container holding a script line. */
|
|
8
|
-
declare class ScriptLine {
|
|
9
|
-
/** The line number of this line of source. */
|
|
10
|
-
lineNumber: number;
|
|
11
|
-
/** The content (or value) of this line of source. */
|
|
12
|
-
content: string;
|
|
13
|
-
/** Whether or not this line should be highlighted. Particularly useful for error reporting with context. */
|
|
14
|
-
highlight: boolean;
|
|
15
|
-
constructor(lineNumber: number, content: string, highlight?: boolean);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* A representation of a stack frame.
|
|
19
|
-
*/
|
|
20
|
-
export declare class StackFrame {
|
|
21
|
-
functionName: string | null;
|
|
22
|
-
fileName: string | null;
|
|
23
|
-
lineNumber: number | null;
|
|
24
|
-
columnNumber: number | null;
|
|
25
|
-
_originalFunctionName: string | null;
|
|
26
|
-
_originalFileName: string | null;
|
|
27
|
-
_originalLineNumber: number | null;
|
|
28
|
-
_originalColumnNumber: number | null;
|
|
29
|
-
_scriptCode: ScriptLine[] | null;
|
|
30
|
-
_originalScriptCode: ScriptLine[] | null;
|
|
31
|
-
constructor(functionName?: string | null, fileName?: string | null, lineNumber?: number | null, columnNumber?: number | null, scriptCode?: ScriptLine[] | null, sourceFunctionName?: string | null, sourceFileName?: string | null, sourceLineNumber?: number | null, sourceColumnNumber?: number | null, sourceScriptCode?: ScriptLine[] | null);
|
|
32
|
-
/**
|
|
33
|
-
* Returns the name of this function.
|
|
34
|
-
*/
|
|
35
|
-
getFunctionName(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the source of the frame.
|
|
38
|
-
* This contains the file name, line number, and column number when available.
|
|
39
|
-
*/
|
|
40
|
-
getSource(): string;
|
|
41
|
-
/**
|
|
42
|
-
* Returns a pretty version of this stack frame.
|
|
43
|
-
*/
|
|
44
|
-
toString(): string;
|
|
45
|
-
}
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=stack-frame.d.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UAAU,EAAE,GAAG,IAAW;IAiC7C;;OAEG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAiBnB;;OAEG;IACH,QAAQ,IAAI,MAAM;CAKlB"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.StackFrame = void 0;
|
|
10
|
-
/* @flow */
|
|
11
|
-
/** A container holding a script line. */
|
|
12
|
-
class ScriptLine {
|
|
13
|
-
constructor(lineNumber, content, highlight = false) {
|
|
14
|
-
this.lineNumber = lineNumber;
|
|
15
|
-
this.content = content;
|
|
16
|
-
this.highlight = highlight;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A representation of a stack frame.
|
|
21
|
-
*/
|
|
22
|
-
class StackFrame {
|
|
23
|
-
// eslint-disable-next-line max-params
|
|
24
|
-
constructor(functionName = null, fileName = null, lineNumber = null, columnNumber = null, scriptCode = null, sourceFunctionName = null, sourceFileName = null, sourceLineNumber = null, sourceColumnNumber = null, sourceScriptCode = null) {
|
|
25
|
-
if (functionName && functionName.indexOf('Object.') === 0) {
|
|
26
|
-
functionName = functionName.slice('Object.'.length);
|
|
27
|
-
}
|
|
28
|
-
if (
|
|
29
|
-
// Chrome has a bug with inferring function.name:
|
|
30
|
-
// https://github.com/facebook/create-react-app/issues/2097
|
|
31
|
-
// Let's ignore a meaningless name we get for top-level modules.
|
|
32
|
-
functionName === 'friendlySyntaxErrorLabel' ||
|
|
33
|
-
functionName === 'exports.__esModule' ||
|
|
34
|
-
functionName === '<anonymous>' ||
|
|
35
|
-
!functionName) {
|
|
36
|
-
functionName = null;
|
|
37
|
-
}
|
|
38
|
-
this.functionName = functionName;
|
|
39
|
-
this.fileName = fileName;
|
|
40
|
-
this.lineNumber = lineNumber;
|
|
41
|
-
this.columnNumber = columnNumber;
|
|
42
|
-
this._originalFunctionName = sourceFunctionName;
|
|
43
|
-
this._originalFileName = sourceFileName;
|
|
44
|
-
this._originalLineNumber = sourceLineNumber;
|
|
45
|
-
this._originalColumnNumber = sourceColumnNumber;
|
|
46
|
-
this._scriptCode = scriptCode;
|
|
47
|
-
this._originalScriptCode = sourceScriptCode;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns the name of this function.
|
|
51
|
-
*/
|
|
52
|
-
getFunctionName() {
|
|
53
|
-
return this.functionName || '(anonymous function)';
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns the source of the frame.
|
|
57
|
-
* This contains the file name, line number, and column number when available.
|
|
58
|
-
*/
|
|
59
|
-
getSource() {
|
|
60
|
-
let str = '';
|
|
61
|
-
if (this.fileName !== null) {
|
|
62
|
-
str += this.fileName + ':';
|
|
63
|
-
}
|
|
64
|
-
if (this.lineNumber !== null) {
|
|
65
|
-
str += this.lineNumber + ':';
|
|
66
|
-
}
|
|
67
|
-
if (this.columnNumber !== null) {
|
|
68
|
-
str += this.columnNumber + ':';
|
|
69
|
-
}
|
|
70
|
-
return str.slice(0, -1);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns a pretty version of this stack frame.
|
|
74
|
-
*/
|
|
75
|
-
toString() {
|
|
76
|
-
const functionName = this.getFunctionName();
|
|
77
|
-
const source = this.getSource();
|
|
78
|
-
return `${functionName}${source ? ` (${source})` : ``}`;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.StackFrame = StackFrame;
|
|
82
|
-
//# sourceMappingURL=stack-frame.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stack-frame.js","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/st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B,CAAC;QAEhD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,eAAe;QACd,OAAO,IAAI,CAAC,YAAY,IAAI,sBAAsB,CAAC;IACpD,CAAC;IAED;;;OAGG;IACH,SAAS;QACR,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC3B,GAAG,IAAI,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;SAC3B;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,EAAE;YAC7B,GAAG,IAAI,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;SAC7B;QAED,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,EAAE;YAC/B,GAAG,IAAI,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;SAC/B;QAED,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,QAAQ;QACP,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACzD,CAAC;CACD;AA9FD,gCA8FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-env-variables.d.ts","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-env-variables.js","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAEnC,oBAAS,CAAC,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"latest-remotion-version.d.ts","sourceRoot":"","sources":["../../src/test/latest-remotion-version.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const get_latest_remotion_version_1 = require("../get-latest-remotion-version");
|
|
4
|
-
test('Should be able to get a Remotion version', async () => {
|
|
5
|
-
expect(await (0, get_latest_remotion_version_1.getLatestRemotionVersion)()).toMatch(/(([0-9]+)\.([0-9]+)\.([0-9]+))/);
|
|
6
|
-
});
|
|
7
|
-
//# sourceMappingURL=latest-remotion-version.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"latest-remotion-version.js","sourceRoot":"","sources":["../../src/test/latest-remotion-version.ts"],"names":[],"mappings":";;AAAA,gFAAwE;AAExE,IAAI,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,CAAC,MAAM,IAAA,sDAAwB,GAAE,CAAC,CAAC,OAAO,CAC/C,gCAAgC,CAChC,CAAC;AACH,CAAC,CAAC,CAAC"}
|