@expo/entity-ip-address-field 0.60.0 → 0.61.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,12 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IPAddressField = void 0;
4
- const entity_1 = require("@expo/entity");
5
- const ip_address_1 = require("ip-address");
6
- class IPAddressField extends entity_1.EntityFieldDefinition {
1
+ import { EntityFieldDefinition } from '@expo/entity';
2
+ import { Address4, Address6 } from 'ip-address';
3
+ export class IPAddressField extends EntityFieldDefinition {
7
4
  validateInputValueInternal(value) {
8
- return ip_address_1.Address4.isValid(value) || ip_address_1.Address6.isValid(value);
5
+ return Address4.isValid(value) || Address6.isValid(value);
9
6
  }
10
7
  }
11
- exports.IPAddressField = IPAddressField;
12
- //# sourceMappingURL=EntityFields.js.map
@@ -2,4 +2,4 @@
2
2
  * @packageDocumentation
3
3
  * @module @expo/entity-ip-address-field
4
4
  */
5
- export * from './EntityFields';
5
+ export * from './EntityFields.ts';
@@ -1,23 +1,6 @@
1
- "use strict";
2
1
  /* eslint-disable tsdoc/syntax */
3
2
  /**
4
3
  * @packageDocumentation
5
4
  * @module @expo/entity-ip-address-field
6
5
  */
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- __exportStar(require("./EntityFields"), exports);
23
- //# sourceMappingURL=index.js.map
6
+ export * from "./EntityFields.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/entity-ip-address-field",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "description": "IP address EntityField definitions for @expo/entity",
5
5
  "files": [
6
6
  "build",
@@ -19,21 +19,22 @@
19
19
  "test": "yarn test:all --rootDir $(pwd)"
20
20
  },
21
21
  "engines": {
22
- "node": ">=16"
22
+ "node": ">=18"
23
23
  },
24
24
  "keywords": [
25
25
  "entity"
26
26
  ],
27
27
  "author": "Expo",
28
28
  "license": "MIT",
29
+ "type": "module",
29
30
  "dependencies": {
30
- "@expo/entity": "^0.60.0",
31
+ "@expo/entity": "^0.61.0",
31
32
  "ip-address": "^10.1.0"
32
33
  },
33
34
  "devDependencies": {
34
- "@expo/entity-testing-utils": "^0.60.0",
35
+ "@expo/entity-testing-utils": "^0.61.0",
35
36
  "@jest/globals": "30.2.0",
36
37
  "typescript": "5.9.3"
37
38
  },
38
- "gitHead": "e36dc81bd22ce92a7a11ccd1976173b464da5e76"
39
+ "gitHead": "a6f1dd723262cb1c3e8022d3a8799c17602cd15b"
39
40
  }
@@ -1,6 +1,6 @@
1
1
  import { describeFieldTestCase } from '@expo/entity-testing-utils';
2
2
 
3
- import { IPAddressField } from '../EntityFields';
3
+ import { IPAddressField } from '../EntityFields.ts';
4
4
 
5
5
  describeFieldTestCase(
6
6
  new IPAddressField({ columnName: 'wat' }),
package/src/index.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  * @module @expo/entity-ip-address-field
5
5
  */
6
6
 
7
- export * from './EntityFields';
7
+ export * from './EntityFields.ts';
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC;;;GAGG;;;;;;;;;;;;;;;;AAEH,iDAA+B"}