@remotion/bundler 3.0.0-lambda.424 → 3.0.0-lambda.444

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.
Files changed (51) hide show
  1. package/dist/dev-middleware/range-parser.d.ts +1 -1
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +6 -3
  5. package/dist/index.js.map +1 -1
  6. package/dist/override-webpack.d.ts +1 -1
  7. package/dist/override-webpack.js +1 -1
  8. package/dist/renderEntry.d.ts.map +1 -1
  9. package/dist/renderEntry.js +8 -4
  10. package/dist/renderEntry.js.map +1 -1
  11. package/package.json +3 -3
  12. package/dist/dev-middleware/compatible.api.d.ts +0 -1
  13. package/dist/dev-middleware/compatible.api.d.ts.map +0 -1
  14. package/dist/dev-middleware/compatible.api.js +0 -2
  15. package/dist/dev-middleware/compatible.api.js.map +0 -1
  16. package/dist/dev-middleware/compatibleapi.d.ts +0 -1
  17. package/dist/dev-middleware/compatibleapi.d.ts.map +0 -1
  18. package/dist/dev-middleware/compatibleapi.js +0 -2
  19. package/dist/dev-middleware/compatibleapi.js.map +0 -1
  20. package/dist/error-overlay/entry-devserver.d.ts +0 -12
  21. package/dist/error-overlay/entry-devserver.d.ts.map +0 -1
  22. package/dist/error-overlay/entry-devserver.js +0 -36
  23. package/dist/error-overlay/entry-devserver.js.map +0 -1
  24. package/dist/error-overlay/index.d.ts +0 -5
  25. package/dist/error-overlay/index.d.ts.map +0 -1
  26. package/dist/error-overlay/index.js +0 -28
  27. package/dist/error-overlay/index.js.map +0 -1
  28. package/dist/error-overlay/react-overlay/stack-frame.d.ts +0 -47
  29. package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +0 -1
  30. package/dist/error-overlay/react-overlay/stack-frame.js +0 -82
  31. package/dist/error-overlay/react-overlay/stack-frame.js.map +0 -1
  32. package/dist/error-overlay/react-overlay/utils/mapper.d.ts +0 -16
  33. package/dist/error-overlay/react-overlay/utils/mapper.d.ts.map +0 -1
  34. package/dist/error-overlay/react-overlay/utils/mapper.js +0 -61
  35. package/dist/error-overlay/react-overlay/utils/mapper.js.map +0 -1
  36. package/dist/error-overlay/react-overlay/utils/path.d.ts +0 -2
  37. package/dist/error-overlay/react-overlay/utils/path.d.ts.map +0 -1
  38. package/dist/error-overlay/react-overlay/utils/path.js +0 -98
  39. package/dist/error-overlay/react-overlay/utils/path.js.map +0 -1
  40. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts +0 -3
  41. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts.map +0 -1
  42. package/dist/error-overlay/react-overlay/utils/settle-promise.js +0 -20
  43. package/dist/error-overlay/react-overlay/utils/settle-promise.js.map +0 -1
  44. package/dist/setup-env-variables.d.ts +0 -2
  45. package/dist/setup-env-variables.d.ts.map +0 -1
  46. package/dist/setup-env-variables.js +0 -5
  47. package/dist/setup-env-variables.js.map +0 -1
  48. package/dist/test/latest-remotion-version.d.ts +0 -2
  49. package/dist/test/latest-remotion-version.d.ts.map +0 -1
  50. package/dist/test/latest-remotion-version.js +0 -7
  51. package/dist/test/latest-remotion-version.js.map +0 -1
@@ -11,6 +11,6 @@ declare type Range = {
11
11
  declare type Ranges = Range[] & {
12
12
  type?: string;
13
13
  };
14
- export declare function parseRange(size: number, str: string | string[]): -1 | -2 | Ranges;
14
+ export declare function parseRange(size: number, str: string | string[]): -1 | Ranges | -2;
15
15
  export {};
16
16
  //# sourceMappingURL=range-parser.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { overrideWebpackConfig } from './override-webpack';
2
1
  import esbuild = require('esbuild');
2
+ import mimeTypes from 'mime-types';
3
3
  export declare const BundlerInternals: {
4
4
  startServer: (entry: string, userDefinedComponent: string, options?: {
5
5
  webpackOverride?: import("remotion").WebpackOverrideFn | undefined;
@@ -17,9 +17,9 @@ export declare const BundlerInternals: {
17
17
  path: string;
18
18
  }[];
19
19
  esbuild: typeof esbuild;
20
+ mimeTypes: typeof mimeTypes;
20
21
  };
21
22
  export type { ProjectInfo } from './project-info';
22
23
  export { bundle } from './bundler';
23
- export { overrideWebpackConfig };
24
24
  export { PackageManager } from './get-package-manager';
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAGzD,OAAO,OAAO,GAAG,QAAQ,SAAS,CAAC,CAAC;AAEpC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CAQ5B,CAAC;AAEF,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,qBAAqB,EAAC,CAAC;AAC/B,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,OAAO,GAAG,QAAQ,SAAS,CAAC,CAAC;AACpC,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;CAS5B,CAAC;AAEF,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,cAAc,EAAC,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.overrideWebpackConfig = exports.bundle = exports.BundlerInternals = void 0;
6
+ exports.bundle = exports.BundlerInternals = void 0;
4
7
  const get_latest_remotion_version_1 = require("./get-latest-remotion-version");
5
8
  const get_package_manager_1 = require("./get-package-manager");
6
- const override_webpack_1 = require("./override-webpack");
7
- Object.defineProperty(exports, "overrideWebpackConfig", { enumerable: true, get: function () { return override_webpack_1.overrideWebpackConfig; } });
8
9
  const start_server_1 = require("./start-server");
9
10
  const webpack_cache_1 = require("./webpack-cache");
10
11
  const esbuild = require("esbuild");
12
+ const mime_types_1 = __importDefault(require("mime-types"));
11
13
  exports.BundlerInternals = {
12
14
  startServer: start_server_1.startServer,
13
15
  cacheExists: webpack_cache_1.cacheExists,
@@ -16,6 +18,7 @@ exports.BundlerInternals = {
16
18
  getPackageManager: get_package_manager_1.getPackageManager,
17
19
  lockFilePaths: get_package_manager_1.lockFilePaths,
18
20
  esbuild,
21
+ mimeTypes: mime_types_1.default,
19
22
  };
20
23
  var bundler_1 = require("./bundler");
21
24
  Object.defineProperty(exports, "bundle", { enumerable: true, get: function () { return bundler_1.bundle; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+EAAuE;AACvE,+DAAuE;AACvE,yDAAyD;AAkBjD,sGAlBA,wCAAqB,OAkBA;AAjB7B,iDAA2C;AAC3C,mDAAwD;AACxD,mCAAoC;AAEvB,QAAA,gBAAgB,GAAG;IAC/B,WAAW,EAAX,0BAAW;IACX,WAAW,EAAX,2BAAW;IACX,UAAU,EAAV,0BAAU;IACV,wBAAwB,EAAxB,sDAAwB;IACxB,iBAAiB,EAAjB,uCAAiB;IACjB,aAAa,EAAb,mCAAa;IACb,OAAO;CACP,CAAC;AAIF,qCAAiC;AAAzB,iGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,+EAAuE;AACvE,+DAAuE;AACvE,iDAA2C;AAC3C,mDAAwD;AACxD,mCAAoC;AACpC,4DAAmC;AAEtB,QAAA,gBAAgB,GAAG;IAC/B,WAAW,EAAX,0BAAW;IACX,WAAW,EAAX,2BAAW;IACX,UAAU,EAAV,0BAAU;IACV,wBAAwB,EAAxB,sDAAwB;IACxB,iBAAiB,EAAjB,uCAAiB;IACjB,aAAa,EAAb,mCAAa;IACb,OAAO;IACP,SAAS,EAAT,oBAAS;CACT,CAAC;AAIF,qCAAiC;AAAzB,iGAAA,MAAM,OAAA"}
@@ -1,6 +1,6 @@
1
1
  import { WebpackOverrideFn } from 'remotion';
2
2
  /**
3
- * Please use Config.Bundling.overrideWebpack() from now on.
3
+ * Please use Config.Bundling.overrideWebpackConfig() from now on.
4
4
  * See: https://www.remotion.dev/docs/webpack/
5
5
  * @deprecated
6
6
  */
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.overrideWebpackConfig = void 0;
4
4
  const remotion_1 = require("remotion");
5
5
  /**
6
- * Please use Config.Bundling.overrideWebpack() from now on.
6
+ * Please use Config.Bundling.overrideWebpackConfig() from now on.
7
7
  * See: https://www.remotion.dev/docs/webpack/
8
8
  * @deprecated
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"renderEntry.d.ts","sourceRoot":"","sources":["../src/renderEntry.tsx"],"names":[],"mappings":"AAQA,OAAO,EACN,WAAW,EAQX,MAAM,UAAU,CAAC;AA4HlB,eAAO,MAAM,sBAAsB,UAAW,WAAW,SAGxD,CAAC"}
1
+ {"version":3,"file":"renderEntry.d.ts","sourceRoot":"","sources":["../src/renderEntry.tsx"],"names":[],"mappings":"AAQA,OAAO,EACN,WAAW,EAQX,MAAM,UAAU,CAAC;AA+HlB,eAAO,MAAM,sBAAsB,UAAW,WAAW,SAGxD,CAAC"}
@@ -12,10 +12,10 @@ const Root = remotion_1.Internals.getRoot();
12
12
  if (!Root) {
13
13
  throw new Error('Root has not been registered.');
14
14
  }
15
- const handle = (0, remotion_1.delayRender)();
15
+ const handle = (0, remotion_1.delayRender)('Loading root component');
16
16
  const Fallback = () => {
17
17
  (0, react_1.useEffect)(() => {
18
- const fallback = (0, remotion_1.delayRender)();
18
+ const fallback = (0, remotion_1.delayRender)('Waiting for Root component to unsuspend');
19
19
  return () => (0, remotion_1.continueRender)(fallback);
20
20
  }, []);
21
21
  return null;
@@ -26,12 +26,16 @@ const GetVideo = ({ state }) => {
26
26
  const compositions = (0, react_1.useContext)(remotion_1.Internals.CompositionManager);
27
27
  const [Component, setComponent] = (0, react_1.useState)(null);
28
28
  (0, react_1.useEffect)(() => {
29
- var _a, _b;
29
+ var _a;
30
30
  if (state.type !== 'composition') {
31
31
  return;
32
32
  }
33
33
  if (!video && compositions.compositions.length > 0) {
34
- compositions.setCurrentComposition((_b = (_a = compositions.compositions.find((c) => c.id === state.compositionName)) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : null);
34
+ const foundComposition = compositions.compositions.find((c) => c.id === state.compositionName);
35
+ if (!foundComposition) {
36
+ throw new Error('Found no composition with the name ' + state.compositionName);
37
+ }
38
+ compositions.setCurrentComposition((_a = foundComposition === null || foundComposition === void 0 ? void 0 : foundComposition.id) !== null && _a !== void 0 ? _a : null);
35
39
  }
36
40
  }, [compositions, compositions.compositions, state, video]);
37
41
  const fetchComponent = (0, react_1.useCallback)(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"renderEntry.js","sourceRoot":"","sources":["../src/renderEntry.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,yCAAiC;AACjC,uCASkB;AAClB,+CAA2D;AAC3D,kDAA6C;AAE7C,oBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,oBAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9E,MAAM,IAAI,GAAG,oBAAS,CAAC,OAAO,EAAE,CAAC;AAEjC,IAAI,CAAC,IAAI,EAAE;IACV,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;CACjD;AAED,MAAM,MAAM,GAAG,IAAA,sBAAW,GAAE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+a8ef3231a",
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": "3.0.0-lambda.424+994a31b6b",
35
+ "remotion": "3.0.0-lambda.444+a8ef3231a",
36
36
  "semver": "7.3.4",
37
37
  "source-map": "0.6.1",
38
38
  "source-map-loader": "3.0.0",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "994a31b6bfd812c7552c8d157c14c59667f8efce"
76
+ "gitHead": "a8ef3231acb202a8992e83fb38f56532395021aa"
77
77
  }
@@ -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,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=compatible.api.js.map
@@ -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,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=compatibleapi.js.map
@@ -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,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"}
@@ -1,5 +0,0 @@
1
- import webpack from 'webpack';
2
- export declare class ErrorOverlayPlugin {
3
- apply(compiler: webpack.Compiler): void;
4
- }
5
- //# sourceMappingURL=index.d.ts.map
@@ -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.ts.map
@@ -1 +0,0 @@
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"}
@@ -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/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;QAC3D,gEAAgE;QAChE,YAAY,KAAK,0BAA0B;YAC3C,YAAY,KAAK,oBAAoB;YACrC,YAAY,KAAK,aAAa;YAC9B,CAAC,YAAY,EACZ;YACD,YAAY,GAAG,IAAI,CAAC;SACpB;QAED,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QAEjC,IAAI,CAAC,qBAAqB,GAAG,kBAAkB,CAAC;QAChD,IAAI,CAAC,iBAAiB,GAAG,cAAc,CAAC;QACxC,IAAI,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;QAC5C,IAAI,CAAC,qBAAqB,GAAG,kBAAkB,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,16 +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
- 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
@@ -1 +0,0 @@
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"}
@@ -1,61 +0,0 @@
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
@@ -1 +0,0 @@
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,C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Y,KAAK,IAAI;YACrB,YAAY,KAAK,SAAS;YAC1B,UAAU,KAAK,IAAI;YACnB,UAAU,KAAK,SAAS,EACvB;YACD,OAAO,KAAK,CAAC;SACb;QAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAC,GAAG,IAAI,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"}
@@ -1,2 +0,0 @@
1
- export declare function pathNormalize(path: string): string;
2
- //# sourceMappingURL=path.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,98 +0,0 @@
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
@@ -1 +0,0 @@
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,KAA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S,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;AAED,SAAgB,aAAa,CAAC,IAAY;IACzC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IAElC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO;IACrD,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,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"}
@@ -1,3 +0,0 @@
1
- declare function settle(val: Array<Promise<unknown>> | Promise<unknown>): Promise<unknown>;
2
- export { settle };
3
- //# sourceMappingURL=settle-promise.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=setup-env-variables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-env-variables.d.ts","sourceRoot":"","sources":["../src/setup-env-variables.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const remotion_1 = require("remotion");
4
- remotion_1.Internals.setupEnvVariables();
5
- //# sourceMappingURL=setup-env-variables.js.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=latest-remotion-version.d.ts.map
@@ -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"}