replit-export
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -77,12 +77,10 @@ #!/usr/bin/env node | ||
let count = 0; | ||
const userId = yield exporter.getUser(); | ||
if (state) { | ||
const userId = yield exporter.getUser(); | ||
if (userId != state.user) { | ||
console.warn(`Ignoring savefile, user mismatch (${state.user} != ${userId})`); | ||
exporter.state = { user: userId }; | ||
exporter.state = {}; | ||
} | ||
else { | ||
exporter.state.user = userId; | ||
} | ||
} | ||
exporter.state.user = userId; | ||
while (true) { | ||
@@ -114,2 +112,2 @@ if (maxRepls && concurrent + count > maxRepls) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NsaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFDQSxPQUFPLENBQUMsR0FBRyxDQUFDLGtCQUFrQixDQUFDLEdBQUcsR0FBRyxDQUFDO0FBQ3RDLGtEQUEwQjtBQUMxQix5Q0FBb0M7QUFDcEMsMkJBQTJDO0FBQzNDLDBDQUFrRDtBQUNsRCwrQkFBK0I7QUFDL0IsNkNBQTBDO0FBQzFDLGlDQUFpQztBQUVqQyxtQkFBTztLQUNGLE9BQU8sQ0FBQyxPQUFPLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxPQUFPLENBQUM7S0FDM0MsY0FBYyxDQUFDLDBCQUEwQixFQUFFLDRCQUE0QixDQUFDO0tBQ3hFLGNBQWMsQ0FBQyxxQkFBcUIsRUFBRSwyQ0FBMkMsQ0FBQztLQUNsRixNQUFNLENBQUMsbUJBQW1CLEVBQUUsb0NBQW9DLEVBQUUscUJBQXFCLENBQUM7S0FDeEYsTUFBTSxDQUFDLDJCQUEyQixFQUFFLDZCQUE2QixFQUFFLElBQUksQ0FBQztLQUN4RSxNQUFNLENBQUMsV0FBVyxFQUFFLHFDQUFx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cGxzICgke2NvdW50fSBmaW5pc2hlZCkuYCk7XG4gICAgICAgIGNvdW50ICs9IHJlcGxzLmxlbmd0aDtcbiAgICAgICAgaWYgKHJlcGxzLmxlbmd0aCA8IDEpIGJyZWFrO1xuXG4gICAgICAgIGNvbnN0IHppcHMgPSByZXBscy5tYXAoKHIpID0+IG5ldyBSZXBsWmlwKHIsIG91dHB1dCwgZmlsdGVyZWRGaWxlcykpO1xuICAgICAgICBhd2FpdCBleHBvcnRlci5idWxrRG93bmxvYWRSZXBscyhcbiAgICAgICAgICAgIHJlcGxzLFxuICAgICAgICAgICAgemlwcy5tYXAoKHopID0+IHouZ2V0WmlwV3JpdGVTdHJlYW0oKSksXG4gICAgICAgICk7XG4gICAgICAgIGF3YWl0IFByb21pc2UuYWxsKHppcHMubWFwKCh6KSA9PiB6LnByb2Nlc3MoKSkpO1xuICAgICAgICBhd2FpdCBzYXZlKGV4cG9ydGVyLCBzYXZlRmlsZSk7XG4gICAgfVxuXG4gICAgY29uc29sZS5sb2coY2hhbGsuZ3JlZW4oYERvd25sb2FkZWQgJHtjb3VudH0gcmVwbHNgKSk7XG59XG5cbmFzeW5jIGZ1bmN0aW9uIHNhdmUoZXhwb3J0ZXI6IEV4cG9ydGVyLCBzYXZlRmlsZTogc3RyaW5nKSB7XG4gICAgY29uc3Qgc3RhdGUgPSBKU09OLnN0cmluZ2lmeShleHBvcnRlci5zdGF0ZSk7XG4gICAgYXdhaXQgd3JpdGVGaWxlKHNhdmVGaWxlLCBzdGF0ZSk7XG59XG4iXX0= |
{ | ||
"name": "replit-export", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/hackermondev/replit-exporter", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
243980
792