@infrab4a/connect 5.5.1-beta.0 → 5.5.1-beta.1
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/index.cjs.js +5 -1
- package/index.esm.js +2 -2
- package/package.json +1 -1
- package/src/utils/index.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -9999,7 +9999,7 @@ class PagarMeV5RequestHelper {
|
|
|
9999
9999
|
}
|
|
10000
10000
|
static getPixOrder() {
|
|
10001
10001
|
return {
|
|
10002
|
-
expires_at: dateFns.format(dateFns.
|
|
10002
|
+
expires_at: dateFns.format(dateFns.addHours(new Date(), 24), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),
|
|
10003
10003
|
};
|
|
10004
10004
|
}
|
|
10005
10005
|
static getBoletoOrder() {
|
|
@@ -10779,6 +10779,10 @@ Object.defineProperty(exports, 'addDays', {
|
|
|
10779
10779
|
enumerable: true,
|
|
10780
10780
|
get: function () { return dateFns.addDays; }
|
|
10781
10781
|
});
|
|
10782
|
+
Object.defineProperty(exports, 'addHours', {
|
|
10783
|
+
enumerable: true,
|
|
10784
|
+
get: function () { return dateFns.addHours; }
|
|
10785
|
+
});
|
|
10782
10786
|
Object.defineProperty(exports, 'addMonths', {
|
|
10783
10787
|
enumerable: true,
|
|
10784
10788
|
get: function () { return dateFns.addMonths; }
|
package/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import 'reflect-metadata';
|
|
|
2
2
|
import { __decorate, __metadata } from 'tslib';
|
|
3
3
|
import { plainToInstance, instanceToPlain, Type } from 'class-transformer';
|
|
4
4
|
import { parseISO, startOfDay, endOfDay, addHours, subDays, format, addDays } from 'date-fns';
|
|
5
|
-
export { add, addBusinessDays, addDays, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
5
|
+
export { add, addBusinessDays, addDays, addHours, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
6
6
|
import { utcToZonedTime } from 'date-fns-tz';
|
|
7
7
|
export { formatInTimeZone } from 'date-fns-tz';
|
|
8
8
|
import { compact, get, isNil, isArray, first, last, flatten, isString, omit, each, unset, isObject, isEmpty, isDate, isBoolean, isInteger, isNumber, isNaN as isNaN$1, set, chunk, sortBy } from 'lodash';
|
|
@@ -9975,7 +9975,7 @@ class PagarMeV5RequestHelper {
|
|
|
9975
9975
|
}
|
|
9976
9976
|
static getPixOrder() {
|
|
9977
9977
|
return {
|
|
9978
|
-
expires_at: format(
|
|
9978
|
+
expires_at: format(addHours(new Date(), 24), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx"),
|
|
9979
9979
|
};
|
|
9980
9980
|
}
|
|
9981
9981
|
static getBoletoOrder() {
|
package/package.json
CHANGED
package/src/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
1
|
+
import { add, addBusinessDays, addDays, addHours, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
2
2
|
import { formatInTimeZone } from 'date-fns-tz';
|
|
3
3
|
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
4
4
|
export type DateDuration = Duration;
|
|
@@ -14,4 +14,4 @@ export * from './obs-emitter';
|
|
|
14
14
|
export * from './parse-datetime';
|
|
15
15
|
export * from './serialize';
|
|
16
16
|
export * from './types';
|
|
17
|
-
export { add, addBusinessDays, addDays, addMonths, addYears, formatInTimeZone, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, subDays, unset, };
|
|
17
|
+
export { add, addBusinessDays, addHours, addDays, addMonths, addYears, formatInTimeZone, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, subDays, unset, };
|