remotion 3.0.0-lambda.277 → 3.0.0-lambda.297
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/coverage/coverage-summary.json +10 -10
- package/dist/Still.d.ts +1 -0
- package/dist/Still.d.ts.map +1 -1
- package/dist/audio/Audio.d.ts +1 -1
- package/dist/audio/AudioForDevelopment.d.ts +1 -1
- package/dist/audio/AudioForRendering.d.ts +1 -1
- package/dist/audio/audio-buffer-to-wav.d.ts +15 -0
- package/dist/audio/audio-buffer-to-wav.d.ts.map +1 -0
- package/dist/audio/audio-buffer-to-wav.js +91 -0
- package/dist/audio/audio-buffer-to-wav.js.map +1 -0
- package/dist/audio/audio-url-helpers.d.ts +2 -0
- package/dist/audio/audio-url-helpers.d.ts.map +1 -0
- package/dist/audio/audio-url-helpers.js +17 -0
- package/dist/audio/audio-url-helpers.js.map +1 -0
- package/dist/config/image-format.d.ts +1 -1
- package/dist/config/index.d.ts +8 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/log.d.ts +1 -1
- package/dist/config/timeout.d.ts +3 -0
- package/dist/config/timeout.d.ts.map +1 -0
- package/dist/config/timeout.js +18 -0
- package/dist/config/timeout.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +11 -6
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +7 -0
- package/dist/internals.js.map +1 -1
- package/dist/ready-manager.d.ts.map +1 -1
- package/dist/ready-manager.js +6 -3
- package/dist/ready-manager.js.map +1 -1
- package/dist/timeout.d.ts +4 -0
- package/dist/timeout.d.ts.map +1 -0
- package/dist/timeout.js +14 -0
- package/dist/timeout.js.map +1 -0
- package/dist/video/Video.d.ts +1 -1
- package/dist/video/VideoForDevelopment.d.ts +1 -1
- package/dist/video/VideoForRendering.d.ts +1 -1
- package/package.json +2 -2
- package/dist/component-type.d.ts +0 -1
- package/dist/component-type.d.ts.map +0 -1
- package/dist/component-type.js +0 -2
- package/dist/component-type.js.map +0 -1
- package/dist/serie/flatten-children.d.ts +0 -3
- package/dist/serie/flatten-children.d.ts.map +0 -1
- package/dist/serie/flatten-children.js +0 -19
- package/dist/serie/flatten-children.js.map +0 -1
- package/dist/serie/index.d.ts +0 -12
- package/dist/serie/index.d.ts.map +0 -1
- package/dist/serie/index.js +0 -55
- package/dist/serie/index.js.map +0 -1
- package/dist/setup-environment.d.ts +0 -6
- package/dist/setup-environment.d.ts.map +0 -1
- package/dist/setup-environment.js +0 -47
- package/dist/setup-environment.js.map +0 -1
- package/dist/stagger/index.d.ts +0 -10
- package/dist/stagger/index.d.ts.map +0 -1
- package/dist/stagger/index.js +0 -54
- package/dist/stagger/index.js.map +0 -1
- package/dist/use-current-src.d.ts +0 -3
- package/dist/use-current-src.d.ts.map +0 -1
- package/dist/use-current-src.js +0 -23
- package/dist/use-current-src.js.map +0 -1
- package/dist/use-current-time.d.ts +0 -2
- package/dist/use-current-time.d.ts.map +0 -1
- package/dist/use-current-time.js +0 -12
- package/dist/use-current-time.js.map +0 -1
- package/dist/use-time.d.ts +0 -2
- package/dist/use-time.d.ts.map +0 -1
- package/dist/use-time.js +0 -15
- package/dist/use-time.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{"total": {"lines":{"total":
|
|
1
|
+
{"total": {"lines":{"total":1904,"covered":1424,"skipped":0,"pct":74.78},"statements":{"total":2087,"covered":1587,"skipped":0,"pct":76.04},"functions":{"total":379,"covered":223,"skipped":0,"pct":58.83},"branches":{"total":1083,"covered":755,"skipped":0,"pct":69.71}}
|
|
2
2
|
,"/Users/jonathanburger/remotion/packages/core/src/AbsoluteFill.tsx": {"lines":{"total":6,"covered":2,"skipped":0,"pct":33.33},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":3,"skipped":0,"pct":42.85},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
3
3
|
,"/Users/jonathanburger/remotion/packages/core/src/Composition.tsx": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.42},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":29,"covered":28,"skipped":0,"pct":96.55},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
|
|
4
4
|
,"/Users/jonathanburger/remotion/packages/core/src/CompositionManager.tsx": {"lines":{"total":41,"covered":30,"skipped":0,"pct":73.17},"functions":{"total":28,"covered":13,"skipped":0,"pct":46.42},"statements":{"total":48,"covered":32,"skipped":0,"pct":66.66},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
|
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
,"/Users/jonathanburger/remotion/packages/core/src/get-timeline-clip-name.ts": {"lines":{"total":13,"covered":10,"skipped":0,"pct":76.92},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":14,"covered":11,"skipped":0,"pct":78.57},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.88}}
|
|
19
19
|
,"/Users/jonathanburger/remotion/packages/core/src/index.ts": {"lines":{"total":28,"covered":28,"skipped":0,"pct":100},"functions":{"total":7,"covered":2,"skipped":0,"pct":28.57},"statements":{"total":35,"covered":35,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
20
20
|
,"/Users/jonathanburger/remotion/packages/core/src/initial-frame.ts": {"lines":{"total":6,"covered":3,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":4,"skipped":0,"pct":57.14},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
|
|
21
|
-
,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":
|
|
21
|
+
,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":53,"covered":52,"skipped":0,"pct":98.11},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":53,"covered":52,"skipped":0,"pct":98.11},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
|
|
22
22
|
,"/Users/jonathanburger/remotion/packages/core/src/interpolate.ts": {"lines":{"total":59,"covered":59,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":61,"covered":61,"skipped":0,"pct":100},"branches":{"total":60,"covered":58,"skipped":0,"pct":96.66}}
|
|
23
23
|
,"/Users/jonathanburger/remotion/packages/core/src/interpolateColors.ts": {"lines":{"total":115,"covered":105,"skipped":0,"pct":91.3},"functions":{"total":21,"covered":21,"skipped":0,"pct":100},"statements":{"total":117,"covered":107,"skipped":0,"pct":91.45},"branches":{"total":70,"covered":51,"skipped":0,"pct":72.85}}
|
|
24
24
|
,"/Users/jonathanburger/remotion/packages/core/src/is-approximately-the-same.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
25
25
|
,"/Users/jonathanburger/remotion/packages/core/src/is-audio-codec.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":3,"covered":3,"skipped":0,"pct":100}}
|
|
26
|
-
,"/Users/jonathanburger/remotion/packages/core/src/is-remote-asset.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":4,"covered":2,"skipped":0,"pct":50}}
|
|
27
26
|
,"/Users/jonathanburger/remotion/packages/core/src/multiple-versions-warning.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":4,"covered":2,"skipped":0,"pct":50}}
|
|
28
27
|
,"/Users/jonathanburger/remotion/packages/core/src/nonce.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
29
28
|
,"/Users/jonathanburger/remotion/packages/core/src/play-and-handle-not-allowed-error.ts": {"lines":{"total":18,"covered":1,"skipped":0,"pct":5.55},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":19,"covered":2,"skipped":0,"pct":10.52},"branches":{"total":24,"covered":0,"skipped":0,"pct":0}}
|
|
@@ -52,26 +51,27 @@
|
|
|
52
51
|
,"/Users/jonathanburger/remotion/packages/core/src/wrap-remotion-context.tsx": {"lines":{"total":16,"covered":7,"skipped":0,"pct":43.75},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":8,"skipped":0,"pct":47.05},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
53
52
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/Audio.tsx": {"lines":{"total":23,"covered":21,"skipped":0,"pct":91.3},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":23,"covered":21,"skipped":0,"pct":91.3},"branches":{"total":16,"covered":13,"skipped":0,"pct":81.25}}
|
|
54
53
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForDevelopment.tsx": {"lines":{"total":29,"covered":10,"skipped":0,"pct":34.48},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":29,"covered":10,"skipped":0,"pct":34.48},"branches":{"total":10,"covered":0,"skipped":0,"pct":0}}
|
|
55
|
-
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForRendering.tsx": {"lines":{"total":
|
|
54
|
+
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForRendering.tsx": {"lines":{"total":30,"covered":28,"skipped":0,"pct":93.33},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":31,"covered":29,"skipped":0,"pct":93.54},"branches":{"total":24,"covered":22,"skipped":0,"pct":91.66}}
|
|
56
55
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/index.tsx": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
57
56
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/shared-audio-tags.tsx": {"lines":{"total":66,"covered":19,"skipped":0,"pct":28.78},"functions":{"total":24,"covered":3,"skipped":0,"pct":12.5},"statements":{"total":72,"covered":20,"skipped":0,"pct":27.77},"branches":{"total":28,"covered":1,"skipped":0,"pct":3.57}}
|
|
58
57
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/use-audio-frame.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
59
58
|
,"/Users/jonathanburger/remotion/packages/core/src/config/browser-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
60
59
|
,"/Users/jonathanburger/remotion/packages/core/src/config/browser.ts": {"lines":{"total":10,"covered":4,"skipped":0,"pct":40},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":12,"covered":6,"skipped":0,"pct":50},"branches":{"total":4,"covered":0,"skipped":0,"pct":0}}
|
|
61
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":
|
|
60
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":59,"covered":36,"skipped":0,"pct":61.01},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":63,"covered":40,"skipped":0,"pct":63.49},"branches":{"total":66,"covered":45,"skipped":0,"pct":68.18}}
|
|
62
61
|
,"/Users/jonathanburger/remotion/packages/core/src/config/concurrency.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
63
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":
|
|
62
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":49,"covered":44,"skipped":0,"pct":89.79},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":55,"covered":50,"skipped":0,"pct":90.9},"branches":{"total":49,"covered":44,"skipped":0,"pct":89.79}}
|
|
64
63
|
,"/Users/jonathanburger/remotion/packages/core/src/config/env-file.ts": {"lines":{"total":4,"covered":3,"skipped":0,"pct":75},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
65
64
|
,"/Users/jonathanburger/remotion/packages/core/src/config/ffmpeg-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
66
65
|
,"/Users/jonathanburger/remotion/packages/core/src/config/frame-range.ts": {"lines":{"total":48,"covered":48,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":54,"covered":54,"skipped":0,"pct":100},"branches":{"total":38,"covered":37,"skipped":0,"pct":97.36}}
|
|
66
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/frames-per-lambda.ts": {"lines":{"total":4,"covered":2,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":6,"covered":4,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
67
67
|
,"/Users/jonathanburger/remotion/packages/core/src/config/image-format.ts": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
|
|
68
68
|
,"/Users/jonathanburger/remotion/packages/core/src/config/image-sequence.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
69
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":
|
|
69
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":20,"covered":20,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
70
70
|
,"/Users/jonathanburger/remotion/packages/core/src/config/input-props.ts": {"lines":{"total":23,"covered":14,"skipped":0,"pct":60.86},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":24,"covered":15,"skipped":0,"pct":62.5},"branches":{"total":10,"covered":6,"skipped":0,"pct":60}}
|
|
71
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/log.ts": {"lines":{"total":
|
|
71
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/log.ts": {"lines":{"total":13,"covered":13,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
72
72
|
,"/Users/jonathanburger/remotion/packages/core/src/config/max-timeline-tracks.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.07},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":15,"covered":5,"skipped":0,"pct":33.33},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
|
|
73
73
|
,"/Users/jonathanburger/remotion/packages/core/src/config/override-webpack.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":10,"covered":7,"skipped":0,"pct":70},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
74
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/overwrite.ts": {"lines":{"total":
|
|
74
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/overwrite.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
75
75
|
,"/Users/jonathanburger/remotion/packages/core/src/config/pixel-format.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":19,"covered":19,"skipped":0,"pct":100},"branches":{"total":10,"covered":10,"skipped":0,"pct":100}}
|
|
76
76
|
,"/Users/jonathanburger/remotion/packages/core/src/config/preview-server.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":11,"skipped":0,"pct":84.61},"branches":{"total":8,"covered":7,"skipped":0,"pct":87.5}}
|
|
77
77
|
,"/Users/jonathanburger/remotion/packages/core/src/config/prores-profile.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":14,"covered":14,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-quality.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.81},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":12,"covered":10,"skipped":0,"pct":83.33},"branches":{"total":14,"covered":12,"skipped":0,"pct":85.71}}
|
|
97
97
|
,"/Users/jonathanburger/remotion/packages/core/src/video/Video.tsx": {"lines":{"total":21,"covered":19,"skipped":0,"pct":90.47},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":21,"covered":19,"skipped":0,"pct":90.47},"branches":{"total":16,"covered":14,"skipped":0,"pct":87.5}}
|
|
98
98
|
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForDevelopment.tsx": {"lines":{"total":21,"covered":9,"skipped":0,"pct":42.85},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":21,"covered":9,"skipped":0,"pct":42.85},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
|
|
99
|
-
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":
|
|
99
|
+
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":64,"covered":42,"skipped":0,"pct":65.62},"functions":{"total":12,"covered":6,"skipped":0,"pct":50},"statements":{"total":65,"covered":43,"skipped":0,"pct":66.15},"branches":{"total":50,"covered":39,"skipped":0,"pct":78}}
|
|
100
100
|
,"/Users/jonathanburger/remotion/packages/core/src/video/get-current-time.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
101
101
|
,"/Users/jonathanburger/remotion/packages/core/src/video/index.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
102
102
|
}
|
package/dist/Still.d.ts
CHANGED
package/dist/Still.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Still.d.ts","sourceRoot":"","sources":["../src/Still.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AAEtD,eAAO,MAAM,KAAK,0CAEjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Still.d.ts","sourceRoot":"","sources":["../src/Still.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AAEtD,eAAO,MAAM,KAAK,0CAEjB,CAAC"}
|
package/dist/audio/Audio.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { RemotionMainAudioProps } from './props';
|
|
|
3
3
|
export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop"> & {
|
|
4
4
|
volume?: import("../volume-prop").VolumeProp | undefined;
|
|
5
5
|
playbackRate?: number | undefined;
|
|
6
|
-
} & RemotionMainAudioProps, "id" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "
|
|
6
|
+
} & RemotionMainAudioProps, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
|
|
7
7
|
//# sourceMappingURL=Audio.d.ts.map
|
|
@@ -4,5 +4,5 @@ export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<O
|
|
|
4
4
|
playbackRate?: number | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
shouldPreMountAudioTags: boolean;
|
|
7
|
-
}, "id" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "
|
|
7
|
+
}, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
|
|
8
8
|
//# sourceMappingURL=AudioForDevelopment.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RemotionAudioProps } from './props';
|
|
3
|
-
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "id" | "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "
|
|
3
|
+
export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLAudioElement>>;
|
|
4
4
|
//# sourceMappingURL=AudioForRendering.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare function audioBufferToWav(buffer: AudioBuffer, opt: {
|
|
2
|
+
float32: boolean;
|
|
3
|
+
}): ArrayBuffer;
|
|
4
|
+
declare function encodeWAV({ samples, format, sampleRate, numChannels, bitDepth, }: {
|
|
5
|
+
samples: Float32Array;
|
|
6
|
+
format: 3 | 1;
|
|
7
|
+
sampleRate: number;
|
|
8
|
+
numChannels: number;
|
|
9
|
+
bitDepth: 32 | 16;
|
|
10
|
+
}): ArrayBuffer;
|
|
11
|
+
declare function interleave(inputL: Float32Array, inputR: Float32Array): Float32Array;
|
|
12
|
+
declare function writeFloat32(output: DataView, offset: number, input: Float32Array): void;
|
|
13
|
+
declare function floatTo16BitPCM(output: DataView, offset: number, input: Float32Array): void;
|
|
14
|
+
declare function writeString(view: DataView, offset: number, string: string): void;
|
|
15
|
+
//# sourceMappingURL=audio-buffer-to-wav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-buffer-to-wav.d.ts","sourceRoot":"","sources":["../../src/audio/audio-buffer-to-wav.ts"],"names":[],"mappings":"AAEA,iBAAS,gBAAgB,CACxB,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE;IACJ,OAAO,EAAE,OAAO,CAAC;CACjB,eAqBD;AAED,iBAAS,SAAS,CAAC,EAClB,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,QAAQ,GACR,EAAE;IACF,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC;CAClB,eAyCA;AAED,iBAAS,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,gBAc7D;AAED,iBAAS,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,QAI1E;AAED,iBAAS,eAAe,CACvB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,YAAY,QAMnB;AAED,iBAAS,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAIlE"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = audioBufferToWav;
|
|
3
|
+
function audioBufferToWav(buffer, opt) {
|
|
4
|
+
const numChannels = buffer.numberOfChannels;
|
|
5
|
+
const { sampleRate } = buffer;
|
|
6
|
+
const format = opt.float32 ? 3 : 1;
|
|
7
|
+
const bitDepth = format === 3 ? 32 : 16;
|
|
8
|
+
let result;
|
|
9
|
+
if (numChannels === 2) {
|
|
10
|
+
result = interleave(buffer.getChannelData(0), buffer.getChannelData(1));
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
result = buffer.getChannelData(0);
|
|
14
|
+
}
|
|
15
|
+
return encodeWAV({
|
|
16
|
+
samples: result,
|
|
17
|
+
format,
|
|
18
|
+
sampleRate,
|
|
19
|
+
numChannels,
|
|
20
|
+
bitDepth,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function encodeWAV({ samples, format, sampleRate, numChannels, bitDepth, }) {
|
|
24
|
+
const bytesPerSample = bitDepth / 8;
|
|
25
|
+
const blockAlign = numChannels * bytesPerSample;
|
|
26
|
+
const buffer = new ArrayBuffer(44 + samples.length * bytesPerSample);
|
|
27
|
+
const view = new DataView(buffer);
|
|
28
|
+
/* RIFF identifier */
|
|
29
|
+
writeString(view, 0, 'RIFF');
|
|
30
|
+
/* RIFF chunk length */
|
|
31
|
+
view.setUint32(4, 36 + samples.length * bytesPerSample, true);
|
|
32
|
+
/* RIFF type */
|
|
33
|
+
writeString(view, 8, 'WAVE');
|
|
34
|
+
/* format chunk identifier */
|
|
35
|
+
writeString(view, 12, 'fmt ');
|
|
36
|
+
/* format chunk length */
|
|
37
|
+
view.setUint32(16, 16, true);
|
|
38
|
+
/* sample format (raw) */
|
|
39
|
+
view.setUint16(20, format, true);
|
|
40
|
+
/* channel count */
|
|
41
|
+
view.setUint16(22, numChannels, true);
|
|
42
|
+
/* sample rate */
|
|
43
|
+
view.setUint32(24, sampleRate, true);
|
|
44
|
+
/* byte rate (sample rate * block align) */
|
|
45
|
+
view.setUint32(28, sampleRate * blockAlign, true);
|
|
46
|
+
/* block align (channel count * bytes per sample) */
|
|
47
|
+
view.setUint16(32, blockAlign, true);
|
|
48
|
+
/* bits per sample */
|
|
49
|
+
view.setUint16(34, bitDepth, true);
|
|
50
|
+
/* data chunk identifier */
|
|
51
|
+
writeString(view, 36, 'data');
|
|
52
|
+
/* data chunk length */
|
|
53
|
+
view.setUint32(40, samples.length * bytesPerSample, true);
|
|
54
|
+
if (format === 1) {
|
|
55
|
+
// Raw PCM
|
|
56
|
+
floatTo16BitPCM(view, 44, samples);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
writeFloat32(view, 44, samples);
|
|
60
|
+
}
|
|
61
|
+
return buffer;
|
|
62
|
+
}
|
|
63
|
+
function interleave(inputL, inputR) {
|
|
64
|
+
const length = inputL.length + inputR.length;
|
|
65
|
+
const result = new Float32Array(length);
|
|
66
|
+
let index = 0;
|
|
67
|
+
let inputIndex = 0;
|
|
68
|
+
while (index < length) {
|
|
69
|
+
result[index++] = inputL[inputIndex];
|
|
70
|
+
result[index++] = inputR[inputIndex];
|
|
71
|
+
inputIndex++;
|
|
72
|
+
}
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
function writeFloat32(output, offset, input) {
|
|
76
|
+
for (let i = 0; i < input.length; i++, offset += 4) {
|
|
77
|
+
output.setFloat32(offset, input[i], true);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function floatTo16BitPCM(output, offset, input) {
|
|
81
|
+
for (let i = 0; i < input.length; i++, offset += 2) {
|
|
82
|
+
const s = Math.max(-1, Math.min(1, input[i]));
|
|
83
|
+
output.setInt16(offset, s < 0 ? s * 0x8000 : s * 0x7fff, true);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function writeString(view, offset, string) {
|
|
87
|
+
for (let i = 0; i < string.length; i++) {
|
|
88
|
+
view.setUint8(offset + i, string.charCodeAt(i));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=audio-buffer-to-wav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC;KAC/D;AACF,CAAC;AAED,SAAS,WAAW,CAAC,IAAc,EAAE,MAAc,EAAE,MAAc;IAClE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACvC,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KAChD;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-url-helpers.d.ts","sourceRoot":"","sources":["../../src/audio/audio-url-helpers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAY,WAAW,WAYhD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uint8ToBase64 = void 0;
|
|
4
|
+
const uint8ToBase64 = (buffer) => {
|
|
5
|
+
const wavAsArrayBuffer = audioBufferToWav(buffer, {
|
|
6
|
+
float32: false,
|
|
7
|
+
});
|
|
8
|
+
let binary = '';
|
|
9
|
+
const bytes = new Uint8Array(wavAsArrayBuffer);
|
|
10
|
+
const len = bytes.byteLength;
|
|
11
|
+
for (let i = 0; i < len; i++) {
|
|
12
|
+
binary += String.fromCharCode(bytes[i]);
|
|
13
|
+
}
|
|
14
|
+
return window.btoa(binary);
|
|
15
|
+
};
|
|
16
|
+
exports.uint8ToBase64 = uint8ToBase64;
|
|
17
|
+
//# sourceMappingURL=audio-url-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio-url-helpers.js","sourceRoot":"","sources":["../../src/audio/audio-url-helpers.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAAC,MAAmB,EAAE,EAAE;IACpD,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,EAAE;QACjD,OAAO,EAAE,KAAK;KACd,CAAC,CAAC;IACH,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAC7B,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KACxC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,CAAC,CAAC;AAZW,QAAA,aAAa,iBAYxB"}
|
|
@@ -3,7 +3,7 @@ declare const validOptions: readonly ["png", "jpeg", "none"];
|
|
|
3
3
|
export declare type ImageFormat = typeof validOptions[number];
|
|
4
4
|
export declare type StillImageFormat = 'png' | 'jpeg';
|
|
5
5
|
export declare const setImageFormat: (format: ImageFormat) => void;
|
|
6
|
-
export declare const getUserPreferredImageFormat: () => "
|
|
6
|
+
export declare const getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
|
|
7
7
|
export declare const validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: PixelFormat, imageFormat: ImageFormat) => 'none' | 'valid';
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=image-format.d.ts.map
|
package/dist/config/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare const Config: {
|
|
|
44
44
|
*
|
|
45
45
|
* Set this to 'verbose' to get browser logs and other IO.
|
|
46
46
|
*/
|
|
47
|
-
readonly setLevel: (newLogLevel: "
|
|
47
|
+
readonly setLevel: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
|
|
48
48
|
};
|
|
49
49
|
readonly Puppeteer: {
|
|
50
50
|
/**
|
|
@@ -52,6 +52,11 @@ export declare const Config: {
|
|
|
52
52
|
* Default: null, which will make Remotion find or download a version of said browser.
|
|
53
53
|
*/
|
|
54
54
|
readonly setBrowserExecutable: (newBrowserExecutablePath: BrowserExecutable) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
57
|
+
* Default: `30000`
|
|
58
|
+
*/
|
|
59
|
+
readonly setTimeoutInMilliseconds: (newPuppeteerTimeout: number) => void;
|
|
55
60
|
};
|
|
56
61
|
readonly Rendering: {
|
|
57
62
|
/**
|
|
@@ -74,7 +79,7 @@ export declare const Config: {
|
|
|
74
79
|
/** Decide in which image format to render. Can be either 'jpeg' or 'png'.
|
|
75
80
|
* PNG is slower, but supports transparency.
|
|
76
81
|
*/
|
|
77
|
-
readonly setImageFormat: (format: "
|
|
82
|
+
readonly setImageFormat: (format: "png" | "jpeg" | "none") => void;
|
|
78
83
|
/**
|
|
79
84
|
* Render only a subset of a video.
|
|
80
85
|
* Pass in a tuple [20, 30] to only render frames 20-30 into a video.
|
|
@@ -126,7 +131,7 @@ export declare const Config: {
|
|
|
126
131
|
* Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
|
|
127
132
|
* See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
|
|
128
133
|
*/
|
|
129
|
-
readonly setProResProfile: (profile: "
|
|
134
|
+
readonly setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
|
|
130
135
|
};
|
|
131
136
|
readonly Lambda: {
|
|
132
137
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,iBAAiB,EAAuB,MAAM,sBAAsB,CAAC;AAC7E,OAAO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;WAGG;;QAEH;;;;;WAKG;;QAEH;;WAEG;;QAEH;;;;;WAKG;;QAGH;;;WAGG;;;;QAIH;;;WAGG;;QAEH;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;WAGG;;QAEH;;;;WAIG;;QAEH;;WAEG;;QAEH;;;;;WAKG;;;;QAIH;;;WAGG;;;CAGK,CAAC;AAEX,YAAY,EACX,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,gBAAgB,GAChB,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -20,6 +20,7 @@ const prores_profile_1 = require("./prores-profile");
|
|
|
20
20
|
const quality_1 = require("./quality");
|
|
21
21
|
const webpack_caching_1 = require("./webpack-caching");
|
|
22
22
|
const ffmpeg_executable_1 = require("./ffmpeg-executable");
|
|
23
|
+
const timeout_1 = require("./timeout");
|
|
23
24
|
exports.Config = {
|
|
24
25
|
Preview: {
|
|
25
26
|
/**
|
|
@@ -64,6 +65,11 @@ exports.Config = {
|
|
|
64
65
|
* Default: null, which will make Remotion find or download a version of said browser.
|
|
65
66
|
*/
|
|
66
67
|
setBrowserExecutable: browser_executable_1.setBrowserExecutable,
|
|
68
|
+
/**
|
|
69
|
+
* Set how many milliseconds a frame may take to render before it times out.
|
|
70
|
+
* Default: `30000`
|
|
71
|
+
*/
|
|
72
|
+
setTimeoutInMilliseconds: timeout_1.setPuppeteerTimeout,
|
|
67
73
|
},
|
|
68
74
|
Rendering: {
|
|
69
75
|
/**
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;AACA,6DAA6E;AAC7E,mCAAyD;AACzD,+CAA0D;AAC1D,+BAA6B;AAC7B,yCAA6C;AAC7C,+CAAwD;AACxD,2DAAuD;AACvD,iDAA6E;AAC7E,qDAAkD;AAClD,+BAA4C;AAC5C,+DAA2D;AAC3D,yDAI4B;AAC5B,2CAA+C;AAC/C,iDAA2D;AAC3D,qDAAyC;AACzC,qDAAkD;AAClD,uCAAqC;AACrC,uDAAoD;AACpD,2DAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;AACA,6DAA6E;AAC7E,mCAAyD;AACzD,+CAA0D;AAC1D,+BAA6B;AAC7B,yCAA6C;AAC7C,+CAAwD;AACxD,2DAAuD;AACvD,iDAA6E;AAC7E,qDAAkD;AAClD,+BAA4C;AAC5C,+DAA2D;AAC3D,yDAI4B;AAC5B,2CAA+C;AAC/C,iDAA2D;AAC3D,qDAAyC;AACzC,qDAAkD;AAClD,uCAAqC;AACrC,uDAAoD;AACpD,2DAA0E;AAC1E,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACrB,OAAO,EAAE;QACR;;;;WAIG;QACH,oBAAoB,EAApB,0CAAoB;KACpB;IACD,QAAQ,EAAE;QACT;;;;WAIG;QACH,qBAAqB,EAArB,wCAAqB;QACrB;;;WAGG;QACH,iBAAiB,EAAE,mCAAiB;QACpC;;;;WAIG;QACH,OAAO,EAAP,wBAAO;KACP;IACD,GAAG,EAAE;QACJ;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAW;KACrB;IACD,SAAS,EAAE;QACV;;;WAGG;QACH,oBAAoB,EAApB,yCAAoB;QACpB;;;WAGG;QACH,wBAAwB,EAAE,6BAAmB;KAC7C;IACD,SAAS,EAAE;QACV;;;WAGG;QACH,iBAAiB,EAAjB,4BAAiB;QACjB;;;WAGG;QACH,cAAc,EAAd,4BAAc;QACd;;;;;WAKG;QACH,UAAU,EAAV,oBAAU;QACV;;WAEG;QACH,cAAc,EAAd,6BAAc;QACd;;;;;WAKG;QACH,aAAa,EAAb,2BAAa;QAEb;;;WAGG;QACH,mBAAmB,EAAnB,uCAAmB;KACnB;IACD,MAAM,EAAE;QACP;;;WAGG;QACH,kBAAkB,EAAlB,8BAAkB;QAClB;;;;WAIG;QACH,cAAc,EAAd,6BAAc;QACd;;;WAGG;QACH,eAAe,EAAf,uBAAe;QACf;;;WAGG;QACH,QAAQ,EAAR,gBAAQ;QACR;;;;WAIG;QACH,MAAM,EAAN,YAAM;QACN;;WAEG;QACH,gBAAgB,EAAhB,iCAAgB;QAChB;;;;;WAKG;QACH,gBAAgB,EAAhB,iCAAgB;KAChB;IACD,MAAM,EAAE;QACP;;;WAGG;QACH,kBAAkB,EAAlB,sCAAkB;KAClB;CACQ,CAAC"}
|
package/dist/config/log.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const logLevels: readonly ["verbose", "info", "warn", "error"];
|
|
2
2
|
export declare type LogLevel = typeof logLevels[number];
|
|
3
3
|
export declare const DEFAULT_LOG_LEVEL: LogLevel;
|
|
4
|
-
export declare const getLogLevel: () => "
|
|
4
|
+
export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn";
|
|
5
5
|
export declare const setLogLevel: (newLogLevel: LogLevel) => void;
|
|
6
6
|
export declare const isValidLogLevel: (level: string) => boolean;
|
|
7
7
|
export declare const isEqualOrBelowLogLevel: (currentLevel: LogLevel, level: LogLevel) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../src/config/timeout.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,wBAAyB,MAAM,SAS9D,CAAC;AAEF,eAAO,MAAM,0BAA0B,QAAO,MAE7C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCurrentPuppeteerTimeout = exports.setPuppeteerTimeout = void 0;
|
|
4
|
+
const timeout_1 = require("../timeout");
|
|
5
|
+
let currentTimeout = timeout_1.DEFAULT_PUPPETEER_TIMEOUT;
|
|
6
|
+
const setPuppeteerTimeout = (newPuppeteerTimeout) => {
|
|
7
|
+
if (typeof newPuppeteerTimeout !== 'number') {
|
|
8
|
+
throw new Error('--timeout flag / setTimeoutInMilliseconds() must be a number, but got ' +
|
|
9
|
+
JSON.stringify(newPuppeteerTimeout));
|
|
10
|
+
}
|
|
11
|
+
currentTimeout = newPuppeteerTimeout;
|
|
12
|
+
};
|
|
13
|
+
exports.setPuppeteerTimeout = setPuppeteerTimeout;
|
|
14
|
+
const getCurrentPuppeteerTimeout = () => {
|
|
15
|
+
return currentTimeout;
|
|
16
|
+
};
|
|
17
|
+
exports.getCurrentPuppeteerTimeout = getCurrentPuppeteerTimeout;
|
|
18
|
+
//# sourceMappingURL=timeout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../../src/config/timeout.ts"],"names":[],"mappings":";;;AAAA,wCAAqD;AAErD,IAAI,cAAc,GAAW,mCAAyB,CAAC;AAEhD,MAAM,mBAAmB,GAAG,CAAC,mBAA2B,EAAE,EAAE;IAClE,IAAI,OAAO,mBAAmB,KAAK,QAAQ,EAAE;QAC5C,MAAM,IAAI,KAAK,CACd,wEAAwE;YACvE,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CACpC,CAAC;KACF;IAED,cAAc,GAAG,mBAAmB,CAAC;AACtC,CAAC,CAAC;AATW,QAAA,mBAAmB,uBAS9B;AAEK,MAAM,0BAA0B,GAAG,GAAW,EAAE;IACtD,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare global {
|
|
|
8
8
|
remotion_editorName: string | null;
|
|
9
9
|
remotion_setFrame: (frame: number) => void;
|
|
10
10
|
remotion_initialFrame: number;
|
|
11
|
+
remotion_puppeteerTimeout: number;
|
|
11
12
|
remotion_collectAssets: () => TAsset[];
|
|
12
13
|
remotion_isPlayer: boolean;
|
|
13
14
|
remotion_imported: boolean;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAG3D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,KAAK,EAAE,OAAO,CAAC;QACf,qBAAqB,EAAE,MAAM,aAAa,EAAE,CAAC;QAC7C,mBAAmB,EAAE,MAAM,CAAC;QAC5B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAC3C,qBAAqB,EAAE,MAAM,CAAC;QAC9B,sBAAsB,EAAE,MAAM,MAAM,EAAE,CAAC;QACvC,iBAAiB,EAAE,OAAO,CAAC;QAC3B,iBAAiB,EAAE,OAAO,CAAC;KAC3B;CACD;AAID,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AAC/E,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACnD,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cA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CAAC;AAC/E,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACnD,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,QAAQ,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,2EAA0E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,2EAA0E;AAiB1E,IAAA,yDAA6B,GAAE,CAAC;AAEhC,iDAA+B;AAE/B,0CAAwB;AACxB,gDAA8B;AAE9B,2CAAyB;AACzB,oDAAmD;AAA3C,4GAAA,aAAa,OAAA;AACrB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,gDAA8B;AAC9B,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,+BAA4B;AAApB,4FAAA,IAAI,OAAA;AACZ,2CAAyB;AACzB,kDAAgC;AAChC,iDAA6C;AAArC,6GAAA,YAAY,OAAA;AACpB,2CAAsC;AAA9B,sGAAA,QAAQ,OAAA;AAChB,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AACd,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,qDAAmC;AACnC,0CAAwB;AACxB,iDAA+B;AAC/B,6CAAyC;AAAjC,yGAAA,UAAU,OAAA"}
|