Add .gitignore to exclude all node packages and lock files

This commit is contained in:
Adolfo Reyna
2026-02-23 21:56:04 -05:00
parent faae96c9ed
commit dcc5c6c044
9747 changed files with 1555105 additions and 2 deletions
@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUsage = void 0;
const register_usage_event_1 = require("./register-usage-event");
const getUsage = async ({ since, ...apiOrLicenseKey }) => {
const apiKey = 'apiKey' in apiOrLicenseKey ? apiOrLicenseKey.apiKey : null;
const licenseKey = 'licenseKey' in apiOrLicenseKey ? apiOrLicenseKey.licenseKey : null;
const res = await fetch(`${register_usage_event_1.HOST}/api/track/get-usage`, {
method: 'POST',
body: JSON.stringify({
apiKey: licenseKey !== null && licenseKey !== void 0 ? licenseKey : apiKey,
since: since !== null && since !== void 0 ? since : null,
}),
headers: {
'Content-Type': 'application/json',
},
});
const json = (await res.json());
if (json.success) {
return {
cloudRenders: json.cloudRenders,
webcodecConversions: json.webcodecConversions,
};
}
throw new Error(json.error);
};
exports.getUsage = getUsage;