asv-hlps 1.2.59 → 1.2.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.d.ts +1 -2
- package/lib/cjs/index.js +2 -3
- package/lib/cjs/services/capacitorStorageService.d.ts +0 -7
- package/lib/cjs/services/capacitorStorageService.js +14 -24
- package/lib/esm/index.d.ts +1 -2
- package/lib/esm/index.js +4 -2
- package/lib/esm/services/capacitorStorageService.d.ts +0 -7
- package/lib/esm/services/capacitorStorageService.js +15 -23
- package/package.json +1 -2
package/lib/cjs/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import AmountOnBillPipe from "./helpers/pipes/amount-on-bill-pipe";
|
|
|
5
5
|
import AmountOnListBillPipe from "./helpers/pipes/amount-on-list-bill-pipe";
|
|
6
6
|
import StockPipe from "./helpers/pipes/stock-pipe";
|
|
7
7
|
import { AuthService } from "./services/authService";
|
|
8
|
-
import CapacitorStorageService from "./services/capacitorStorageService";
|
|
9
8
|
import StorageService from "./services/storageService";
|
|
10
9
|
import "./auth";
|
|
11
10
|
import "./bill";
|
|
@@ -36,4 +35,4 @@ export * from "./react-utils";
|
|
|
36
35
|
export * from "./sale";
|
|
37
36
|
export * from "./user";
|
|
38
37
|
export * from "./utils";
|
|
39
|
-
export { AuthParam, getAuth, AuthService, StorageService,
|
|
38
|
+
export { AuthParam, getAuth, AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe, };
|
package/lib/cjs/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.AmountOnBillPipe = exports.AmountOnListBillPipe = exports.StockPipe = exports.HlpEntry = exports.HlpProduct = exports.
|
|
20
|
+
exports.AmountOnBillPipe = exports.AmountOnListBillPipe = exports.StockPipe = exports.HlpEntry = exports.HlpProduct = exports.StorageService = exports.AuthService = exports.getAuth = void 0;
|
|
21
21
|
const auth_1 = require("./auth");
|
|
22
22
|
Object.defineProperty(exports, "getAuth", { enumerable: true, get: function () { return auth_1.getAuth; } });
|
|
23
23
|
const hlpEntry_1 = require("./helpers/hlpEntry");
|
|
@@ -32,8 +32,7 @@ const stock_pipe_1 = __importDefault(require("./helpers/pipes/stock-pipe"));
|
|
|
32
32
|
exports.StockPipe = stock_pipe_1.default;
|
|
33
33
|
const authService_1 = require("./services/authService");
|
|
34
34
|
Object.defineProperty(exports, "AuthService", { enumerable: true, get: function () { return authService_1.AuthService; } });
|
|
35
|
-
|
|
36
|
-
exports.CapacitorStorageService = capacitorStorageService_1.default;
|
|
35
|
+
// import CapacitorStorageService from "./services/capacitorStorageService";
|
|
37
36
|
const storageService_1 = __importDefault(require("./services/storageService"));
|
|
38
37
|
exports.StorageService = storageService_1.default;
|
|
39
38
|
require("./auth");
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare class CapacitorStorageService {
|
|
2
|
-
setStorage: (key: string, value: string) => Promise<void>;
|
|
3
|
-
getStorage: (key: string) => Promise<import("@capacitor/preferences").GetResult>;
|
|
4
|
-
removeName: (key: string) => Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: CapacitorStorageService;
|
|
7
|
-
export default _default;
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
constructor() {
|
|
15
|
-
this.setStorage = (key, value) => __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
yield preferences_1.Preferences.set({ key, value });
|
|
17
|
-
});
|
|
18
|
-
this.getStorage = (key) => __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
return yield preferences_1.Preferences.get({ key });
|
|
20
|
-
});
|
|
21
|
-
this.removeName = (key) => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
yield preferences_1.Preferences.remove({ key });
|
|
23
|
-
});
|
|
24
|
-
}
|
|
2
|
+
/* class CapacitorStorageService {
|
|
3
|
+
setStorage = async (key: string, value: string) => {
|
|
4
|
+
await Preferences.set({ key, value });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
getStorage = async (key: string) => {
|
|
8
|
+
return await Preferences.get({ key });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
removeName = async (key: string) => {
|
|
12
|
+
await Preferences.remove({ key });
|
|
13
|
+
};
|
|
25
14
|
}
|
|
26
|
-
|
|
15
|
+
|
|
16
|
+
export default new CapacitorStorageService(); */
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import AmountOnBillPipe from "./helpers/pipes/amount-on-bill-pipe";
|
|
|
5
5
|
import AmountOnListBillPipe from "./helpers/pipes/amount-on-list-bill-pipe";
|
|
6
6
|
import StockPipe from "./helpers/pipes/stock-pipe";
|
|
7
7
|
import { AuthService } from "./services/authService";
|
|
8
|
-
import CapacitorStorageService from "./services/capacitorStorageService";
|
|
9
8
|
import StorageService from "./services/storageService";
|
|
10
9
|
import "./auth";
|
|
11
10
|
import "./bill";
|
|
@@ -36,4 +35,4 @@ export * from "./react-utils";
|
|
|
36
35
|
export * from "./sale";
|
|
37
36
|
export * from "./user";
|
|
38
37
|
export * from "./utils";
|
|
39
|
-
export { AuthParam, getAuth, AuthService, StorageService,
|
|
38
|
+
export { AuthParam, getAuth, AuthService, StorageService, HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe, };
|
package/lib/esm/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import AmountOnBillPipe from "./helpers/pipes/amount-on-bill-pipe";
|
|
|
5
5
|
import AmountOnListBillPipe from "./helpers/pipes/amount-on-list-bill-pipe";
|
|
6
6
|
import StockPipe from "./helpers/pipes/stock-pipe";
|
|
7
7
|
import { AuthService } from "./services/authService";
|
|
8
|
-
import CapacitorStorageService from "./services/capacitorStorageService";
|
|
8
|
+
// import CapacitorStorageService from "./services/capacitorStorageService";
|
|
9
9
|
import StorageService from "./services/storageService";
|
|
10
10
|
import "./auth";
|
|
11
11
|
import "./bill";
|
|
@@ -41,4 +41,6 @@ export * from "./sale";
|
|
|
41
41
|
export * from "./user";
|
|
42
42
|
export * from "./utils";
|
|
43
43
|
// export * from "./helpers/hlpProduct";
|
|
44
|
-
export { getAuth, AuthService, StorageService,
|
|
44
|
+
export { getAuth, AuthService, StorageService,
|
|
45
|
+
// CapacitorStorageService,
|
|
46
|
+
HlpProduct, HlpEntry, StockPipe, AmountOnListBillPipe, AmountOnBillPipe, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare class CapacitorStorageService {
|
|
2
|
-
setStorage: (key: string, value: string) => Promise<void>;
|
|
3
|
-
getStorage: (key: string) => Promise<import("@capacitor/preferences").GetResult>;
|
|
4
|
-
removeName: (key: string) => Promise<void>;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: CapacitorStorageService;
|
|
7
|
-
export default _default;
|
|
@@ -1,24 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
yield Preferences.set({ key, value });
|
|
15
|
-
});
|
|
16
|
-
this.getStorage = (key) => __awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
return yield Preferences.get({ key });
|
|
18
|
-
});
|
|
19
|
-
this.removeName = (key) => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
yield Preferences.remove({ key });
|
|
21
|
-
});
|
|
22
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
/* class CapacitorStorageService {
|
|
3
|
+
setStorage = async (key: string, value: string) => {
|
|
4
|
+
await Preferences.set({ key, value });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
getStorage = async (key: string) => {
|
|
8
|
+
return await Preferences.get({ key });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
removeName = async (key: string) => {
|
|
12
|
+
await Preferences.remove({ key });
|
|
13
|
+
};
|
|
23
14
|
}
|
|
24
|
-
|
|
15
|
+
|
|
16
|
+
export default new CapacitorStorageService(); */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asv-hlps",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.60",
|
|
4
4
|
"description": "helpers",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"typescript": "^4.8.3"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@capacitor/preferences": "^4.0.1",
|
|
27
26
|
"axios": "^0.27.2",
|
|
28
27
|
"bcryptjs": "^2.4.3",
|
|
29
28
|
"classnames": "^2.3.1",
|