@expo/entity-ip-address-field 0.60.0 → 0.62.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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
5
|
+
return Address4.isValid(value) || Address6.isValid(value);
|
|
9
6
|
}
|
|
10
7
|
}
|
|
11
|
-
exports.IPAddressField = IPAddressField;
|
|
12
|
-
//# sourceMappingURL=EntityFields.js.map
|
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "0.62.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": ">=
|
|
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.
|
|
31
|
+
"@expo/entity": "^0.62.0",
|
|
31
32
|
"ip-address": "^10.1.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@expo/entity-testing-utils": "^0.
|
|
35
|
-
"@jest/globals": "30.
|
|
35
|
+
"@expo/entity-testing-utils": "^0.62.0",
|
|
36
|
+
"@jest/globals": "30.3.0",
|
|
36
37
|
"typescript": "5.9.3"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4965cc238882982e6315beca48a68679ed45456b"
|
|
39
40
|
}
|
package/src/index.ts
CHANGED
|
@@ -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"}
|
package/build/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,iCAAiC;AACjC;;;GAGG;;;;;;;;;;;;;;;;AAEH,iDAA+B"}
|