Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
platforms: ['web']
});
}
async echo(options: { value: string }): Promise<{value: string}> {
console.log('ECHO', options);
return options;
}
}
const MyPlugin = new MyPluginWeb();
export { MyPlugin };
import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(MyPlugin);
let results: Array<data>;
results = await this.mDb.keysvalues();
for (let i:number = 0;i</data>
if (key.indexOf(this.PREFIX) === 0) {
localStorage.removeItem(key);
}
}
return Promise.resolve({ value: true });
}
private addPrefix = (key: string) => this.PREFIX + key;
}
const SecureStoragePlugin = new SecureStoragePluginWeb();
export { SecureStoragePlugin };
import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(SecureStoragePlugin);
get(options) {
return Promise.resolve({ value: localStorage.getItem(options.key) });
}
set(options) {
localStorage.setItem(options.key, options.value);
return Promise.resolve({ value: true });
}
remove(options) {
localStorage.removeItem(options.key);
return Promise.resolve({ value: true });
}
}
const SecureStoragePlugin = new SecureStoragePluginWeb();
export { SecureStoragePlugin };
import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(SecureStoragePlugin);
//# sourceMappingURL=web.js.map
localStorage.removeItem(WebUtils.getAppId(options));
resolve();
});
}
private closeWindow() {
clearInterval(this.intervalId);
this.windowHandle.close();
}
}
const OAuth2Client = new OAuth2ClientPluginWeb();
export { OAuth2Client };
registerWebPlugin(OAuth2Client);
return __awaiter(this, void 0, void 0, function* () {
let ret = [];
let results;
results = yield this.mDb.keysvalues();
for (let i = 0; i < results.length; i++) {
let res = { "key": results[i].name, "value": results[i].value };
ret.push(res);
}
return Promise.resolve({ keysvalues: ret });
});
}
}
const CapacitorDataStorageSqlite = new CapacitorDataStorageSqliteWeb();
export { CapacitorDataStorageSqlite };
import { registerWebPlugin } from '@capacitor/core';
registerWebPlugin(CapacitorDataStorageSqlite);
//# sourceMappingURL=web.js.map