@furystack/core 12.0.14 → 12.0.16
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"port-generator.d.ts","sourceRoot":"","sources":["../src/port-generator.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,OAAO,cAAqC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const portGenerator = function* () {
|
|
2
|
+
const initialPort = 16000;
|
|
3
|
+
let port = initialPort;
|
|
4
|
+
while (true) {
|
|
5
|
+
yield port++;
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @returns the next port number starting from 16000
|
|
11
|
+
*/
|
|
12
|
+
export const getPort = () => portGenerator().next().value;
|
|
13
|
+
//# sourceMappingURL=port-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"port-generator.js","sourceRoot":"","sources":["../src/port-generator.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,QAAQ,CAAC;IAC7B,MAAM,WAAW,GAAG,KAAK,CAAA;IACzB,IAAI,IAAI,GAAG,WAAW,CAAA;IACtB,OAAO,IAAI,EAAE,CAAC;QACZ,MAAM,IAAI,EAAE,CAAA;IACd,CAAC;AACH,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/core",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.16",
|
|
4
4
|
"description": "Core FuryStack package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"./create-physical-store-tests": {
|
|
14
14
|
"import": "./esm/create-physical-store-tests.js"
|
|
15
|
+
},
|
|
16
|
+
"./port-generator": {
|
|
17
|
+
"import": "./esm/port-generator.js"
|
|
15
18
|
}
|
|
16
19
|
},
|
|
17
20
|
"files": [
|
|
@@ -37,13 +40,13 @@
|
|
|
37
40
|
},
|
|
38
41
|
"homepage": "https://github.com/furystack/furystack",
|
|
39
42
|
"devDependencies": {
|
|
40
|
-
"@types/node": "^20.
|
|
43
|
+
"@types/node": "^20.11.19",
|
|
41
44
|
"typescript": "^5.3.3",
|
|
42
|
-
"vitest": "^1.
|
|
45
|
+
"vitest": "^1.3.0"
|
|
43
46
|
},
|
|
44
47
|
"dependencies": {
|
|
45
|
-
"@furystack/inject": "^8.1.
|
|
46
|
-
"@furystack/utils": "^4.0.
|
|
48
|
+
"@furystack/inject": "^8.1.6",
|
|
49
|
+
"@furystack/utils": "^4.0.15"
|
|
47
50
|
},
|
|
48
51
|
"gitHead": "1045d854bfd8c475b7035471d130d401417a2321"
|
|
49
52
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const portGenerator = function* () {
|
|
2
|
+
const initialPort = 16000
|
|
3
|
+
let port = initialPort
|
|
4
|
+
while (true) {
|
|
5
|
+
yield port++
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @returns the next port number starting from 16000
|
|
12
|
+
*/
|
|
13
|
+
export const getPort = () => portGenerator().next().value
|