Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 326f6fe851 | |||
| 5b57b67542 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,6 +9,7 @@ node_modules
|
|||||||
uploads
|
uploads
|
||||||
public/momentum*js
|
public/momentum*js
|
||||||
junit.xml
|
junit.xml
|
||||||
|
/docs/
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
*.log
|
*.log
|
||||||
|
|||||||
5
.gitmodules
vendored
5
.gitmodules
vendored
@@ -1,5 +0,0 @@
|
|||||||
[submodule "docs"]
|
|
||||||
path = docs
|
|
||||||
url = ../utils.wiki.git
|
|
||||||
branch = master
|
|
||||||
ignore = all
|
|
||||||
1
docs
1
docs
Submodule docs deleted from dbf5d8cd07
18
package.json
18
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/utils",
|
"name": "@ztimson/utils",
|
||||||
"version": "0.27.11",
|
"version": "0.27.12",
|
||||||
"description": "Utility library",
|
"description": "Utility library",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -30,15 +30,15 @@
|
|||||||
"var-persist": "^1.0.1"
|
"var-persist": "^1.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.12",
|
"@types/jest": "^30.0.0",
|
||||||
"fake-indexeddb": "^6.0.1",
|
"fake-indexeddb": "^6.2.5",
|
||||||
"jest": "^29.7.0",
|
"jest": "^30.2.0",
|
||||||
"jest-junit": "^16.0.0",
|
"jest-junit": "^16.0.0",
|
||||||
"ts-jest": "^29.1.2",
|
"ts-jest": "^29.4.5",
|
||||||
"typedoc": "^0.26.7",
|
"typedoc": "^0.28.15",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^5.0.12",
|
"vite": "^7.2.4",
|
||||||
"vite-plugin-dts": "^4.5.3"
|
"vite-plugin-dts": "^4.5.4"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ export function PE(str: TemplateStringsArray, ...args: any[]) {
|
|||||||
* @param {TemplateStringsArray} str
|
* @param {TemplateStringsArray} str
|
||||||
* @param {string} args
|
* @param {string} args
|
||||||
* @return {string}
|
* @return {string}
|
||||||
* @constructor
|
|
||||||
*/
|
*/
|
||||||
export function PES(str: TemplateStringsArray, ...args: any[]) {
|
export function PES(str: TemplateStringsArray, ...args: any[]) {
|
||||||
let combined = [];
|
let combined = [];
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ describe('Path Events', () => {
|
|||||||
expect(pe.all).toBe(true);
|
expect(pe.all).toBe(true);
|
||||||
expect(pe.fullPath).toBe('**');
|
expect(pe.fullPath).toBe('**');
|
||||||
expect(pe.methods.has('*')).toBe(true);
|
expect(pe.methods.has('*')).toBe(true);
|
||||||
|
expect(pe.hasAll('module:c', 'some/path:ud')).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('parses empty string as none', () => {
|
it('parses empty string as none', () => {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ describe('Time Utilities', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('throws for unknown timezone', () => {
|
it('throws for unknown timezone', () => {
|
||||||
expect(() => formatDate('YYYY', new Date(), '???')).toThrowError(/Invalid timezone/);
|
expect(() => formatDate('YYYY', new Date(), '???')).toThrow(/Invalid timezone/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('handles timezone by offset number', () => {
|
it('handles timezone by offset number', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user