@naturalcycles/js-lib
Advanced tools
Comparing version 14.226.0 to 14.227.0
@@ -342,17 +342,5 @@ import { _assert } from '../error/assert'; | ||
} | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num, unit, mutate = false) { | ||
return this.plus(-num, unit, mutate); | ||
} | ||
minus(num, unit, mutate = false) { | ||
return this.plus(-num, unit, mutate); | ||
} | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num, unit, mutate = false) { | ||
return this.plus(num, unit, mutate); | ||
} | ||
startOf(unit) { | ||
@@ -359,0 +347,0 @@ if (unit === 'day') |
@@ -212,17 +212,5 @@ import { _assert } from '../error/assert'; | ||
} | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num, unit, mutate = false) { | ||
return this.plus(num * -1, unit, mutate); | ||
} | ||
minus(num, unit, mutate = false) { | ||
return this.plus(num * -1, unit, mutate); | ||
} | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num, unit, mutate = false) { | ||
return this.plus(num, unit, mutate); | ||
} | ||
absDiff(other, unit) { | ||
@@ -229,0 +217,0 @@ return Math.abs(this.diff(other, unit)); |
@@ -24,3 +24,2 @@ import { _errorDataAppend, _since, pDelay, pTimeout } from '..'; | ||
let attempt = 0; | ||
/* eslint-disable no-constant-condition */ | ||
while (true) { | ||
@@ -27,0 +26,0 @@ const started = Date.now(); |
@@ -134,5 +134,1 @@ import { _isBackendErrorResponseObject, _isErrorLike, _isErrorObject } from '../error/error.util'; | ||
} | ||
/** | ||
* @deprecated renamed to _stringify | ||
*/ | ||
export const _stringifyAny = _stringify; |
@@ -97,11 +97,3 @@ import { Iterable2 } from '../iter/iterable2'; | ||
plus(num: number, unit: LocalDateUnit, mutate?: boolean): LocalDate; | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num: number, unit: LocalDateUnit, mutate?: boolean): LocalDate; | ||
minus(num: number, unit: LocalDateUnit, mutate?: boolean): LocalDate; | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num: number, unit: LocalDateUnit, mutate?: boolean): LocalDate; | ||
startOf(unit: LocalDateUnitStrict): LocalDate; | ||
@@ -108,0 +100,0 @@ endOf(unit: LocalDateUnitStrict): LocalDate; |
@@ -345,17 +345,5 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num, unit, mutate = false) { | ||
return this.plus(-num, unit, mutate); | ||
} | ||
minus(num, unit, mutate = false) { | ||
return this.plus(-num, unit, mutate); | ||
} | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num, unit, mutate = false) { | ||
return this.plus(num, unit, mutate); | ||
} | ||
startOf(unit) { | ||
@@ -362,0 +350,0 @@ if (unit === 'day') |
@@ -73,11 +73,3 @@ import type { Inclusiveness, IsoDateString, IsoDateTimeString, MonthId, SortDirection, UnixTimestampMillisNumber, UnixTimestampNumber } from '../types'; | ||
plus(num: number, unit: LocalTimeUnit, mutate?: boolean): LocalTime; | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num: number, unit: LocalTimeUnit, mutate?: boolean): LocalTime; | ||
minus(num: number, unit: LocalTimeUnit, mutate?: boolean): LocalTime; | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num: number, unit: LocalTimeUnit, mutate?: boolean): LocalTime; | ||
absDiff(other: LocalTimeInput, unit: LocalTimeUnit): number; | ||
@@ -84,0 +76,0 @@ diff(other: LocalTimeInput, unit: LocalTimeUnit): number; |
@@ -214,17 +214,5 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num, unit, mutate = false) { | ||
return this.plus(num * -1, unit, mutate); | ||
} | ||
minus(num, unit, mutate = false) { | ||
return this.plus(num * -1, unit, mutate); | ||
} | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num, unit, mutate = false) { | ||
return this.plus(num, unit, mutate); | ||
} | ||
absDiff(other, unit) { | ||
@@ -231,0 +219,0 @@ return Math.abs(this.diff(other, unit)); |
@@ -28,3 +28,2 @@ "use strict"; | ||
let attempt = 0; | ||
/* eslint-disable no-constant-condition */ | ||
while (true) { | ||
@@ -31,0 +30,0 @@ const started = Date.now(); |
@@ -68,5 +68,1 @@ import type { Reviver } from '../types'; | ||
export declare function _stringify(obj: any, opt?: StringifyOptions): string; | ||
/** | ||
* @deprecated renamed to _stringify | ||
*/ | ||
export declare const _stringifyAny: typeof _stringify; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports._stringifyAny = exports._stringify = exports.setGlobalStringifyFunction = void 0; | ||
exports._stringify = exports.setGlobalStringifyFunction = void 0; | ||
const error_util_1 = require("../error/error.util"); | ||
@@ -139,5 +139,1 @@ const json_util_1 = require("./json.util"); | ||
exports._stringify = _stringify; | ||
/** | ||
* @deprecated renamed to _stringify | ||
*/ | ||
exports._stringifyAny = _stringify; |
{ | ||
"name": "@naturalcycles/js-lib", | ||
"version": "14.226.0", | ||
"version": "14.227.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "prepare": "husky", |
@@ -418,9 +418,2 @@ import { _assert } from '../error/assert' | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num: number, unit: LocalDateUnit, mutate = false): LocalDate { | ||
return this.plus(-num, unit, mutate) | ||
} | ||
minus(num: number, unit: LocalDateUnit, mutate = false): LocalDate { | ||
@@ -430,9 +423,2 @@ return this.plus(-num, unit, mutate) | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num: number, unit: LocalDateUnit, mutate = false): LocalDate { | ||
return this.plus(num, unit, mutate) | ||
} | ||
startOf(unit: LocalDateUnitStrict): LocalDate { | ||
@@ -439,0 +425,0 @@ if (unit === 'day') return this |
@@ -284,9 +284,2 @@ import { _assert } from '../error/assert' | ||
/** | ||
* @deprecated use `minus` instead | ||
*/ | ||
subtract(num: number, unit: LocalTimeUnit, mutate = false): LocalTime { | ||
return this.plus(num * -1, unit, mutate) | ||
} | ||
minus(num: number, unit: LocalTimeUnit, mutate = false): LocalTime { | ||
@@ -296,9 +289,2 @@ return this.plus(num * -1, unit, mutate) | ||
/** | ||
* @deprecated use `plus` instead | ||
*/ | ||
add(num: number, unit: LocalTimeUnit, mutate = false): LocalTime { | ||
return this.plus(num, unit, mutate) | ||
} | ||
absDiff(other: LocalTimeInput, unit: LocalTimeUnit): number { | ||
@@ -305,0 +291,0 @@ return Math.abs(this.diff(other, unit)) |
@@ -131,3 +131,2 @@ import type { AnyFunction, CommonLogger, ErrorData } from '..' | ||
/* eslint-disable no-constant-condition */ | ||
while (true) { | ||
@@ -134,0 +133,0 @@ const started = Date.now() |
@@ -187,6 +187,1 @@ import { _isBackendErrorResponseObject, _isErrorLike, _isErrorObject } from '../error/error.util' | ||
} | ||
/** | ||
* @deprecated renamed to _stringify | ||
*/ | ||
export const _stringifyAny = _stringify |
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
1006495
30150