@rg-dev/stdlib 1.0.52 → 1.0.53
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/lib/browser-env.cjs +6 -0
- package/lib/browser-env.d.cts +2 -0
- package/lib/browser-env.d.ts +2 -0
- package/lib/browser-env.js +4 -0
- package/lib/common-env.cjs +4 -0
- package/lib/common-env.d.cts +2 -0
- package/lib/common-env.d.ts +2 -0
- package/lib/common-env.js +4 -0
- package/lib/node-env.cjs +4 -0
- package/lib/node-env.d.cts +1 -0
- package/lib/node-env.d.ts +1 -0
- package/lib/node-env.js +4 -0
- package/lib/trpc-helpers.cjs +7 -1
- package/lib/trpc-helpers.d.cts +1 -0
- package/lib/trpc-helpers.d.ts +1 -0
- package/lib/trpc-helpers.js +7 -1
- package/package.json +32 -10
package/lib/browser-env.cjs
CHANGED
|
@@ -19,10 +19,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/browser-env.ts
|
|
20
20
|
var browser_env_exports = {};
|
|
21
21
|
__export(browser_env_exports, {
|
|
22
|
+
VERSION: () => VERSION,
|
|
22
23
|
copyToClipboard: () => copyToClipboard,
|
|
23
24
|
parseFormData: () => parseFormData
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(browser_env_exports);
|
|
27
|
+
|
|
28
|
+
// src/index.ts
|
|
29
|
+
var VERSION = "1";
|
|
30
|
+
|
|
31
|
+
// src/browser-env.ts
|
|
26
32
|
function parseFormData(e) {
|
|
27
33
|
if (e instanceof FormData) {
|
|
28
34
|
return Object.fromEntries(e.entries());
|
package/lib/browser-env.d.cts
CHANGED
package/lib/browser-env.d.ts
CHANGED
package/lib/browser-env.js
CHANGED
package/lib/common-env.cjs
CHANGED
|
@@ -36,6 +36,7 @@ var common_env_exports = {};
|
|
|
36
36
|
__export(common_env_exports, {
|
|
37
37
|
Optional: () => Optional,
|
|
38
38
|
StringBuilder: () => StringBuilder,
|
|
39
|
+
VERSION: () => VERSION,
|
|
39
40
|
catchInline: () => catchInline,
|
|
40
41
|
doSafe: () => doSafe,
|
|
41
42
|
fetchHelperJSON: () => fetchHelperJSON,
|
|
@@ -51,6 +52,9 @@ __export(common_env_exports, {
|
|
|
51
52
|
});
|
|
52
53
|
module.exports = __toCommonJS(common_env_exports);
|
|
53
54
|
|
|
55
|
+
// src/index.ts
|
|
56
|
+
var VERSION = "1";
|
|
57
|
+
|
|
54
58
|
// src/promise-retry.ts
|
|
55
59
|
var defaultOptions = {
|
|
56
60
|
maxAttempts: 10,
|
package/lib/common-env.d.cts
CHANGED
package/lib/common-env.d.ts
CHANGED
package/lib/common-env.js
CHANGED
|
@@ -16,6 +16,9 @@ var __spreadValues = (a, b) => {
|
|
|
16
16
|
};
|
|
17
17
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
18
18
|
|
|
19
|
+
// src/index.ts
|
|
20
|
+
var VERSION = "1";
|
|
21
|
+
|
|
19
22
|
// src/promise-retry.ts
|
|
20
23
|
var defaultOptions = {
|
|
21
24
|
maxAttempts: 10,
|
|
@@ -223,6 +226,7 @@ function isNonEmptyString(str) {
|
|
|
223
226
|
export {
|
|
224
227
|
Optional,
|
|
225
228
|
StringBuilder,
|
|
229
|
+
VERSION,
|
|
226
230
|
catchInline,
|
|
227
231
|
doSafe,
|
|
228
232
|
fetchHelperJSON,
|
package/lib/node-env.cjs
CHANGED
|
@@ -204,6 +204,7 @@ var node_env_exports = {};
|
|
|
204
204
|
__export(node_env_exports, {
|
|
205
205
|
SSEClient: () => SSEClient,
|
|
206
206
|
SSEResponse: () => SSEResponse,
|
|
207
|
+
VERSION: () => VERSION,
|
|
207
208
|
checkCommandExistsOrThrow: () => checkCommandExistsOrThrow,
|
|
208
209
|
checkIfDirExistsOrThrow: () => checkIfDirExistsOrThrow,
|
|
209
210
|
checkIfFileExistsOrThrow: () => checkIfFileExistsOrThrow,
|
|
@@ -338,6 +339,9 @@ var SSEClient = class extends import_events.EventEmitter {
|
|
|
338
339
|
}
|
|
339
340
|
};
|
|
340
341
|
|
|
342
|
+
// src/index.ts
|
|
343
|
+
var VERSION = "1";
|
|
344
|
+
|
|
341
345
|
// src/node-env.ts
|
|
342
346
|
function isWindows() {
|
|
343
347
|
return import_os.default.platform() === "win32";
|
package/lib/node-env.d.cts
CHANGED
package/lib/node-env.d.ts
CHANGED
package/lib/node-env.js
CHANGED
|
@@ -324,6 +324,9 @@ var SSEClient = class extends EventEmitter {
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
// src/index.ts
|
|
328
|
+
var VERSION = "1";
|
|
329
|
+
|
|
327
330
|
// src/node-env.ts
|
|
328
331
|
function isWindows() {
|
|
329
332
|
return os.platform() === "win32";
|
|
@@ -419,6 +422,7 @@ function removeQuotes(str) {
|
|
|
419
422
|
export {
|
|
420
423
|
SSEClient,
|
|
421
424
|
SSEResponse,
|
|
425
|
+
VERSION,
|
|
422
426
|
checkCommandExistsOrThrow,
|
|
423
427
|
checkIfDirExistsOrThrow,
|
|
424
428
|
checkIfFileExistsOrThrow,
|
package/lib/trpc-helpers.cjs
CHANGED
|
@@ -46,12 +46,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
46
46
|
// src/trpc-helpers.ts
|
|
47
47
|
var trpc_helpers_exports = {};
|
|
48
48
|
__export(trpc_helpers_exports, {
|
|
49
|
-
TrpcServerHelpers: () => TrpcServerHelpers
|
|
49
|
+
TrpcServerHelpers: () => TrpcServerHelpers,
|
|
50
|
+
VERSION: () => VERSION
|
|
50
51
|
});
|
|
51
52
|
module.exports = __toCommonJS(trpc_helpers_exports);
|
|
52
53
|
var import_server = require("@trpc/server");
|
|
53
54
|
var trpcExpress = __toESM(require("@trpc/server/adapters/express"), 1);
|
|
54
55
|
var import_superjson = __toESM(require("superjson"), 1);
|
|
56
|
+
|
|
57
|
+
// src/index.ts
|
|
58
|
+
var VERSION = "1";
|
|
59
|
+
|
|
60
|
+
// src/trpc-helpers.ts
|
|
55
61
|
var TrpcServerHelpers = class {
|
|
56
62
|
static createExpressTrpcServer() {
|
|
57
63
|
if (globalThis.Headers == void 0) {
|
package/lib/trpc-helpers.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { initTRPC } from '@trpc/server';
|
|
2
2
|
import * as trpcExpress from '@trpc/server/adapters/express';
|
|
3
3
|
import { Handler } from 'express';
|
|
4
|
+
export { VERSION } from './index.cjs';
|
|
4
5
|
|
|
5
6
|
type TrpcExpressRootType = ReturnType<ReturnType<typeof initTRPC.context<trpcExpress.CreateExpressContextOptions>>['create']>;
|
|
6
7
|
declare class TrpcServerHelpers {
|
package/lib/trpc-helpers.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { initTRPC } from '@trpc/server';
|
|
2
2
|
import * as trpcExpress from '@trpc/server/adapters/express';
|
|
3
3
|
import { Handler } from 'express';
|
|
4
|
+
export { VERSION } from './index.js';
|
|
4
5
|
|
|
5
6
|
type TrpcExpressRootType = ReturnType<ReturnType<typeof initTRPC.context<trpcExpress.CreateExpressContextOptions>>['create']>;
|
|
6
7
|
declare class TrpcServerHelpers {
|
package/lib/trpc-helpers.js
CHANGED
|
@@ -22,6 +22,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22
22
|
import { initTRPC } from "@trpc/server";
|
|
23
23
|
import * as trpcExpress from "@trpc/server/adapters/express";
|
|
24
24
|
import superjson from "superjson";
|
|
25
|
+
|
|
26
|
+
// src/index.ts
|
|
27
|
+
var VERSION = "1";
|
|
28
|
+
|
|
29
|
+
// src/trpc-helpers.ts
|
|
25
30
|
var TrpcServerHelpers = class {
|
|
26
31
|
static createExpressTrpcServer() {
|
|
27
32
|
if (globalThis.Headers == void 0) {
|
|
@@ -39,5 +44,6 @@ var TrpcServerHelpers = class {
|
|
|
39
44
|
}
|
|
40
45
|
};
|
|
41
46
|
export {
|
|
42
|
-
TrpcServerHelpers
|
|
47
|
+
TrpcServerHelpers,
|
|
48
|
+
VERSION
|
|
43
49
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rg-dev/stdlib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -12,37 +12,59 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
"lib"
|
|
14
14
|
],
|
|
15
|
-
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
"*": {
|
|
17
|
+
"lib/trpc-helpers": [
|
|
18
|
+
"lib/trpc-helpers.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"lib/common-env": [
|
|
21
|
+
"lib/common-env.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"lib/browser-env": [
|
|
24
|
+
"lib/browser-env.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"lib/node-env": [
|
|
27
|
+
"lib/node-env.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"lib/node-download": [
|
|
30
|
+
"lib/node-download.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
16
34
|
"types": "./lib/index.d.ts",
|
|
17
35
|
"type": "module",
|
|
18
36
|
"exports": {
|
|
19
37
|
|
|
20
38
|
".":{
|
|
21
39
|
"import": "./lib/index.js",
|
|
22
|
-
"require": "./lib/index.cjs"
|
|
40
|
+
"require": "./lib/index.cjs",
|
|
41
|
+
"types": "./lib/index.d.ts"
|
|
23
42
|
},
|
|
24
43
|
|
|
25
44
|
|
|
26
45
|
"./lib/trpc-helpers": {
|
|
27
46
|
"import": "./lib/trpc-helpers.js",
|
|
28
|
-
"require": "./lib/trpc-helpers.cjs"
|
|
47
|
+
"require": "./lib/trpc-helpers.cjs",
|
|
48
|
+
"types": "./lib/trpc-helpers.d.ts"
|
|
29
49
|
},
|
|
30
50
|
"./lib/node-env": {
|
|
31
51
|
"import": "./lib/node-env.js",
|
|
32
|
-
"require": "./lib/node-env.cjs"
|
|
52
|
+
"require": "./lib/node-env.cjs",
|
|
53
|
+
"types": "./lib/node-env.d.ts"
|
|
33
54
|
},
|
|
34
55
|
"./lib/browser-env": {
|
|
35
|
-
"import": "./lib/browser-env.js"
|
|
56
|
+
"import": "./lib/browser-env.js",
|
|
57
|
+
"types": "./lib/browser-env.d.ts"
|
|
36
58
|
},
|
|
37
59
|
"./lib/common-env": {
|
|
38
60
|
"import": "./lib/common-env.js",
|
|
39
|
-
"require": "./lib/common-env.cjs"
|
|
40
|
-
|
|
61
|
+
"require": "./lib/common-env.cjs",
|
|
62
|
+
"types": "./lib/common-env.d.ts"
|
|
41
63
|
},
|
|
42
64
|
"./lib/node-download": {
|
|
43
65
|
"import": "./lib/node-download.js",
|
|
44
|
-
"require": "./lib/node-download.cjs"
|
|
45
|
-
|
|
66
|
+
"require": "./lib/node-download.cjs",
|
|
67
|
+
"types": "./lib/node-download.d.ts"
|
|
46
68
|
}
|
|
47
69
|
},
|
|
48
70
|
"dependencies": {
|