@171h/utils
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -266,2 +266,29 @@ /** | ||
export { BusinessHours, BusinessHoursMap, Calendar, CalendarConfig, DD, DateTimeString, DayUnit, DurationUnit, HolidayDetail, Hour, HourUnit, MM, Minute, MinuteMaps, MinuteUnit, MonthUnit, Second, SecondUnit, Time, WeekDay, WeekMinute, WeekUnit, YYYY, YearUnit, addBusinessMinutes, businessHoursMap, businessMinuteMap, businessTimeToDate, dayUnits, daysNameMaps, daysNames, diffBusinessMinutes, getBusinessTime, getDateFromMatch, holidays, hourUnits, minuteUnits, monthUnits, numToTime, numToWeekMinute, secondUnits, timeToNum, units, weekUnits, yearUnits }; | ||
declare const isDef: <T = any>(val?: T | undefined) => val is T; | ||
declare const isBoolean: (val: any) => val is boolean; | ||
declare const isFunction: <T extends Function>(val: any) => val is T; | ||
declare const isNumber: (val: any) => val is number; | ||
declare const isString: (val: unknown) => val is string; | ||
declare const isObject: (val: any) => val is object; | ||
declare const isUndefined: (val: any) => val is undefined; | ||
declare const isNull: (val: any) => val is null; | ||
declare const isRegExp: (val: any) => val is RegExp; | ||
declare const isDate: (val: any) => val is Date; | ||
declare const isArray: (val: any) => val is any[]; | ||
declare const isArrayOfObject: (val: any) => val is object[]; | ||
declare const isSecondUnit: (val: any) => val is "s" | "sec" | "second" | "秒"; | ||
declare const isMinuteUnit: (val: any) => val is "s" | "sec" | "second" | "秒"; | ||
declare const isHourUnit: (val: any) => val is "h" | "hour" | "小时" | "时"; | ||
declare const isDayUnit: (val: any) => val is "d" | "day" | "天"; | ||
declare const isWeekUnit: (val: any) => val is "w" | "week" | "周"; | ||
declare const isMonthUnit: (val: any) => val is "M" | "mo" | "month" | "月"; | ||
declare const isYearUnit: (val: any) => val is "y" | "year" | "年"; | ||
declare const isWindow: (val: any) => boolean; | ||
declare const isBrowser: boolean; | ||
declare function assert(condition: boolean, message: string): asserts condition; | ||
declare const toString: (v: any) => string; | ||
declare function getTypeName(v: any): string; | ||
declare function noop(): void; | ||
export { BusinessHours, BusinessHoursMap, Calendar, CalendarConfig, DD, DateTimeString, DayUnit, DurationUnit, HolidayDetail, Hour, HourUnit, MM, Minute, MinuteMaps, MinuteUnit, MonthUnit, Second, SecondUnit, Time, WeekDay, WeekMinute, WeekUnit, YYYY, YearUnit, addBusinessMinutes, assert, businessHoursMap, businessMinuteMap, businessTimeToDate, dayUnits, daysNameMaps, daysNames, diffBusinessMinutes, getBusinessTime, getDateFromMatch, getTypeName, holidays, hourUnits, isArray, isArrayOfObject, isBoolean, isBrowser, isDate, isDayUnit, isDef, isFunction, isHourUnit, isMinuteUnit, isMonthUnit, isNull, isNumber, isObject, isRegExp, isSecondUnit, isString, isUndefined, isWeekUnit, isWindow, isYearUnit, minuteUnits, monthUnits, noop, numToTime, numToWeekMinute, secondUnits, timeToNum, toString, units, weekUnits, yearUnits }; |
{ | ||
"name": "@171h/utils", | ||
"type": "module", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"packageManager": "pnpm@8.1.1", | ||
@@ -39,14 +39,2 @@ "description": "", | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "unbuild --stub", | ||
"lint": "eslint .", | ||
"prepublishOnly": "nr build", | ||
"release": "bumpp && npm publish --access public", | ||
"start": "esno src/index.ts", | ||
"test": "vitest --watch", | ||
"bench": "vitest bench", | ||
"test-ui": "vitest --ui", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"devDependencies": { | ||
@@ -57,2 +45,3 @@ "@171h/dayjs-business-time": "^1.1.0", | ||
"@antfu/utils": "^0.7.2", | ||
"@types/luxon": "^3.3.0", | ||
"@types/node": "^20.2.5", | ||
@@ -65,2 +54,4 @@ "@vitest/ui": "^0.31.1", | ||
"lint-staged": "^13.2.2", | ||
"luxon": "^3.3.0", | ||
"moment": "^2.29.4", | ||
"pnpm": "^8.5.1", | ||
@@ -79,3 +70,14 @@ "rimraf": "^5.0.1", | ||
"*": "eslint --fix" | ||
}, | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "unbuild --stub", | ||
"lint": "eslint .", | ||
"release": "bumpp && npm publish --access public", | ||
"start": "esno src/index.ts", | ||
"test": "vitest --watch", | ||
"bench": "vitest bench", | ||
"test-ui": "vitest --ui", | ||
"typecheck": "tsc --noEmit" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33113
7
361
21