@sqlrooms/utils 0.6.0 → 0.8.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.
- package/README.md +98 -0
- package/dist/helpers.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/str.d.ts +8 -0
- package/dist/str.d.ts.map +1 -1
- package/dist/str.js +10 -0
- package/dist/str.js.map +1 -1
- package/dist/xhr.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
A collection of utility functions and helpers for SQLRooms applications. This package provides common utilities for string manipulation, file handling, color management, formatting, and more.
|
|
2
|
+
|
|
3
|
+
## Features
|
|
4
|
+
|
|
5
|
+
- 🔠 **String Utilities**: Functions for string manipulation and formatting
|
|
6
|
+
- 📁 **File Path Handling**: Tools for working with file paths and extensions
|
|
7
|
+
- 🎨 **Color Utilities**: Color conversion and manipulation functions
|
|
8
|
+
- 📊 **Formatting**: Data formatting for display purposes
|
|
9
|
+
- 🔄 **XHR Helpers**: Utilities for working with XMLHttpRequests
|
|
10
|
+
- 🧰 **General Helpers**: Common helper functions for everyday tasks
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @sqlrooms/utils
|
|
16
|
+
# or
|
|
17
|
+
yarn add @sqlrooms/utils
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Basic Usage
|
|
21
|
+
|
|
22
|
+
### String Utilities
|
|
23
|
+
|
|
24
|
+
```tsx
|
|
25
|
+
import {truncate, capitalize, slugify} from '@sqlrooms/utils';
|
|
26
|
+
|
|
27
|
+
// Truncate long text
|
|
28
|
+
const shortText = truncate(
|
|
29
|
+
'This is a very long text that needs to be shortened',
|
|
30
|
+
20,
|
|
31
|
+
);
|
|
32
|
+
console.log(shortText); // 'This is a very long...'
|
|
33
|
+
|
|
34
|
+
// Capitalize text
|
|
35
|
+
const capitalized = capitalize('hello world');
|
|
36
|
+
console.log(capitalized); // 'Hello world'
|
|
37
|
+
|
|
38
|
+
// Create a URL-friendly slug
|
|
39
|
+
const slug = slugify('Hello World! This is a test');
|
|
40
|
+
console.log(slug); // 'hello-world-this-is-a-test'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### File Path Utilities
|
|
44
|
+
|
|
45
|
+
```tsx
|
|
46
|
+
import {getFileExtension, joinPaths, normalizePath} from '@sqlrooms/utils';
|
|
47
|
+
|
|
48
|
+
// Get file extension
|
|
49
|
+
const ext = getFileExtension('document.pdf');
|
|
50
|
+
console.log(ext); // 'pdf'
|
|
51
|
+
|
|
52
|
+
// Join path segments
|
|
53
|
+
const fullPath = joinPaths('/base/path', 'subfolder', 'file.txt');
|
|
54
|
+
console.log(fullPath); // '/base/path/subfolder/file.txt'
|
|
55
|
+
|
|
56
|
+
// Normalize a path
|
|
57
|
+
const normalized = normalizePath('/path//to/../folder/./file.txt');
|
|
58
|
+
console.log(normalized); // '/path/folder/file.txt'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### JSON Utilities
|
|
62
|
+
|
|
63
|
+
```tsx
|
|
64
|
+
import {safeJsonParse} from '@sqlrooms/utils';
|
|
65
|
+
|
|
66
|
+
// Safely parse JSON without throwing exceptions
|
|
67
|
+
const result = safeJsonParse('{"name": "John", "age": 30}');
|
|
68
|
+
console.log(result); // { name: 'John', age: 30 }
|
|
69
|
+
|
|
70
|
+
// Handle invalid JSON gracefully
|
|
71
|
+
const invalid = safeJsonParse('{"name": "John", age: 30}');
|
|
72
|
+
console.log(invalid); // null
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Formatting Utilities
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import {formatBytes, formatNumber, formatDate} from '@sqlrooms/utils';
|
|
79
|
+
|
|
80
|
+
// Format file size
|
|
81
|
+
console.log(formatBytes(1024)); // '1 KB'
|
|
82
|
+
console.log(formatBytes(1048576)); // '1 MB'
|
|
83
|
+
|
|
84
|
+
// Format numbers
|
|
85
|
+
console.log(formatNumber(1234567.89)); // '1,234,567.89'
|
|
86
|
+
|
|
87
|
+
// Format dates
|
|
88
|
+
console.log(formatDate(new Date(), 'yyyy-MM-dd')); // '2023-04-15'
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Advanced Features
|
|
92
|
+
|
|
93
|
+
- **Type Safety**: All utilities are fully typed with TypeScript
|
|
94
|
+
- **Browser Compatibility**: Works in all modern browsers
|
|
95
|
+
- **Tree-Shakable**: Import only what you need to minimize bundle size
|
|
96
|
+
- **No Dependencies**: Zero external runtime dependencies
|
|
97
|
+
|
|
98
|
+
For more information, visit the SQLRooms documentation.
|
package/dist/helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAEA,OAAc,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAKxC;;GAEG;AACH,eAAO,MAAM,aAAa,mBAExB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAEA,OAAc,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AAKxC;;GAEG;AACH,eAAO,MAAM,aAAa,mBAExB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,MAAM,WAA4B,CAAC;AAMnE;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,WAGvD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,WAGnD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,GAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,WAGxD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,GAAG,UAAU,WAE/C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,GAAI,GAAG,OAAO,WAKnD,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC","sourcesContent":["/**\n * {@include ../README.md}\n * @packageDocumentation\n */\n\nexport * from './color';\nexport * from './format';\nexport * from './helpers';\nexport * from './random';\nexport * from './str';\nexport * from './xhr';\nexport * from './filepaths';\nexport {safeJsonParse} from './json';\n"]}
|
package/dist/str.d.ts
CHANGED
|
@@ -16,4 +16,12 @@ export declare function formatBytes(bytes: number): string;
|
|
|
16
16
|
* camelCaseToTitle("URL") // returns "URL"
|
|
17
17
|
*/
|
|
18
18
|
export declare function camelCaseToTitle(camelCase: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Capitalizes the first letter of string
|
|
21
|
+
* @param str - The string to capitalize
|
|
22
|
+
* @returns A new string with the first letter capitalized
|
|
23
|
+
* @example
|
|
24
|
+
* capitalize("hello world") // returns "Hello world"
|
|
25
|
+
*/
|
|
26
|
+
export declare function capitalize(str: string): string;
|
|
19
27
|
//# sourceMappingURL=str.d.ts.map
|
package/dist/str.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"str.d.ts","sourceRoot":"","sources":["../src/str.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgBjD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAgB1D"}
|
|
1
|
+
{"version":3,"file":"str.d.ts","sourceRoot":"","sources":["../src/str.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgBjD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAgB1D;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C"}
|
package/dist/str.js
CHANGED
|
@@ -43,4 +43,14 @@ export function camelCaseToTitle(camelCase) {
|
|
|
43
43
|
// If no words were found, just capitalize the whole string
|
|
44
44
|
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Capitalizes the first letter of string
|
|
48
|
+
* @param str - The string to capitalize
|
|
49
|
+
* @returns A new string with the first letter capitalized
|
|
50
|
+
* @example
|
|
51
|
+
* capitalize("hello world") // returns "Hello world"
|
|
52
|
+
*/
|
|
53
|
+
export function capitalize(str) {
|
|
54
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
55
|
+
}
|
|
46
56
|
//# sourceMappingURL=str.js.map
|
package/dist/str.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"str.js","sourceRoot":"","sources":["../src/str.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAElC,MAAM,CAAC,GAAG,IAAI,CAAC;IACf,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAExE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpD,IAAI,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvC,+EAA+E;IAC/E,SAAS;QACP,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;YAChC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAClC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAE5B,OAAO,SAAS,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB;IAChD,0DAA0D;IAC1D,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEtD,kEAAkE;IAClE,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,KAAK;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACZ,2CAA2C;YAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACpE,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,4BAA4B;IAC5C,CAAC;IAED,2DAA2D;IAC3D,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC","sourcesContent":["/**\n * Formats a number of bytes into a human-readable string with appropriate size units.\n * @param bytes - The number of bytes to format\n * @returns A string representation of the bytes with appropriate unit (Bytes, KB, MB, etc.)\n * @example\n * formatBytes(1024) // returns \"1 KB\"\n * formatBytes(1234567) // returns \"1.18 MB\"\n */\nexport function formatBytes(bytes: number): string {\n if (bytes === 0) return '0 Bytes';\n\n const k = 1024;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n let sizeValue = bytes / Math.pow(k, i);\n // Use floor to check if there's a non-zero fractional part, format accordingly\n sizeValue =\n sizeValue != Math.floor(sizeValue)\n ? parseFloat(sizeValue.toFixed(2))\n : Math.floor(sizeValue);\n\n return sizeValue + ' ' + sizes[i];\n}\n\n/**\n * Converts a camelCase string into a Title Case string.\n * @param camelCase - The camelCase string to convert\n * @returns A Title Case string with spaces between words\n * @example\n * camelCaseToTitle(\"myVariableName\") // returns \"My Variable Name\"\n * camelCaseToTitle(\"URL\") // returns \"URL\"\n */\nexport function camelCaseToTitle(camelCase: string): string {\n // Split the string into words on the camelCase boundaries\n const words = camelCase.match(/^[a-z]+|[A-Z][a-z]*/g);\n\n // If words are found, transform them and join into a title string\n if (words) {\n return words\n .map((word) => {\n // Capitalize the first letter of each word\n return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n })\n .join(' '); // Join the words with space\n }\n\n // If no words were found, just capitalize the whole string\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"str.js","sourceRoot":"","sources":["../src/str.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAElC,MAAM,CAAC,GAAG,IAAI,CAAC;IACf,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAExE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAEpD,IAAI,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvC,+EAA+E;IAC/E,SAAS;QACP,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;YAChC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAClC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAE5B,OAAO,SAAS,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB;IAChD,0DAA0D;IAC1D,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAEtD,kEAAkE;IAClE,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,KAAK;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACZ,2CAA2C;YAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACpE,CAAC,CAAC;aACD,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,4BAA4B;IAC5C,CAAC;IAED,2DAA2D;IAC3D,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC","sourcesContent":["/**\n * Formats a number of bytes into a human-readable string with appropriate size units.\n * @param bytes - The number of bytes to format\n * @returns A string representation of the bytes with appropriate unit (Bytes, KB, MB, etc.)\n * @example\n * formatBytes(1024) // returns \"1 KB\"\n * formatBytes(1234567) // returns \"1.18 MB\"\n */\nexport function formatBytes(bytes: number): string {\n if (bytes === 0) return '0 Bytes';\n\n const k = 1024;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n let sizeValue = bytes / Math.pow(k, i);\n // Use floor to check if there's a non-zero fractional part, format accordingly\n sizeValue =\n sizeValue != Math.floor(sizeValue)\n ? parseFloat(sizeValue.toFixed(2))\n : Math.floor(sizeValue);\n\n return sizeValue + ' ' + sizes[i];\n}\n\n/**\n * Converts a camelCase string into a Title Case string.\n * @param camelCase - The camelCase string to convert\n * @returns A Title Case string with spaces between words\n * @example\n * camelCaseToTitle(\"myVariableName\") // returns \"My Variable Name\"\n * camelCaseToTitle(\"URL\") // returns \"URL\"\n */\nexport function camelCaseToTitle(camelCase: string): string {\n // Split the string into words on the camelCase boundaries\n const words = camelCase.match(/^[a-z]+|[A-Z][a-z]*/g);\n\n // If words are found, transform them and join into a title string\n if (words) {\n return words\n .map((word) => {\n // Capitalize the first letter of each word\n return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();\n })\n .join(' '); // Join the words with space\n }\n\n // If no words were found, just capitalize the whole string\n return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);\n}\n\n/**\n * Capitalizes the first letter of string\n * @param str - The string to capitalize\n * @returns A new string with the first letter capitalized\n * @example\n * capitalize(\"hello world\") // returns \"Hello world\"\n */\nexport function capitalize(str: string): string {\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n"]}
|
package/dist/xhr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../src/xhr.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"xhr.d.ts","sourceRoot":"","sources":["../src/xhr.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,GAAU,gBAG5B;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,iBAoBA,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;AAK1E;;;;;;;;;GASG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,IAAI,GAAE;IACJ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CACtC,GACL,OAAO,CAAC,UAAU,CAAC,CAsCrB;AAID;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAC9B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,IAAI,GAAG,IAAI,GAAG,QAAQ,EAC/B,IAAI,GAAE;IACJ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CACtC,GACL,OAAO,CAAC,QAAQ,CAAC,CAiCnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"react": "^19.0.0",
|
|
42
42
|
"usehooks-ts": "^3.1.1"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "99b46a96ab900e6b005bcd30cfbfe7b3c9d51f8d"
|
|
45
45
|
}
|