@dolthub/web-utils 0.1.4 → 0.1.6
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/package.json +9 -10
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,8 @@ declare function randomNum(min: number, max: number): number;
|
|
|
215
215
|
|
|
216
216
|
declare function safeJSONParse(text: string): any;
|
|
217
217
|
|
|
218
|
+
declare function toOrdinal(n: number): string;
|
|
219
|
+
|
|
218
220
|
declare function tuplify<T extends any[]>(...elements: T): T;
|
|
219
221
|
|
|
220
222
|
type Url = string | UrlObject;
|
|
@@ -423,4 +425,4 @@ declare function usernameValidator(s: string): {
|
|
|
423
425
|
detailedErrorMsg: string;
|
|
424
426
|
};
|
|
425
427
|
|
|
426
|
-
export { KeyCodes, type Maybe, NULL_VALUE, Route, areTimeAgosEqual, compareArray, convertToSqlWithNewColNames, convertToSqlWithNewCols, convertToSqlWithNewCondition, convertToSqlWithOrderBy, convertToUTCDate, dedupe, emailValidator, enumKeys, excerpt, fakeEscapePress, formatNumber, formatToRoundedUsd, formatToUsd, getColumns, getDateMinusHours, getDateString, getDisplayValue, getDisplayValueForApi, getLongDateTimeString, getNow, getTableName, getTimeAgoString, getTimeWithSeconds, getUTCDateAndTimeString, getUTCDateString, getUTCNowDateString, getUTCTimeString, initialUppercase, isMultipleQueries, isMutation, isNullValue, loremer, makeQueryExecutable, nTimes, nTimesWithIndex, oneHour, parseSelectQuery, pluralize, prettyJSON, prettyJSONText, queryHasOrderBy, randomArrayItem, randomNum, removeColumnFromQuery, requireTableNameForSelect, safeJSONParse, tuplify, usernameValidator };
|
|
428
|
+
export { KeyCodes, type Maybe, NULL_VALUE, Route, areTimeAgosEqual, compareArray, convertToSqlWithNewColNames, convertToSqlWithNewCols, convertToSqlWithNewCondition, convertToSqlWithOrderBy, convertToUTCDate, dedupe, emailValidator, enumKeys, excerpt, fakeEscapePress, formatNumber, formatToRoundedUsd, formatToUsd, getColumns, getDateMinusHours, getDateString, getDisplayValue, getDisplayValueForApi, getLongDateTimeString, getNow, getTableName, getTimeAgoString, getTimeWithSeconds, getUTCDateAndTimeString, getUTCDateString, getUTCNowDateString, getUTCTimeString, initialUppercase, isMultipleQueries, isMutation, isNullValue, loremer, makeQueryExecutable, nTimes, nTimesWithIndex, oneHour, parseSelectQuery, pluralize, prettyJSON, prettyJSONText, queryHasOrderBy, randomArrayItem, randomNum, removeColumnFromQuery, requireTableNameForSelect, safeJSONParse, toOrdinal, tuplify, usernameValidator };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dolthub/web-utils",
|
|
3
3
|
"author": "DoltHub",
|
|
4
4
|
"description": "A collection of utilities for building web applications",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.6",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
],
|
|
17
17
|
"packageManager": "yarn@4.0.2",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"clean": "rm -rf dist && rm -rf .rollup.cache && rm -rf types && rm -rf tsconfig.tsbuildinfo && rm -rf .eslintcache",
|
|
20
19
|
"compile": "tsc -b",
|
|
21
20
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
22
21
|
"dbuild": "yarn compile && yarn build",
|
|
@@ -30,25 +29,25 @@
|
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@babel/core": "^7.24.0",
|
|
33
|
-
"@babel/preset-env": "^7.24.
|
|
32
|
+
"@babel/preset-env": "^7.24.3",
|
|
34
33
|
"@babel/preset-typescript": "^7.23.3",
|
|
35
|
-
"@rollup/plugin-commonjs": "^25.0.
|
|
34
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
36
35
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
37
36
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
38
37
|
"@types/eslint": "^8",
|
|
39
38
|
"@types/jest": "^29.5.11",
|
|
40
39
|
"@types/rollup-plugin-peer-deps-external": "^2",
|
|
41
40
|
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
|
42
|
-
"@typescript-eslint/parser": "^
|
|
41
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
43
42
|
"babel-jest": "^29.7.0",
|
|
44
43
|
"eslint": "^8.57.0",
|
|
45
44
|
"jest": "^29.7.0",
|
|
46
45
|
"prettier": "^3.2.4",
|
|
47
|
-
"rollup": "^4.
|
|
48
|
-
"rollup-plugin-dts": "^6.1.
|
|
46
|
+
"rollup": "^4.17.2",
|
|
47
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
49
48
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
50
49
|
"rollup-plugin-terser": "^7.0.2",
|
|
51
|
-
"typescript": "^5.
|
|
50
|
+
"typescript": "^5.4.5",
|
|
52
51
|
"yalc": "^1.0.0-pre.53"
|
|
53
52
|
},
|
|
54
53
|
"repository": {
|
|
@@ -59,7 +58,7 @@
|
|
|
59
58
|
"url": "https://github.com/dolthub/react-library/issues"
|
|
60
59
|
},
|
|
61
60
|
"dependencies": {
|
|
62
|
-
"node-sql-parser": "^
|
|
61
|
+
"node-sql-parser": "^5.0.0",
|
|
63
62
|
"timeago.js": "^4.0.2"
|
|
64
63
|
}
|
|
65
|
-
}
|
|
64
|
+
}
|