septor-store 1.2.3 → 1.2.4
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/dist/index.cjs +5 -7
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +5 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -110,7 +110,8 @@ function setUpAxiosToUse(setUp) {
|
|
|
110
110
|
axiosSetUps = setUp ?? custom_axios_default;
|
|
111
111
|
}
|
|
112
112
|
var useFetch = async ({ url, method, data = {}, config }) => {
|
|
113
|
-
|
|
113
|
+
console.log(method, "------");
|
|
114
|
+
const uniformMethod = `${method}`.toLowerCase();
|
|
114
115
|
const headerC = {
|
|
115
116
|
...config,
|
|
116
117
|
headers: {
|
|
@@ -178,11 +179,11 @@ function getBearerToken() {
|
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
// src/StoreManager/pomStateManagement.js
|
|
181
|
-
function
|
|
182
|
+
function createPomStore(piniaStore = "7286204094", callBack = null, ds = { StateClean: 0, extenalSetup: null }) {
|
|
182
183
|
setUpAxiosToUse(ds == null ? void 0 : ds.extenalSetup);
|
|
183
184
|
const storeId = "POM" + piniaStore;
|
|
184
185
|
const StateNameUsedSoferList = "septor-store-collection";
|
|
185
|
-
|
|
186
|
+
const piniaData = (0, import_pinia.defineStore)(storeId, {
|
|
186
187
|
state: () => {
|
|
187
188
|
const StateObjectsContainer = {
|
|
188
189
|
CheckQueriesInQue: {},
|
|
@@ -273,7 +274,6 @@ function motherCreatePomStore(piniaStore = "7286204094", callBack = null, ds = {
|
|
|
273
274
|
pagnated: false,
|
|
274
275
|
mStore: { mUse: 0, reset: 0 }
|
|
275
276
|
}, fasterDataCollection = null) {
|
|
276
|
-
alert("stateGenaratorApi");
|
|
277
277
|
this.Loading = true;
|
|
278
278
|
const { reload, StateStore, reqs, time, pagnated, mStore, config } = dd;
|
|
279
279
|
const callApi = JSON.stringify(reqs);
|
|
@@ -350,9 +350,7 @@ function motherCreatePomStore(piniaStore = "7286204094", callBack = null, ds = {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
|
|
354
|
-
function createPomStore() {
|
|
355
|
-
return motherCreatePomStore();
|
|
353
|
+
return piniaData();
|
|
356
354
|
}
|
|
357
355
|
// Annotate the CommonJS export names for ESM import in node:
|
|
358
356
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -64,7 +64,9 @@ function setUpAxiosToUse(setUp) {
|
|
|
64
64
|
axiosSetUps = setUp??customAxios;
|
|
65
65
|
}
|
|
66
66
|
const useFetch = async ({ url, method, data = {}, config }) => {
|
|
67
|
-
|
|
67
|
+
console.log(method,'------');
|
|
68
|
+
|
|
69
|
+
const uniformMethod = `${method}`.toLowerCase();
|
|
68
70
|
const headerC = {
|
|
69
71
|
...config,
|
|
70
72
|
headers: {
|
|
@@ -138,7 +140,7 @@ function getBearerToken() {
|
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
|
|
141
|
-
function
|
|
143
|
+
function createPomStore(
|
|
142
144
|
piniaStore = "7286204094",
|
|
143
145
|
callBack = null,
|
|
144
146
|
ds = { StateClean: 0, extenalSetup: null },
|
|
@@ -146,7 +148,7 @@ function motherCreatePomStore(
|
|
|
146
148
|
setUpAxiosToUse(ds?.extenalSetup);
|
|
147
149
|
const storeId = "POM" + piniaStore;
|
|
148
150
|
const StateNameUsedSoferList = "septor-store-collection";
|
|
149
|
-
|
|
151
|
+
const piniaData= defineStore(storeId, {
|
|
150
152
|
state: () => {
|
|
151
153
|
const StateObjectsContainer = {
|
|
152
154
|
CheckQueriesInQue: {},
|
|
@@ -270,7 +272,6 @@ function motherCreatePomStore(
|
|
|
270
272
|
},
|
|
271
273
|
fasterDataCollection = null,
|
|
272
274
|
) {
|
|
273
|
-
alert("stateGenaratorApi");
|
|
274
275
|
this.Loading = true;
|
|
275
276
|
const { reload, StateStore, reqs, time, pagnated, mStore, config } = dd;
|
|
276
277
|
const callApi = JSON.stringify(reqs);
|
|
@@ -321,7 +322,7 @@ function motherCreatePomStore(
|
|
|
321
322
|
pagnated,
|
|
322
323
|
mStore,
|
|
323
324
|
config,
|
|
324
|
-
);
|
|
325
|
+
);
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
this.Loading = false;
|
|
@@ -361,11 +362,12 @@ function motherCreatePomStore(
|
|
|
361
362
|
pagenatedData() {},
|
|
362
363
|
},
|
|
363
364
|
});
|
|
365
|
+
return piniaData();
|
|
364
366
|
}
|
|
365
367
|
|
|
366
|
-
function createPomStore() {
|
|
367
|
-
|
|
368
|
-
}
|
|
368
|
+
// export default function createPomStore() {
|
|
369
|
+
// return motherCreatePomStore();
|
|
370
|
+
// }
|
|
369
371
|
|
|
370
372
|
// module.e = createPomStore
|
|
371
373
|
|
package/dist/index.d.ts
CHANGED
|
@@ -64,7 +64,9 @@ function setUpAxiosToUse(setUp) {
|
|
|
64
64
|
axiosSetUps = setUp??customAxios;
|
|
65
65
|
}
|
|
66
66
|
const useFetch = async ({ url, method, data = {}, config }) => {
|
|
67
|
-
|
|
67
|
+
console.log(method,'------');
|
|
68
|
+
|
|
69
|
+
const uniformMethod = `${method}`.toLowerCase();
|
|
68
70
|
const headerC = {
|
|
69
71
|
...config,
|
|
70
72
|
headers: {
|
|
@@ -138,7 +140,7 @@ function getBearerToken() {
|
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
|
|
141
|
-
function
|
|
143
|
+
function createPomStore(
|
|
142
144
|
piniaStore = "7286204094",
|
|
143
145
|
callBack = null,
|
|
144
146
|
ds = { StateClean: 0, extenalSetup: null },
|
|
@@ -146,7 +148,7 @@ function motherCreatePomStore(
|
|
|
146
148
|
setUpAxiosToUse(ds?.extenalSetup);
|
|
147
149
|
const storeId = "POM" + piniaStore;
|
|
148
150
|
const StateNameUsedSoferList = "septor-store-collection";
|
|
149
|
-
|
|
151
|
+
const piniaData= defineStore(storeId, {
|
|
150
152
|
state: () => {
|
|
151
153
|
const StateObjectsContainer = {
|
|
152
154
|
CheckQueriesInQue: {},
|
|
@@ -270,7 +272,6 @@ function motherCreatePomStore(
|
|
|
270
272
|
},
|
|
271
273
|
fasterDataCollection = null,
|
|
272
274
|
) {
|
|
273
|
-
alert("stateGenaratorApi");
|
|
274
275
|
this.Loading = true;
|
|
275
276
|
const { reload, StateStore, reqs, time, pagnated, mStore, config } = dd;
|
|
276
277
|
const callApi = JSON.stringify(reqs);
|
|
@@ -321,7 +322,7 @@ function motherCreatePomStore(
|
|
|
321
322
|
pagnated,
|
|
322
323
|
mStore,
|
|
323
324
|
config,
|
|
324
|
-
);
|
|
325
|
+
);
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
this.Loading = false;
|
|
@@ -361,11 +362,12 @@ function motherCreatePomStore(
|
|
|
361
362
|
pagenatedData() {},
|
|
362
363
|
},
|
|
363
364
|
});
|
|
365
|
+
return piniaData();
|
|
364
366
|
}
|
|
365
367
|
|
|
366
|
-
function createPomStore() {
|
|
367
|
-
|
|
368
|
-
}
|
|
368
|
+
// export default function createPomStore() {
|
|
369
|
+
// return motherCreatePomStore();
|
|
370
|
+
// }
|
|
369
371
|
|
|
370
372
|
// module.e = createPomStore
|
|
371
373
|
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,8 @@ function setUpAxiosToUse(setUp) {
|
|
|
69
69
|
axiosSetUps = setUp ?? custom_axios_default;
|
|
70
70
|
}
|
|
71
71
|
var useFetch = async ({ url, method, data = {}, config }) => {
|
|
72
|
-
|
|
72
|
+
console.log(method, "------");
|
|
73
|
+
const uniformMethod = `${method}`.toLowerCase();
|
|
73
74
|
const headerC = {
|
|
74
75
|
...config,
|
|
75
76
|
headers: {
|
|
@@ -137,11 +138,11 @@ function getBearerToken() {
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
// src/StoreManager/pomStateManagement.js
|
|
140
|
-
function
|
|
141
|
+
function createPomStore(piniaStore = "7286204094", callBack = null, ds = { StateClean: 0, extenalSetup: null }) {
|
|
141
142
|
setUpAxiosToUse(ds == null ? void 0 : ds.extenalSetup);
|
|
142
143
|
const storeId = "POM" + piniaStore;
|
|
143
144
|
const StateNameUsedSoferList = "septor-store-collection";
|
|
144
|
-
|
|
145
|
+
const piniaData = defineStore(storeId, {
|
|
145
146
|
state: () => {
|
|
146
147
|
const StateObjectsContainer = {
|
|
147
148
|
CheckQueriesInQue: {},
|
|
@@ -232,7 +233,6 @@ function motherCreatePomStore(piniaStore = "7286204094", callBack = null, ds = {
|
|
|
232
233
|
pagnated: false,
|
|
233
234
|
mStore: { mUse: 0, reset: 0 }
|
|
234
235
|
}, fasterDataCollection = null) {
|
|
235
|
-
alert("stateGenaratorApi");
|
|
236
236
|
this.Loading = true;
|
|
237
237
|
const { reload, StateStore, reqs, time, pagnated, mStore, config } = dd;
|
|
238
238
|
const callApi = JSON.stringify(reqs);
|
|
@@ -309,9 +309,7 @@ function motherCreatePomStore(piniaStore = "7286204094", callBack = null, ds = {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
|
-
|
|
313
|
-
function createPomStore() {
|
|
314
|
-
return motherCreatePomStore();
|
|
312
|
+
return piniaData();
|
|
315
313
|
}
|
|
316
314
|
export {
|
|
317
315
|
generateParams,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A powerful, modular state management solution for Vue 3 applications, built on top of Pinia. Septor Store leverages the Plain Old Module (POM) pattern to provide dynamic store generation, intelligent API request handling, smart caching, and clean separation of concerns—making it ideal for scalable, maintainable, and high-performance frontend development.",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "1.2.
|
|
6
|
+
"version": "1.2.4",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.cjs",
|
|
9
9
|
"module": "dist/index.js",
|