@sphereon/ssi-sdk.anomaly-detection 0.33.0 → 0.33.1-feature.vcdm2.tsup.18

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/package.json CHANGED
@@ -1,37 +1,48 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.anomaly-detection",
3
- "version": "0.33.0",
3
+ "version": "0.33.1-feature.vcdm2.tsup.18+1fbb8be0",
4
4
  "source": "src/index.ts",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "require": "./dist/index.cjs"
17
+ }
18
+ },
7
19
  "veramo": {
8
20
  "pluginInterfaces": {
9
21
  "IAnomalyDetection": "./src/types/IAnomalyDetection.ts"
10
22
  }
11
23
  },
12
24
  "scripts": {
13
- "build": "tsc",
14
- "build:clean": "tsc --build --clean && tsc --build",
25
+ "build": "tsup --config ../../tsup.config.ts --tsconfig ../../tsconfig.tsup.json",
15
26
  "generate-plugin-schema": "ts-node ../../packages/dev/bin/sphereon.js dev generate-plugin-schema"
16
27
  },
17
28
  "dependencies": {
18
- "@sphereon/ssi-sdk.geolocation-store": "0.33.0",
19
- "@sphereon/ssi-sdk.kv-store-temp": "0.33.0",
29
+ "@sphereon/ssi-sdk.geolocation-store": "^0.33.1-feature.vcdm2.tsup.18+1fbb8be0",
30
+ "@sphereon/ssi-sdk.kv-store-temp": "^0.33.1-feature.vcdm2.tsup.18+1fbb8be0",
20
31
  "cross-fetch": "^3.1.8",
21
32
  "debug": "^4.3.5",
22
33
  "dns-query": "^0.11.2",
23
34
  "mmdb-lib": "^2.1.1",
24
- "typeorm": "^0.3.21"
35
+ "typeorm": "^0.3.22"
25
36
  },
26
37
  "devDependencies": {
27
- "@sphereon/ssi-sdk.agent-config": "0.33.0",
38
+ "@sphereon/ssi-sdk.agent-config": "^0.33.1-feature.vcdm2.tsup.18+1fbb8be0",
28
39
  "@types/node": "^20.17.1",
29
40
  "@veramo/remote-client": "4.2.0",
30
41
  "@veramo/remote-server": "4.2.0"
31
42
  },
32
43
  "files": [
33
- "dist/**/*",
34
- "src/**/*",
44
+ "dist",
45
+ "src",
35
46
  "README.md",
36
47
  "plugin.schema.json",
37
48
  "LICENSE"
@@ -49,6 +60,5 @@
49
60
  "Veramo",
50
61
  "Anomaly Detection"
51
62
  ],
52
- "nx": {},
53
- "gitHead": "c575bdd6642bda761881f0152e0a70ddc82d7f61"
63
+ "gitHead": "1fbb8be0256ec8dbc1b52d860b7bfd09d12f0d00"
54
64
  }
@@ -12,13 +12,13 @@ export const anomalyDetectionMethods: Array<string> = ['lookupLocation']
12
12
  */
13
13
  export class AnomalyDetection implements IAgentPlugin {
14
14
  readonly schema = schema.IAnomalyDetection
15
- private readonly db: Buffer
15
+ private readonly db: Uint8Array
16
16
  private readonly dnsLookup?: DnsLookupFn
17
17
  readonly methods: IAnomalyDetection = {
18
18
  anomalyDetectionLookupLocation: this.anomalyDetectionLookupLocation.bind(this),
19
19
  }
20
20
 
21
- constructor(args: { geoIpDB: Buffer; dnsLookupCallback?: DnsLookupFn }) {
21
+ constructor(args: { geoIpDB: Uint8Array; dnsLookupCallback?: DnsLookupFn }) {
22
22
  const { geoIpDB, dnsLookupCallback } = { ...args }
23
23
  if (geoIpDB === undefined || geoIpDB === null) {
24
24
  throw new Error('The geoIpDB argument is required')
@@ -32,7 +32,7 @@ export class AnomalyDetection implements IAgentPlugin {
32
32
  context: IRequiredContext,
33
33
  ): Promise<AnomalyDetectionLookupLocationResult> {
34
34
  const { ipOrHostname, storeId, namespace } = { ...args }
35
- const reader = new Reader<CountryResponse>(this.db)
35
+ const reader = new Reader<CountryResponse>(Buffer.from(this.db))
36
36
  const ipv4Reg = '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])'
37
37
  const ipv6Reg =
38
38
  '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))'
@@ -65,25 +65,23 @@ export class AnomalyDetection implements IAgentPlugin {
65
65
  return this.dnsLookup(hostname)
66
66
  }
67
67
 
68
- // Fallback to Node.js dns
69
- let dns
68
+ // Fallback to Node dns
70
69
  try {
71
- dns = eval('require("dns")')
70
+ const dns = await import('dns')
71
+ return new Promise((resolve, reject) => {
72
+ dns.lookup(hostname, (error: NodeJS.ErrnoException | null, address: string, family: number) => {
73
+ if (error) {
74
+ reject(error)
75
+ return
76
+ }
77
+ resolve(address)
78
+ })
79
+ })
72
80
  } catch (e) {
73
81
  console.error(e)
74
82
  throw new Error(
75
83
  `DNS resolution not available on this platform, use the dnsLookupCallback in the AnomalyDetection constructor to implement DNS resolution for your platform.\r\n${e.message}`,
76
84
  )
77
85
  }
78
-
79
- return new Promise((resolve, reject) => {
80
- dns.lookup(hostname, (error: NodeJS.ErrnoException | null, address: string, family: number) => {
81
- if (error) {
82
- reject(error)
83
- return
84
- }
85
- resolve(address)
86
- })
87
- })
88
86
  }
89
87
  }
@@ -1,21 +0,0 @@
1
- import { IAgentPlugin } from '@veramo/core';
2
- import { IAnomalyDetection } from '../index';
3
- type DnsLookupFn = (hostname: string) => Promise<string>;
4
- export declare const anomalyDetectionMethods: Array<string>;
5
- /**
6
- * {@inheritDoc IAnomalyDetection}
7
- */
8
- export declare class AnomalyDetection implements IAgentPlugin {
9
- readonly schema: any;
10
- private readonly db;
11
- private readonly dnsLookup?;
12
- readonly methods: IAnomalyDetection;
13
- constructor(args: {
14
- geoIpDB: Buffer;
15
- dnsLookupCallback?: DnsLookupFn;
16
- });
17
- private anomalyDetectionLookupLocation;
18
- private resolveDns;
19
- }
20
- export {};
21
- //# sourceMappingURL=AnomalyDetection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnomalyDetection.d.ts","sourceRoot":"","sources":["../../src/agent/AnomalyDetection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,OAAO,EAA4E,iBAAiB,EAA4B,MAAM,UAAU,CAAA;AAEhJ,KAAK,WAAW,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAExD,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAsB,CAAA;AAExE;;GAEG;AACH,qBAAa,gBAAiB,YAAW,YAAY;IACnD,QAAQ,CAAC,MAAM,MAA2B;IAC1C,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAa;IACxC,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAElC;gBAEW,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,WAAW,CAAA;KAAE;YASxD,8BAA8B;YAiC9B,UAAU;CA0BzB"}
@@ -1,89 +0,0 @@
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.AnomalyDetection = exports.anomalyDetectionMethods = void 0;
13
- const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
14
- const mmdb_lib_1 = require("mmdb-lib");
15
- const index_1 = require("../index");
16
- exports.anomalyDetectionMethods = ['lookupLocation'];
17
- /**
18
- * {@inheritDoc IAnomalyDetection}
19
- */
20
- class AnomalyDetection {
21
- constructor(args) {
22
- this.schema = index_1.schema.IAnomalyDetection;
23
- this.methods = {
24
- anomalyDetectionLookupLocation: this.anomalyDetectionLookupLocation.bind(this),
25
- };
26
- const { geoIpDB, dnsLookupCallback } = Object.assign({}, args);
27
- if (geoIpDB === undefined || geoIpDB === null) {
28
- throw new Error('The geoIpDB argument is required');
29
- }
30
- this.db = geoIpDB;
31
- this.dnsLookup = dnsLookupCallback;
32
- }
33
- anomalyDetectionLookupLocation(args, context) {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- var _a, _b;
36
- const { ipOrHostname, storeId, namespace } = Object.assign({}, args);
37
- const reader = new mmdb_lib_1.Reader(this.db);
38
- const ipv4Reg = '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
39
- const ipv6Reg = '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))';
40
- let result;
41
- if (!new RegExp(ipv4Reg).test(ipOrHostname) && !new RegExp(ipv6Reg).test(ipOrHostname)) {
42
- const ip = yield this.resolveDns(ipOrHostname);
43
- result = reader.get(ip);
44
- }
45
- else {
46
- result = reader.get(ipOrHostname);
47
- }
48
- const lookupResult = {
49
- continent: (_a = result === null || result === void 0 ? void 0 : result.continent) === null || _a === void 0 ? void 0 : _a.code,
50
- country: (_b = result === null || result === void 0 ? void 0 : result.country) === null || _b === void 0 ? void 0 : _b.iso_code,
51
- };
52
- if ((0, ssi_sdk_agent_config_1.contextHasPlugin)(context, 'geolocationStorePersistLocation'))
53
- yield context.agent.geolocationStorePersistLocation({
54
- namespace,
55
- storeId,
56
- ipOrHostname,
57
- locationArgs: lookupResult,
58
- });
59
- return Promise.resolve(lookupResult);
60
- });
61
- }
62
- resolveDns(hostname) {
63
- return __awaiter(this, void 0, void 0, function* () {
64
- if (this.dnsLookup) {
65
- return this.dnsLookup(hostname);
66
- }
67
- // Fallback to Node.js dns
68
- let dns;
69
- try {
70
- dns = eval('require("dns")');
71
- }
72
- catch (e) {
73
- console.error(e);
74
- throw new Error(`DNS resolution not available on this platform, use the dnsLookupCallback in the AnomalyDetection constructor to implement DNS resolution for your platform.\r\n${e.message}`);
75
- }
76
- return new Promise((resolve, reject) => {
77
- dns.lookup(hostname, (error, address, family) => {
78
- if (error) {
79
- reject(error);
80
- return;
81
- }
82
- resolve(address);
83
- });
84
- });
85
- });
86
- }
87
- }
88
- exports.AnomalyDetection = AnomalyDetection;
89
- //# sourceMappingURL=AnomalyDetection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnomalyDetection.js","sourceRoot":"","sources":["../../src/agent/AnomalyDetection.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,MAAM,MAAM,KAAmC,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AACpF,cAAc,2BAA2B,CAAA"}
@@ -1,47 +0,0 @@
1
- import { GeolocationStoreArgs } from '@sphereon/ssi-sdk.geolocation-store';
2
- import { IAgentContext } from '@veramo/core';
3
- import { IAgentPlugin } from '@veramo/core';
4
- import { IGeolocationStore } from '@sphereon/ssi-sdk.geolocation-store';
5
- import { IPluginMethodMap } from '@veramo/core';
6
-
7
- /**
8
- * {@inheritDoc IAnomalyDetection}
9
- */
10
- export declare class AnomalyDetection implements IAgentPlugin {
11
- readonly schema: any;
12
- private readonly db;
13
- private readonly dnsLookup?;
14
- readonly methods: IAnomalyDetection;
15
- constructor(args: {
16
- geoIpDB: Buffer;
17
- dnsLookupCallback?: DnsLookupFn;
18
- });
19
- private anomalyDetectionLookupLocation;
20
- private resolveDns;
21
- }
22
-
23
- export declare type AnomalyDetectionLookupLocationArgs = PartialBy<GeolocationStoreArgs, 'storeId' | 'namespace'>;
24
-
25
- export declare type AnomalyDetectionLookupLocationResult = {
26
- continent?: string;
27
- country?: string;
28
- };
29
-
30
- export declare const anomalyDetectionMethods: Array<string>;
31
-
32
- declare type DnsLookupFn = (hostname: string) => Promise<string>;
33
-
34
- export declare interface IAnomalyDetection extends IPluginMethodMap {
35
- anomalyDetectionLookupLocation(args: AnomalyDetectionLookupLocationArgs, context: IRequiredContext): Promise<AnomalyDetectionLookupLocationResult>;
36
- }
37
-
38
- export declare type IRequiredContext = IAgentContext<IGeolocationStore>;
39
-
40
- export declare type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
41
-
42
- /**
43
- * @public
44
- */
45
- export declare const schema: any;
46
-
47
- export { }
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.52.1"
9
- }
10
- ]
11
- }
@@ -1,13 +0,0 @@
1
- import { IAgentContext, IPluginMethodMap } from '@veramo/core';
2
- import { GeolocationStoreArgs, IGeolocationStore } from '@sphereon/ssi-sdk.geolocation-store';
3
- export interface IAnomalyDetection extends IPluginMethodMap {
4
- anomalyDetectionLookupLocation(args: AnomalyDetectionLookupLocationArgs, context: IRequiredContext): Promise<AnomalyDetectionLookupLocationResult>;
5
- }
6
- export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
7
- export type AnomalyDetectionLookupLocationArgs = PartialBy<GeolocationStoreArgs, 'storeId' | 'namespace'>;
8
- export type AnomalyDetectionLookupLocationResult = {
9
- continent?: string;
10
- country?: string;
11
- };
12
- export type IRequiredContext = IAgentContext<IGeolocationStore>;
13
- //# sourceMappingURL=IAnomalyDetection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAnomalyDetection.d.ts","sourceRoot":"","sources":["../../src/types/IAnomalyDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAE7F,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,8BAA8B,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAA;CACnJ;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAE9E,MAAM,MAAM,kCAAkC,GAAG,SAAS,CAAC,oBAAoB,EAAE,SAAS,GAAG,WAAW,CAAC,CAAA;AAEzG,MAAM,MAAM,oCAAoC,GAAG;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IAnomalyDetection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAnomalyDetection.js","sourceRoot":"","sources":["../../src/types/IAnomalyDetection.ts"],"names":[],"mappings":""}