Add .gitignore to exclude all node packages and lock files
This commit is contained in:
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sendUsageEvent = void 0;
|
||||
const licensing_1 = require("@remotion/licensing");
|
||||
const sendUsageEvent = async ({ apiKey, succeeded, }) => {
|
||||
const host = typeof window === 'undefined'
|
||||
? null
|
||||
: typeof window.location === 'undefined'
|
||||
? null
|
||||
: (window.location.origin ?? null);
|
||||
if (host === null) {
|
||||
return;
|
||||
}
|
||||
await (0, licensing_1.registerUsageEvent)({
|
||||
apiKey,
|
||||
event: 'webcodec-conversion',
|
||||
host,
|
||||
succeeded,
|
||||
});
|
||||
};
|
||||
exports.sendUsageEvent = sendUsageEvent;
|
||||
Reference in New Issue
Block a user