@remotion/bundler 2.6.15 → 2.6.16
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/dev-middleware/compatible.api.d.ts +1 -0
- package/dist/dev-middleware/compatible.api.d.ts.map +1 -0
- package/dist/dev-middleware/compatible.api.js +2 -0
- package/dist/dev-middleware/compatible.api.js.map +1 -0
- package/dist/dev-middleware/compatibleapi.d.ts +1 -0
- package/dist/dev-middleware/compatibleapi.d.ts.map +1 -0
- package/dist/dev-middleware/compatibleapi.js +2 -0
- package/dist/dev-middleware/compatibleapi.js.map +1 -0
- package/dist/error-overlay/entry-devserver.d.ts +12 -0
- package/dist/error-overlay/entry-devserver.d.ts.map +1 -0
- package/dist/error-overlay/entry-devserver.js +36 -0
- package/dist/error-overlay/entry-devserver.js.map +1 -0
- package/dist/error-overlay/index.d.ts +5 -0
- package/dist/error-overlay/index.d.ts.map +1 -0
- package/dist/error-overlay/index.js +28 -0
- package/dist/error-overlay/index.js.map +1 -0
- package/dist/error-overlay/react-overlay/stack-frame.d.ts +47 -0
- package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +1 -0
- package/dist/error-overlay/react-overlay/stack-frame.js +82 -0
- package/dist/error-overlay/react-overlay/stack-frame.js.map +1 -0
- package/dist/error-overlay/react-overlay/utils/mapper.d.ts +16 -0
- package/dist/error-overlay/react-overlay/utils/mapper.d.ts.map +1 -0
- package/dist/error-overlay/react-overlay/utils/mapper.js +61 -0
- package/dist/error-overlay/react-overlay/utils/mapper.js.map +1 -0
- package/dist/error-overlay/react-overlay/utils/path.d.ts +2 -0
- package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -0
- package/dist/error-overlay/react-overlay/utils/path.js +98 -0
- package/dist/error-overlay/react-overlay/utils/path.js.map +1 -0
- package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts +3 -0
- package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts.map +1 -0
- package/dist/error-overlay/react-overlay/utils/settle-promise.js +20 -0
- package/dist/error-overlay/react-overlay/utils/settle-promise.js.map +1 -0
- package/dist/setup-env-variables.d.ts +2 -0
- package/dist/setup-env-variables.d.ts.map +1 -0
- package/dist/setup-env-variables.js +5 -0
- package/dist/setup-env-variables.js.map +1 -0
- package/dist/test/latest-remotion-version.d.ts +2 -0
- package/dist/test/latest-remotion-version.d.ts.map +1 -0
- package/dist/test/latest-remotion-version.js +7 -0
- package/dist/test/latest-remotion-version.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=compatible.api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatible.api.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatible.api.js","sourceRoot":"","sources":["../../src/dev-middleware/compatible.api.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=compatibleapi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibleapi.d.ts","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibleapi.js","sourceRoot":"","sources":["../../src/dev-middleware/compatibleapi.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACxC,MAAM,qBAAqB,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC/E,MAAM,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE7E,IAAI,WAAW,GAIX,EAAE,CAAC;AACP,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;IACtE,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,UAAU,GAAG,IAAI,MAAM,CAC5B,GAAG,CAAC,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAC1D,IAAI,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI;IAClD,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,cAAc;CAChD,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,UAAU,CAAiB;IACjD,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,SAAS,CAAC;IACd,QAAQ,IAAI,EAAE;QACb,KAAK,IAAI;YACR,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACP,KAAK,QAAQ;YACZ,SAAS,GAAG,qBAAqB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,EAAE;aACZ,CAAC,CAAC;YACH,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM;QACP,QAAQ;QACR,cAAc;KACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-frame.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/stack-frame.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,yCAAyC;AACzC,cAAM,UAAU;IACf,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,4GAA4G;IAC5G,SAAS,EAAE,OAAO,CAAC;gBAEP,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,UAAQ;CAKlE;AAED;;GAEG;AACH,qBAAa,UAAU;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;gBAIxC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,QAAQ,GAAE,MAAM,GAAG,IAAW,EAC9B,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,UAAU,GAAE,UAAU,EAAE,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,cAAc,GAAE,MAAM,GAAG,IAAW,EACpC,gBAAgB,GAAE,MAAM,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,gBAAgB,GAAE,UAAU,EAAE,GAAG,IAAW;IAiC7C;;OAEG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAiBnB;;OAEG;IACH,QAAQ,IAAI,MAAM;CAKlB"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-frame.js","sourceRoot":"","sources":["../../../src/error-overlay/react-overlay/stack-frame.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,WAAW;AAEX,yCAAyC;AACzC,MAAM,UAAU;IAQf,YAAY,UAAkB,EAAE,OAAe,EAAE,SAAS,GAAG,KAAK;QACjE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;CACD;AAED;;GAEG;AACH,MAAa,UAAU;IActB,sCAAsC;IACtC,YACC,eAA8B,IAAI,EAClC,WAA0B,IAAI,EAC9B,aAA4B,IAAI,EAChC,eAA8B,IAAI,EAClC,aAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,iBAAgC,IAAI,EACpC,mBAAkC,IAAI,EACtC,qBAAoC,IAAI,EACxC,mBAAwC,IAAI;QAE5C,IAAI,YAAY,IAAI,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YAC1D,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACpD;QAED;QACC,iDAAiD;QACjD,2DAA2D;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C,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { StackFrame } from './stack-frame';
|
|
8
|
+
/**
|
|
9
|
+
* Enhances a set of <code>StackFrame</code>s with their original positions and code (when available).
|
|
10
|
+
* @param {StackFrame[]} frames A set of <code>StackFrame</code>s which contain (generated) code positions.
|
|
11
|
+
* @param {number} [contextLines=3] The number of lines to provide before and after the line specified in the <code>StackFrame</code>.
|
|
12
|
+
*/
|
|
13
|
+
declare function map(frames: StackFrame[], contextLines?: number): Promise<StackFrame[]>;
|
|
14
|
+
export { map };
|
|
15
|
+
export default map;
|
|
16
|
+
//# sourceMappingURL=mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/mapper.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAKzC;;;;GAIG;AACH,iBAAe,GAAG,CACjB,MAAM,EAAE,UAAU,EAAE,EACpB,YAAY,SAAI,GACd,OAAO,CAAC,UAAU,EAAE,CAAC,CA4DvB;AAED,OAAO,EAAC,GAAG,EAAC,CAAC;AACb,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.map = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) 2015-present, Facebook, Inc.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const stack_frame_1 = require("./stack-frame");
|
|
14
|
+
const get_source_map_1 = require("./get-source-map");
|
|
15
|
+
const get_lines_around_1 = require("./get-lines-around");
|
|
16
|
+
const settle_promise_1 = require("./settle-promise");
|
|
17
|
+
/**
|
|
18
|
+
* Enhances a set of <code>StackFrame</code>s with their original positions and code (when available).
|
|
19
|
+
* @param {StackFrame[]} frames A set of <code>StackFrame</code>s which contain (generated) code positions.
|
|
20
|
+
* @param {number} [contextLines=3] The number of lines to provide before and after the line specified in the <code>StackFrame</code>.
|
|
21
|
+
*/
|
|
22
|
+
async function map(frames, contextLines = 3) {
|
|
23
|
+
const cache = {};
|
|
24
|
+
const files = [];
|
|
25
|
+
frames.forEach((frame) => {
|
|
26
|
+
const { fileName } = frame;
|
|
27
|
+
if (fileName === null || fileName === undefined) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (files.indexOf(fileName) !== -1) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
files.push(fileName);
|
|
34
|
+
});
|
|
35
|
+
await (0, settle_promise_1.settle)(files.map(async (fileName) => {
|
|
36
|
+
const fetchUrl = fileName.indexOf('webpack-internal:') === 0
|
|
37
|
+
? `/__get-internal-source?fileName=${encodeURIComponent(fileName)}`
|
|
38
|
+
: fileName;
|
|
39
|
+
const fileSource = await fetch(fetchUrl).then((r) => r.text());
|
|
40
|
+
const _map = await (0, get_source_map_1.getSourceMap)(fileName, fileSource);
|
|
41
|
+
cache[fileName] = { fileSource, map: _map };
|
|
42
|
+
}));
|
|
43
|
+
return frames.map((frame) => {
|
|
44
|
+
const { functionName, fileName, lineNumber, columnNumber } = frame;
|
|
45
|
+
const { map: _map, fileSource } = cache[fileName] || {};
|
|
46
|
+
if (_map === null ||
|
|
47
|
+
_map === undefined ||
|
|
48
|
+
columnNumber === null ||
|
|
49
|
+
columnNumber === undefined ||
|
|
50
|
+
lineNumber === null ||
|
|
51
|
+
lineNumber === undefined) {
|
|
52
|
+
return frame;
|
|
53
|
+
}
|
|
54
|
+
const { source, line, column } = _map.getOriginalPosition(lineNumber, columnNumber);
|
|
55
|
+
const originalSource = source === null || source === undefined ? [] : _map.getSource(source);
|
|
56
|
+
return new stack_frame_1.StackFrame(functionName, fileName, lineNumber, columnNumber, (0, get_lines_around_1.getLinesAround)(lineNumber, contextLines, fileSource), functionName, source, line, column, (0, get_lines_around_1.getLinesAround)(line, contextLines, originalSource));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
exports.map = map;
|
|
60
|
+
exports.default = map;
|
|
61
|
+
//# sourceMappingURL=mapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/mapper.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAEF;;;;;GAKG;AAEH,+CAAyC;AACzC,qDAAyD;AACzD,yDAAkD;AAClD,qDAAwC;AAExC;;;;GAIG;AACH,KAAK,UAAU,GAAG,CACjB,MAAoB,EACpB,YAAY,GAAG,CAAC;IAEhB,MAAM,KAAK,GAA0D,EAAE,CAAC;IACxE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;QACzB,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;YAChD,OAAO;SACP;QAED,IAAI,KA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AI,CAAC,mBAAmB,CACtD,UAAU,EACV,YAAY,CACZ,CAAC;QACF,MAAM,cAAc,GACnB,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACvE,OAAO,IAAI,wBAAU,CACpB,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,IAAA,iCAAc,EAAC,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,EACpD,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,MAAM,EACN,IAAA,iCAAc,EAAC,IAAI,EAAE,YAAY,EAAE,cAAc,CAAC,CAClD,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC;AAEO,kBAAG;AACX,kBAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":"AAyEA,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,UAczC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Source code adapted from https://github.com/browserify/path-browserify and refactored in Typescript. This file is MIT-licensed.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.pathNormalize = void 0;
|
|
7
|
+
function normalizeStringPosix(path, allowAboveRoot) {
|
|
8
|
+
let res = '';
|
|
9
|
+
let lastSegmentLength = 0;
|
|
10
|
+
let lastSlash = -1;
|
|
11
|
+
let dots = 0;
|
|
12
|
+
let code;
|
|
13
|
+
for (let i = 0; i <= path.length; ++i) {
|
|
14
|
+
if (i < path.length)
|
|
15
|
+
code = path.charCodeAt(i);
|
|
16
|
+
else if (code === 47 /* / */)
|
|
17
|
+
break;
|
|
18
|
+
else
|
|
19
|
+
code = 47 /* / */;
|
|
20
|
+
if (code === 47 /* / */) {
|
|
21
|
+
if (lastSlash === i - 1 || dots === 1) {
|
|
22
|
+
// NOOP
|
|
23
|
+
}
|
|
24
|
+
else if (lastSlash !== i - 1 && dots === 2) {
|
|
25
|
+
if (res.length < 2 ||
|
|
26
|
+
lastSegmentLength !== 2 ||
|
|
27
|
+
res.charCodeAt(res.length - 1) !== 46 /* . */ ||
|
|
28
|
+
res.charCodeAt(res.length - 2) !== 46 /* . */) {
|
|
29
|
+
if (res.length > 2) {
|
|
30
|
+
const lastSlashIndex = res.lastIndexOf('/');
|
|
31
|
+
// eslint-disable-next-line max-depth
|
|
32
|
+
if (lastSlashIndex !== res.length - 1) {
|
|
33
|
+
// eslint-disable-next-line max-depth
|
|
34
|
+
if (lastSlashIndex === -1) {
|
|
35
|
+
res = '';
|
|
36
|
+
lastSegmentLength = 0;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
res = res.slice(0, lastSlashIndex);
|
|
40
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
|
|
41
|
+
}
|
|
42
|
+
lastSlash = i;
|
|
43
|
+
dots = 0;
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else if (res.length === 2 || res.length === 1) {
|
|
48
|
+
res = '';
|
|
49
|
+
lastSegmentLength = 0;
|
|
50
|
+
lastSlash = i;
|
|
51
|
+
dots = 0;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (allowAboveRoot) {
|
|
56
|
+
if (res.length > 0)
|
|
57
|
+
res += '/..';
|
|
58
|
+
else
|
|
59
|
+
res = '..';
|
|
60
|
+
lastSegmentLength = 2;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
if (res.length > 0)
|
|
65
|
+
res += '/' + path.slice(lastSlash + 1, i);
|
|
66
|
+
else
|
|
67
|
+
res = path.slice(lastSlash + 1, i);
|
|
68
|
+
lastSegmentLength = i - lastSlash - 1;
|
|
69
|
+
}
|
|
70
|
+
lastSlash = i;
|
|
71
|
+
dots = 0;
|
|
72
|
+
}
|
|
73
|
+
else if (code === 46 /* . */ && dots !== -1) {
|
|
74
|
+
++dots;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
dots = -1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return res;
|
|
81
|
+
}
|
|
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
|
+
//# sourceMappingURL=path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,MA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C,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO;IAE1E,qBAAqB;IACrB,IAAI,GAAG,oBAAoB,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,CAAC;IAE/C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,UAAU;QAAE,IAAI,GAAG,GAAG,CAAC;IACjD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB;QAAE,IAAI,IAAI,GAAG,CAAC;IAEtD,IAAI,UAAU;QAAE,OAAO,GAAG,GAAG,IAAI,CAAC;IAClC,OAAO,IAAI,CAAC;AACb,CAAC;AAdD,sCAcC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settle-promise.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/settle-promise.ts"],"names":[],"mappings":"AAAA,iBAAS,MAAM,CACd,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,GAC7C,OAAO,CAAC,OAAO,CAAC,CAiBlB;AAED,OAAO,EAAC,MAAM,EAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.settle = void 0;
|
|
4
|
+
function settle(val) {
|
|
5
|
+
if (!Array.isArray(val))
|
|
6
|
+
val = [val];
|
|
7
|
+
return Promise.all(val.map((p) => p
|
|
8
|
+
.then((value) => ({
|
|
9
|
+
isFulfilled: true,
|
|
10
|
+
isRejected: false,
|
|
11
|
+
value,
|
|
12
|
+
}))
|
|
13
|
+
.catch((reason) => ({
|
|
14
|
+
isFulfilled: false,
|
|
15
|
+
isRejected: true,
|
|
16
|
+
reason,
|
|
17
|
+
}))));
|
|
18
|
+
}
|
|
19
|
+
exports.settle = settle;
|
|
20
|
+
//# sourceMappingURL=settle-promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settle-promise.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/settle-promise.ts"],"names":[],"mappings":";;;AAAA,SAAS,MAAM,CACd,GAA+C;IAE/C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,GAAG,CACjB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACb,CAAC;SACC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjB,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;QACjB,KAAK;KACL,CAAC,CAAC;SACF,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACnB,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,IAAI;QAChB,MAAM;KACN,CAAC,CAAC,CACJ,CACD,CAAC;AACH,CAAC;AAEO,wBAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-env-variables.d.ts","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"latest-remotion-version.d.ts","sourceRoot":"","sources":["../../src/test/latest-remotion-version.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.16",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"memfs": "3.4.0",
|
|
33
33
|
"mime-types": "2.1.34",
|
|
34
34
|
"react-refresh": "0.9.0",
|
|
35
|
-
"remotion": "2.6.
|
|
35
|
+
"remotion": "2.6.16",
|
|
36
36
|
"semver": "7.3.4",
|
|
37
37
|
"source-map": "0.6.1",
|
|
38
38
|
"source-map-loader": "3.0.0",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"webpack": "5.60.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"react": "
|
|
44
|
-
"react-dom": "
|
|
43
|
+
"react": ">=16.8.0",
|
|
44
|
+
"react-dom": ">=16.8.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@jonny/eslint-config": "^2.1.251",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "96b2a8f042ece45305601b1f240b56f35fc9fcd4"
|
|
77
77
|
}
|