init commit
This commit is contained in:
18
remotion/node_modules/@remotion/bundler/dist/stringify-with-circular-references.js
generated
vendored
Normal file
18
remotion/node_modules/@remotion/bundler/dist/stringify-with-circular-references.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.jsonStringifyWithCircularReferences = void 0;
|
||||
const jsonStringifyWithCircularReferences = (circ) => {
|
||||
let seen = [];
|
||||
const val = JSON.stringify(circ, (_, value) => {
|
||||
if (typeof value === 'object' && value !== null && seen) {
|
||||
if (seen.includes(value)) {
|
||||
return '[Circular]';
|
||||
}
|
||||
seen.push(value);
|
||||
}
|
||||
return value;
|
||||
});
|
||||
seen = null;
|
||||
return val;
|
||||
};
|
||||
exports.jsonStringifyWithCircularReferences = jsonStringifyWithCircularReferences;
|
||||
Reference in New Issue
Block a user