@pushrocks/smarttime
Advanced tools
Comparing version 3.0.36 to 3.0.37
@@ -34,2 +34,3 @@ export declare type TAvailableZone = 'Europe/Berlin'; | ||
format(formatArg: string): string; | ||
isToday(): boolean; | ||
} |
@@ -116,4 +116,7 @@ "use strict"; | ||
} | ||
isToday() { | ||
return plugins.dayjs(this.getTime()).isToday(); | ||
} | ||
} | ||
exports.ExtendedDate = ExtendedDate; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLmNsYXNzZXMuZXh0ZW5kZWRkYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR0aW1lLmNsYXNzZXMuZXh0ZW5kZWRkYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2REFBK0M7QUFnQi9DLE1BQWEsWUFBYSxTQUFRLElBQUk7SUEwRHBDLFlBQVksU0FBaUI7UUFDM0IsS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ25CLENBQUM7SUEzREQsbUJBQW1CO0lBQ1osTUFBTSxDQUFDLFVBQVUsQ0FBQyxZQUFvQjtRQUMzQyxPQUFPLElBQUksWUFBWSxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBQ3hDLENBQUM7SUFFTSxNQUFNLENBQUMsUUFBUSxDQUFDLE9BQWE7UUFDbEMsT0FBTyxJQUFJLFlBQVksQ0FBQyxPQUFPLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQztJQUM3QyxDQUFDO0lBRU0sTUFBTSxDQUFDLGdCQUFnQixDQUFDLFlBQW9CO1FBQ2pELE1BQU0sU0FBUyxHQUFHLGtCQUFrQixDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsQ0FBQztRQUN4RCxNQUFNLElBQUksR0FBRyxJQUFJLElBQUksQ0FDbkIsVUFBVSxDQUFDLFNB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RUFBRSxTQUFTLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxDQUFDO1NBQzNDLENBQUM7SUFDSixDQUFDO0lBRU0sTUFBTSxDQUFFLFNBQWlCO1FBQzlCLE9BQU8sT0FBTyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDekQsQ0FBQztJQUVNLE9BQU87UUFDWixPQUFPLE9BQU8sQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDakQsQ0FBQztDQUNGO0FBbkhELG9DQW1IQyJ9 |
@@ -38,2 +38,4 @@ "use strict"; | ||
exports.dayjs = dayjs_1.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQW1CO0FBQ25CLG9EQUFzQztBQUk3QixrQkFBRztBQUhaLGtFQUFvRDtBQUd0QyxnQ0FBVTtBQUZ4QixzRUFBd0Q7QUFFOUIsb0NBQVk7QUFFdEMsZ0JBQWdCO0FBQ2hCLG9EQUE0QjtBQUduQixpQkFIRixnQkFBTSxDQUdFO0FBRmYsa0RBQTBCO0FBRVQsZ0JBRlYsZUFBSyxDQUVVIn0= | ||
const isToday_1 = __importDefault(require("dayjs/plugin/isToday")); | ||
dayjs_1.default.extend(isToday_1.default); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQW1CO0FBQ25CLG9EQUFzQztBQUk3QixrQkFBRztBQUhaLGtFQUFvRDtBQUd0QyxnQ0FBVTtBQUZ4QixzRUFBd0Q7QUFFOUIsb0NBQVk7QUFFdEMsZ0JBQWdCO0FBQ2hCLG9EQUE0QjtBQU1uQixpQkFORixnQkFBTSxDQU1FO0FBTGYsa0RBQTBCO0FBS1QsZ0JBTFYsZUFBSyxDQUtVO0FBSnRCLG1FQUEyQztBQUUzQyxlQUFLLENBQUMsTUFBTSxDQUFDLGlCQUFPLENBQUMsQ0FBQyJ9 |
{ | ||
"name": "@pushrocks/smarttime", | ||
"private": false, | ||
"version": "3.0.36", | ||
"version": "3.0.37", | ||
"description": "handle time in smart ways", | ||
@@ -6,0 +6,0 @@ "main": "dist_ts/index.js", |
@@ -128,2 +128,6 @@ import * as plugins from './smarttime.plugins'; | ||
} | ||
public isToday () { | ||
return plugins.dayjs(this.getTime()).isToday(); | ||
} | ||
} |
@@ -11,3 +11,6 @@ // @pushrocks scope | ||
import dayjs from 'dayjs'; | ||
import isToday from 'dayjs/plugin/isToday'; | ||
dayjs.extend(isToday); | ||
export { croner, dayjs }; |
Sorry, the diff of this file is too big to display
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
1492629
13182