@sphereon/ssi-sdk.geolocation-store 0.32.1-next.54 → 0.33.1-feature.vcdm2.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.
@@ -1,18 +1,6 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GeolocationStore = exports.geolocationStoreMethods = void 0;
13
- const index_1 = require("../index");
14
- const ssi_sdk_kv_store_temp_1 = require("@sphereon/ssi-sdk.kv-store-temp");
15
- exports.geolocationStoreMethods = [
1
+ import { schema, } from '../index';
2
+ import { KeyValueStore } from '@sphereon/ssi-sdk.kv-store-temp';
3
+ export const geolocationStoreMethods = [
16
4
  'geolocationStorePersistLocation',
17
5
  'geolocationStoreHasLocation',
18
6
  'geolocationStoreRemoveLocation',
@@ -23,79 +11,71 @@ exports.geolocationStoreMethods = [
23
11
  /**
24
12
  * {@inheritDoc IGeolocationStore}
25
13
  */
26
- class GeolocationStore {
14
+ export class GeolocationStore {
15
+ schema = schema.IAnomalyDetectionStore;
16
+ defaultStoreId;
17
+ defaultNamespace;
18
+ _dnsLookupStore;
19
+ methods = {
20
+ geolocationStorePersistLocation: this.geolocationStorePersistLocation.bind(this),
21
+ geolocationStoreHasLocation: this.geolocationStoreHasLocation.bind(this),
22
+ geolocationStoreRemoveLocation: this.geolocationStoreRemoveLocation.bind(this),
23
+ geolocationStoreClearAllLocations: this.geolocationStoreClearAllLocations.bind(this),
24
+ geolocationStoreGetLocation: this.geolocationStoreGetLocation.bind(this),
25
+ geolocationStoreDefaultLocationStore: this.geolocationStoreDefaultLocationStore.bind(this),
26
+ };
27
27
  constructor(args) {
28
- var _a, _b;
29
- this.schema = index_1.schema.IAnomalyDetectionStore;
30
- this.methods = {
31
- geolocationStorePersistLocation: this.geolocationStorePersistLocation.bind(this),
32
- geolocationStoreHasLocation: this.geolocationStoreHasLocation.bind(this),
33
- geolocationStoreRemoveLocation: this.geolocationStoreRemoveLocation.bind(this),
34
- geolocationStoreClearAllLocations: this.geolocationStoreClearAllLocations.bind(this),
35
- geolocationStoreGetLocation: this.geolocationStoreGetLocation.bind(this),
36
- geolocationStoreDefaultLocationStore: this.geolocationStoreDefaultLocationStore.bind(this),
37
- };
38
- this.defaultStoreId = (_a = args === null || args === void 0 ? void 0 : args.defaultStoreId) !== null && _a !== void 0 ? _a : '_default';
39
- this.defaultNamespace = (_b = args === null || args === void 0 ? void 0 : args.defaultNamespace) !== null && _b !== void 0 ? _b : 'anomaly-detection';
40
- if ((args === null || args === void 0 ? void 0 : args.dnsLookupStore) !== undefined && (args === null || args === void 0 ? void 0 : args.dnsLookupStore) !== null && args.dnsLookupStore instanceof Map) {
28
+ this.defaultStoreId = args?.defaultStoreId ?? '_default';
29
+ this.defaultNamespace = args?.defaultNamespace ?? 'anomaly-detection';
30
+ if (args?.dnsLookupStore !== undefined && args?.dnsLookupStore !== null && args.dnsLookupStore instanceof Map) {
41
31
  this._dnsLookupStore = args.dnsLookupStore;
42
32
  }
43
33
  else {
44
- this._dnsLookupStore = new Map().set(this.defaultStoreId, new ssi_sdk_kv_store_temp_1.KeyValueStore({
34
+ this._dnsLookupStore = new Map().set(this.defaultStoreId, new KeyValueStore({
45
35
  namespace: this.defaultNamespace,
46
36
  store: new Map(),
47
37
  }));
48
38
  }
49
39
  }
50
- geolocationStorePersistLocation(args) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- const storeId = this.storeIdStr(args);
53
- const namespace = this.namespaceStr(args);
54
- const { ipOrHostname, locationArgs, ttl } = args;
55
- if ((args === null || args === void 0 ? void 0 : args.validation) !== false) {
56
- // TODO
57
- }
58
- const existing = yield this.store({ stores: this._dnsLookupStore, storeId }).getAsValueData(this.prefix({
40
+ async geolocationStorePersistLocation(args) {
41
+ const storeId = this.storeIdStr(args);
42
+ const namespace = this.namespaceStr(args);
43
+ const { ipOrHostname, locationArgs, ttl } = args;
44
+ if (args?.validation !== false) {
45
+ // TODO
46
+ }
47
+ const existing = await this.store({ stores: this._dnsLookupStore, storeId }).getAsValueData(this.prefix({
48
+ namespace,
49
+ ipOrHostname,
50
+ }));
51
+ if (!existing.value || (existing.value && args?.overwriteExisting !== false)) {
52
+ return await this.store({ stores: this._dnsLookupStore, storeId }).set(this.prefix({
59
53
  namespace,
60
54
  ipOrHostname,
61
- }));
62
- if (!existing.value || (existing.value && (args === null || args === void 0 ? void 0 : args.overwriteExisting) !== false)) {
63
- return yield this.store({ stores: this._dnsLookupStore, storeId }).set(this.prefix({
64
- namespace,
65
- ipOrHostname,
66
- }), locationArgs, ttl);
67
- }
68
- return existing;
69
- });
55
+ }), locationArgs, ttl);
56
+ }
57
+ return existing;
70
58
  }
71
- geolocationStoreHasLocation(args) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const { storeId, namespace, ipOrHostname } = Object.assign({}, args);
74
- return this.store({ stores: this._dnsLookupStore, storeId }).has(this.prefix({ namespace, ipOrHostname }));
75
- });
59
+ async geolocationStoreHasLocation(args) {
60
+ const { storeId, namespace, ipOrHostname } = { ...args };
61
+ return this.store({ stores: this._dnsLookupStore, storeId }).has(this.prefix({ namespace, ipOrHostname }));
76
62
  }
77
- geolocationStoreRemoveLocation(args) {
78
- return __awaiter(this, void 0, void 0, function* () {
79
- const { storeId, namespace, ipOrHostname } = Object.assign({}, args);
80
- return this.store({ stores: this._dnsLookupStore, storeId }).delete(this.prefix({ namespace, ipOrHostname }));
81
- });
63
+ async geolocationStoreRemoveLocation(args) {
64
+ const { storeId, namespace, ipOrHostname } = { ...args };
65
+ return this.store({ stores: this._dnsLookupStore, storeId }).delete(this.prefix({ namespace, ipOrHostname }));
82
66
  }
83
- geolocationStoreClearAllLocations(args) {
84
- return __awaiter(this, void 0, void 0, function* () {
85
- const { storeId } = Object.assign({}, args);
86
- return yield this.store({ stores: this._dnsLookupStore, storeId })
87
- .clear()
88
- .then(() => true);
89
- });
67
+ async geolocationStoreClearAllLocations(args) {
68
+ const { storeId } = { ...args };
69
+ return await this.store({ stores: this._dnsLookupStore, storeId })
70
+ .clear()
71
+ .then(() => true);
90
72
  }
91
- geolocationStoreGetLocation(args) {
92
- return __awaiter(this, void 0, void 0, function* () {
93
- const { storeId, namespace, ipOrHostname } = Object.assign({}, args);
94
- return this.store({
95
- stores: this._dnsLookupStore,
96
- storeId,
97
- }).get(this.prefix({ namespace, ipOrHostname }));
98
- });
73
+ async geolocationStoreGetLocation(args) {
74
+ const { storeId, namespace, ipOrHostname } = { ...args };
75
+ return this.store({
76
+ stores: this._dnsLookupStore,
77
+ storeId,
78
+ }).get(this.prefix({ namespace, ipOrHostname }));
99
79
  }
100
80
  store(args) {
101
81
  const storeId = this.storeIdStr({ storeId: args.storeId });
@@ -106,17 +86,16 @@ class GeolocationStore {
106
86
  return store;
107
87
  }
108
88
  storeIdStr({ storeId }) {
109
- return storeId !== null && storeId !== void 0 ? storeId : this.defaultStoreId;
89
+ return storeId ?? this.defaultStoreId;
110
90
  }
111
91
  geolocationStoreDefaultLocationStore() {
112
92
  return Promise.resolve(this.store({ stores: this._dnsLookupStore, storeId: this.defaultStoreId }));
113
93
  }
114
94
  namespaceStr({ namespace }) {
115
- return namespace !== null && namespace !== void 0 ? namespace : this.defaultNamespace;
95
+ return namespace ?? this.defaultNamespace;
116
96
  }
117
97
  prefix({ namespace, ipOrHostname }) {
118
98
  return `${this.namespaceStr({ namespace })}:${ipOrHostname}`;
119
99
  }
120
100
  }
121
- exports.GeolocationStore = GeolocationStore;
122
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G,CAAC,OAAO,CAAC,CAAA;QACtC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,KAAK,CAAC,oCAAoC,OAAO,EAAE,CAAC,CAAA;QAC5D,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,UAAU,CAAC,EAAE,OAAO,EAAwB;QAClD,OAAO,OAAO,IAAI,IAAI,CAAC,cAAc,CAAA;IACvC,CAAC;IAEO,oCAAoC;QAC1C,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;IACpG,CAAC;IAEO,YAAY,CAAC,EAAE,SAAS,EAA0B;QACxD,OAAO,SAAS,IAAI,IAAI,CAAC,gBAAgB,CAAA;IAC3C,CAAC;IAEO,MAAM,CAAC,EAAE,SAAS,EAAE,YAAY,EAAgD;QACtF,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,YAAY,EAAE,CAAA;IAC9D,CAAC;CACF"}
package/dist/index.js CHANGED
@@ -1,27 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.geolocationStoreMethods = exports.GeolocationStore = exports.schema = void 0;
18
1
  /**
19
2
  * @public
20
3
  */
21
4
  const schema = require('../plugin.schema.json');
22
- exports.schema = schema;
23
- var GeolocationStore_1 = require("./agent/GeolocationStore");
24
- Object.defineProperty(exports, "GeolocationStore", { enumerable: true, get: function () { return GeolocationStore_1.GeolocationStore; } });
25
- Object.defineProperty(exports, "geolocationStoreMethods", { enumerable: true, get: function () { return GeolocationStore_1.geolocationStoreMethods; } });
26
- __exportStar(require("./types/IGeolocationStore"), exports);
5
+ export { schema };
6
+ export { GeolocationStore, geolocationStoreMethods } from './agent/GeolocationStore';
7
+ export * from './types/IGeolocationStore';
27
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,MAAM,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;AACtC,wBAAM;AACf,6DAAoF;AAA3E,oHAAA,gBAAgB,OAAA;AAAE,2HAAA,uBAAuB,OAAA;AAClD,4DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AACpF,cAAc,2BAA2B,CAAA"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.0"
8
+ "packageVersion": "7.52.1"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=IGeolocationStore.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.geolocation-store",
3
- "version": "0.32.1-next.54+3b988a2b",
3
+ "version": "0.33.1-feature.vcdm2.4+9f634bdb",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,14 +15,14 @@
15
15
  "generate-plugin-schema": "ts-node ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
16
16
  },
17
17
  "dependencies": {
18
- "@sphereon/ssi-sdk.kv-store-temp": "0.32.1-next.54+3b988a2b"
18
+ "@sphereon/ssi-sdk.kv-store-temp": "0.33.1-feature.vcdm2.4+9f634bdb"
19
19
  },
20
20
  "devDependencies": {
21
- "@sphereon/ssi-sdk.agent-config": "0.32.1-next.54+3b988a2b",
21
+ "@sphereon/ssi-sdk.agent-config": "0.33.1-feature.vcdm2.4+9f634bdb",
22
22
  "@types/node": "^20.17.1",
23
23
  "@veramo/remote-client": "4.2.0",
24
24
  "@veramo/remote-server": "4.2.0",
25
- "typeorm": "^0.3.20"
25
+ "typeorm": "^0.3.21"
26
26
  },
27
27
  "files": [
28
28
  "dist/**/*",
@@ -46,5 +46,5 @@
46
46
  "Anomaly Detection Store"
47
47
  ],
48
48
  "nx": {},
49
- "gitHead": "3b988a2bb62a7c4534a2670ea3a0985fd93d00f2"
49
+ "gitHead": "9f634bdb714061141e277508c124b08d626f6036"
50
50
  }