qstd 0.3.52 → 0.3.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/dist/server/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var dateFns = require('date-fns');
|
|
4
|
+
var awaitSpawn = require('await-spawn');
|
|
4
5
|
var fs = require('fs');
|
|
5
6
|
var arktype = require('arktype');
|
|
6
7
|
var libDynamodb = require('@aws-sdk/lib-dynamodb');
|
|
@@ -13,6 +14,10 @@ var s3RequestPresigner = require('@aws-sdk/s3-request-presigner');
|
|
|
13
14
|
var s3PresignedPost = require('@aws-sdk/s3-presigned-post');
|
|
14
15
|
|
|
15
16
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
17
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
|
|
19
|
+
var awaitSpawn__default = /*#__PURE__*/_interopDefault(awaitSpawn);
|
|
20
|
+
|
|
16
21
|
var __defProp = Object.defineProperty;
|
|
17
22
|
var __export = (target, all) => {
|
|
18
23
|
for (var name in all)
|
|
@@ -922,6 +927,13 @@ function remove(path, body, opts) {
|
|
|
922
927
|
);
|
|
923
928
|
}
|
|
924
929
|
|
|
930
|
+
// src/server/os/index.ts
|
|
931
|
+
var os_exports = {};
|
|
932
|
+
__export(os_exports, {
|
|
933
|
+
spawn: () => spawn
|
|
934
|
+
});
|
|
935
|
+
var spawn = (cmd) => awaitSpawn__default.default(cmd, { shell: true, stdio: "inherit" });
|
|
936
|
+
|
|
925
937
|
// src/server/file/index.ts
|
|
926
938
|
var file_exports = {};
|
|
927
939
|
__export(file_exports, {
|
|
@@ -1933,6 +1945,7 @@ exports.Lambda = lambda_exports;
|
|
|
1933
1945
|
exports.List = list_exports;
|
|
1934
1946
|
exports.Log = log_exports;
|
|
1935
1947
|
exports.Money = money_exports;
|
|
1948
|
+
exports.Os = os_exports;
|
|
1936
1949
|
exports.Random = random_exports;
|
|
1937
1950
|
exports.S3 = s3_exports;
|
|
1938
1951
|
exports.SES = ses_exports;
|
package/dist/server/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * as Flow from "../shared/flow";
|
|
|
8
8
|
export * as Random from "../shared/random";
|
|
9
9
|
export * as Log from "../shared/log";
|
|
10
10
|
export * as Api from "../shared/api";
|
|
11
|
+
export * as Os from "./os";
|
|
11
12
|
export * as File from "./file";
|
|
12
13
|
export * as Lambda from "./aws/lambda";
|
|
13
14
|
export * as DDB from "./aws/ddb";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AAGrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAC;AAGrC,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { format, formatDistanceToNow, formatISO, isSameYear, isSameMonth, isSameDay, addSeconds, addMinutes, addHours, addDays, addWeeks, addBusinessDays, addMonths, addYears } from 'date-fns';
|
|
2
|
+
import awaitSpawn from 'await-spawn';
|
|
2
3
|
import { promises } from 'fs';
|
|
3
4
|
import { ArkErrors } from 'arktype';
|
|
4
5
|
import { DynamoDBDocumentClient, ScanCommand, QueryCommand, DeleteCommand, PutCommand, BatchGetCommand, TransactWriteCommand, BatchWriteCommand } from '@aws-sdk/lib-dynamodb';
|
|
@@ -919,6 +920,13 @@ function remove(path, body, opts) {
|
|
|
919
920
|
);
|
|
920
921
|
}
|
|
921
922
|
|
|
923
|
+
// src/server/os/index.ts
|
|
924
|
+
var os_exports = {};
|
|
925
|
+
__export(os_exports, {
|
|
926
|
+
spawn: () => spawn
|
|
927
|
+
});
|
|
928
|
+
var spawn = (cmd) => awaitSpawn(cmd, { shell: true, stdio: "inherit" });
|
|
929
|
+
|
|
922
930
|
// src/server/file/index.ts
|
|
923
931
|
var file_exports = {};
|
|
924
932
|
__export(file_exports, {
|
|
@@ -1920,4 +1928,4 @@ var recordsFromSqs = (body) => {
|
|
|
1920
1928
|
}
|
|
1921
1929
|
};
|
|
1922
1930
|
|
|
1923
|
-
export { api_exports as Api, ddb_exports as DDB, dict_exports as Dict, file_exports as File, flow_exports as Flow, int_exports as Int, lambda_exports as Lambda, list_exports as List, log_exports as Log, money_exports as Money, random_exports as Random, s3_exports as S3, ses_exports as SES, sns_exports as SNS, sqs_exports as SQS, str_exports as Str, time_exports as Time };
|
|
1931
|
+
export { api_exports as Api, ddb_exports as DDB, dict_exports as Dict, file_exports as File, flow_exports as Flow, int_exports as Int, lambda_exports as Lambda, list_exports as List, log_exports as Log, money_exports as Money, os_exports as Os, random_exports as Random, s3_exports as S3, ses_exports as SES, sns_exports as SNS, sqs_exports as SQS, str_exports as Str, time_exports as Time };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Allows any string while providing autocomplete for known commands */
|
|
2
|
+
type Command = "python3" | "node" | "bun" | "pnpm" | "yarn" | "npm" | (string & {});
|
|
3
|
+
/**
|
|
4
|
+
* A command line spawn that awaits properly.
|
|
5
|
+
* Uses shell execution and inherits stdio for full console output.
|
|
6
|
+
* @param cmd - The shell command to execute
|
|
7
|
+
* @returns Promise that resolves when the command completes
|
|
8
|
+
*/
|
|
9
|
+
export declare const spawn: (cmd: Command) => Promise<Buffer>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/os/index.ts"],"names":[],"mappings":"AAEA,wEAAwE;AACxE,KAAK,OAAO,GACR,SAAS,GACT,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,OAAO,KAAG,OAAO,CAAC,MAAM,CACC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qstd",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
4
4
|
"description": "Standard Block component and utilities library with Panda CSS",
|
|
5
5
|
"author": "malin1",
|
|
6
6
|
"license": "MIT",
|
|
@@ -89,7 +89,8 @@
|
|
|
89
89
|
"react-icons": "^5.5.0",
|
|
90
90
|
"react-loader-spinner": "^6.1.6",
|
|
91
91
|
"react-spinners": "^0.17.0",
|
|
92
|
-
"use-immer": "^0.11.0"
|
|
92
|
+
"use-immer": "^0.11.0",
|
|
93
|
+
"await-spawn": "^4.0.2"
|
|
93
94
|
},
|
|
94
95
|
"devDependencies": {
|
|
95
96
|
"@eslint/js": "^9.39.1",
|