1 | "use strict";
|
2 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7 | };
|
8 | var plugin_1 = require('./plugin');
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | var SecureStorage = (function () {
|
48 | function SecureStorage() {
|
49 | }
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | SecureStorage.prototype.create = function (store) {
|
56 | var _this = this;
|
57 | return new Promise(function (res, rej) {
|
58 | _this._objectInstance = new cordova.plugins.SecureStorage(res, rej, store);
|
59 | });
|
60 | };
|
61 | |
62 |
|
63 |
|
64 |
|
65 |
|
66 | SecureStorage.prototype.get = function (reference) { return; };
|
67 | |
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 | SecureStorage.prototype.set = function (reference, value) { return; };
|
74 | |
75 |
|
76 |
|
77 |
|
78 |
|
79 | SecureStorage.prototype.remove = function (reference) { return; };
|
80 | __decorate([
|
81 | plugin_1.CordovaInstance({
|
82 | callbackOrder: 'reverse'
|
83 | })
|
84 | ], SecureStorage.prototype, "get", null);
|
85 | __decorate([
|
86 | plugin_1.CordovaInstance({
|
87 | callbackOrder: 'reverse'
|
88 | })
|
89 | ], SecureStorage.prototype, "set", null);
|
90 | __decorate([
|
91 | plugin_1.CordovaInstance({
|
92 | callbackOrder: 'reverse'
|
93 | })
|
94 | ], SecureStorage.prototype, "remove", null);
|
95 | SecureStorage = __decorate([
|
96 | plugin_1.Plugin({
|
97 | pluginName: 'SecureStorage',
|
98 | plugin: 'cordova-plugin-secure-storage',
|
99 | pluginRef: 'plugins.securestorage',
|
100 | repo: 'https://github.com/Crypho/cordova-plugin-secure-storage',
|
101 | platforms: ['Android', 'iOS', 'Windows Phone', 'Browser']
|
102 | })
|
103 | ], SecureStorage);
|
104 | return SecureStorage;
|
105 | }());
|
106 | exports.SecureStorage = SecureStorage;
|
107 |
|
\ | No newline at end of file |