@expo/entity-ip-address-field 0.41.0 → 0.43.0

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,4 +1,4 @@
1
1
  import { EntityFieldDefinition } from '@expo/entity';
2
- export declare class IPAddressField extends EntityFieldDefinition<string> {
2
+ export declare class IPAddressField<TRequireExplicitCache extends boolean> extends EntityFieldDefinition<string, TRequireExplicitCache> {
3
3
  protected validateInputValueInternal(value: string): boolean;
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EntityFields.js","sourceRoot":"","sources":["../src/EntityFields.ts"],"names":[],"mappings":";;;AAAA,yCAAqD;AACrD,2CAAgD;AAEhD,MAAa,cAAe,SAAQ,8BAA6B;IACrD,0BAA0B,CAAC,KAAa;QAChD,OAAO,qBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,qBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5D,CAAC;CACF;AAJD,wCAIC"}
1
+ {"version":3,"file":"EntityFields.js","sourceRoot":"","sources":["../src/EntityFields.ts"],"names":[],"mappings":";;;AAAA,yCAAqD;AACrD,2CAAgD;AAEhD,MAAa,cAAsD,SAAQ,8BAG1E;IACW,0BAA0B,CAAC,KAAa;QAChD,OAAO,qBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,qBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5D,CAAC;CACF;AAPD,wCAOC"}
@@ -0,0 +1 @@
1
+ {"root":["../src/entityfields.ts","../src/index.ts"],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/entity-ip-address-field",
3
- "version": "0.41.0",
3
+ "version": "0.43.0",
4
4
  "description": "IP address EntityField definitions for @expo/entity",
5
5
  "files": [
6
6
  "build",
@@ -10,6 +10,7 @@
10
10
  "types": "build/index.d.ts",
11
11
  "scripts": {
12
12
  "tsc": "tsc",
13
+ "build": "tsc -b tsconfig.build.json",
13
14
  "clean": "rm -rf build coverage coverage-integration",
14
15
  "lint": "eslint src",
15
16
  "lint-fix": "eslint src --fix",
@@ -25,12 +26,12 @@
25
26
  "author": "Expo",
26
27
  "license": "MIT",
27
28
  "dependencies": {
28
- "@expo/entity": "^0.41.0",
29
- "ip-address": "^8.1.0"
29
+ "@expo/entity": "^0.43.0",
30
+ "ip-address": "^10.0.1"
30
31
  },
31
32
  "devDependencies": {
32
- "@types/jest": "^29.5.12",
33
- "@types/jsbn": "^1.2.29",
33
+ "@expo/entity-testing-utils": "^0.43.0",
34
+ "@types/jest": "^29.5.14",
34
35
  "@types/node": "^20.14.1",
35
36
  "ctix": "^2.7.0",
36
37
  "eslint": "^8.57.1",
@@ -39,9 +40,9 @@
39
40
  "jest": "^29.7.0",
40
41
  "prettier": "^3.3.3",
41
42
  "prettier-plugin-organize-imports": "^4.1.0",
42
- "ts-jest": "^29.2.5",
43
+ "ts-jest": "^29.3.1",
43
44
  "ts-mockito": "^2.6.1",
44
- "typescript": "^5.7.3"
45
+ "typescript": "^5.8.3"
45
46
  },
46
- "gitHead": "ee4be736a9a0ba580e9af0194e07c9cd36b1c599"
47
+ "gitHead": "618383027dc76b9250f22d163321ec25e2af0115"
47
48
  }
@@ -1,7 +1,10 @@
1
1
  import { EntityFieldDefinition } from '@expo/entity';
2
2
  import { Address4, Address6 } from 'ip-address';
3
3
 
4
- export class IPAddressField extends EntityFieldDefinition<string> {
4
+ export class IPAddressField<TRequireExplicitCache extends boolean> extends EntityFieldDefinition<
5
+ string,
6
+ TRequireExplicitCache
7
+ > {
5
8
  protected validateInputValueInternal(value: string): boolean {
6
9
  return Address4.isValid(value) || Address6.isValid(value);
7
10
  }
@@ -1,4 +1,4 @@
1
- import { describeFieldTestCase } from '@expo/entity';
1
+ import { describeFieldTestCase } from '@expo/entity-testing-utils';
2
2
 
3
3
  import { IPAddressField } from '../EntityFields';
4
4
 
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # @expo/entity-ip-address-field
2
-
3
- A package containing the IP address EntityField definitions for @expo/entity. Supports addresses with either IPv4 or IPv6 syntax.
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const entity_1 = require("@expo/entity");
4
- const EntityFields_1 = require("../EntityFields");
5
- (0, entity_1.describeFieldTestCase)(new EntityFields_1.IPAddressField({ columnName: 'wat' }), [
6
- '192.168.1.1',
7
- '198.24.10.0/24',
8
- '10.0.0.0',
9
- '0:1:2:3:4:5:6:7',
10
- '1:2:3:4:5:6:7:8/64',
11
- 'fedc:ba98:7654:3210:fedc:ba98:7654:3210',
12
- ], ['', 'abs', '0.0.0.x/0', '123.21.23', '1:2:3:4:5:6', '198.10/8']);
13
- //# sourceMappingURL=EntityFields-test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EntityFields-test.js","sourceRoot":"","sources":["../../src/__tests__/EntityFields-test.ts"],"names":[],"mappings":";;AAAA,yCAAqD;AAErD,kDAAiD;AAEjD,IAAA,8BAAqB,EACnB,IAAI,6BAAc,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EACzC;IACE,aAAa;IACb,gBAAgB;IAChB,UAAU;IACV,iBAAiB;IACjB,oBAAoB;IACpB,yCAAyC;CAC1C,EACD,CAAC,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,CAAC,CACjE,CAAC"}