@sparted/shared-library 1.7.12 → 1.7.14
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/business/types/content.d.ts +8 -8
- package/business/types/media.d.ts +1 -1
- package/date/get-next-day.d.ts +1 -0
- package/date/get-next-day.js +12 -0
- package/date/get-next-day.js.map +1 -0
- package/date/index.d.ts +1 -0
- package/date/index.js +2 -0
- package/date/index.js.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -125,7 +125,7 @@ export declare const isPartialGameMultipleChoiceQuestion: (game: DeepPartial<Gam
|
|
|
125
125
|
video?: {
|
|
126
126
|
id?: number | undefined;
|
|
127
127
|
url?: string | undefined;
|
|
128
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
128
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
129
129
|
} | undefined;
|
|
130
130
|
} | undefined;
|
|
131
131
|
question?: {
|
|
@@ -214,7 +214,7 @@ export declare const isPartialGameMultipleChoiceQuestion: (game: DeepPartial<Gam
|
|
|
214
214
|
video?: {
|
|
215
215
|
id?: number | undefined;
|
|
216
216
|
url?: string | undefined;
|
|
217
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
217
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
218
218
|
} | undefined;
|
|
219
219
|
} | undefined;
|
|
220
220
|
explanation?: {
|
|
@@ -268,7 +268,7 @@ export declare const isPartialGameErrorText: (game: DeepPartial<Game>) => game i
|
|
|
268
268
|
video?: {
|
|
269
269
|
id?: number | undefined;
|
|
270
270
|
url?: string | undefined;
|
|
271
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
271
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
272
272
|
} | undefined;
|
|
273
273
|
} | undefined;
|
|
274
274
|
wrongText?: {
|
|
@@ -354,7 +354,7 @@ export declare const isPartialGameErrorText: (game: DeepPartial<Game>) => game i
|
|
|
354
354
|
video?: {
|
|
355
355
|
id?: number | undefined;
|
|
356
356
|
url?: string | undefined;
|
|
357
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
357
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
358
358
|
} | undefined;
|
|
359
359
|
} | undefined;
|
|
360
360
|
explanation?: {
|
|
@@ -408,7 +408,7 @@ export declare const isPartialGameOpenQuestion: (game: DeepPartial<Game>) => gam
|
|
|
408
408
|
video?: {
|
|
409
409
|
id?: number | undefined;
|
|
410
410
|
url?: string | undefined;
|
|
411
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
411
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
412
412
|
} | undefined;
|
|
413
413
|
} | undefined;
|
|
414
414
|
question?: {
|
|
@@ -495,7 +495,7 @@ export declare const isPartialGameOpenQuestion: (game: DeepPartial<Game>) => gam
|
|
|
495
495
|
video?: {
|
|
496
496
|
id?: number | undefined;
|
|
497
497
|
url?: string | undefined;
|
|
498
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
498
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
499
499
|
} | undefined;
|
|
500
500
|
} | undefined;
|
|
501
501
|
explanation?: {
|
|
@@ -549,7 +549,7 @@ export declare const isPartialGameNoInteraction: (game: DeepPartial<Game>) => ga
|
|
|
549
549
|
video?: {
|
|
550
550
|
id?: number | undefined;
|
|
551
551
|
url?: string | undefined;
|
|
552
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
552
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
553
553
|
} | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
title?: {
|
|
@@ -635,7 +635,7 @@ export declare const isPartialGameNoInteraction: (game: DeepPartial<Game>) => ga
|
|
|
635
635
|
video?: {
|
|
636
636
|
id?: number | undefined;
|
|
637
637
|
url?: string | undefined;
|
|
638
|
-
type?: "Youtube" | "api.video" | "Kumullus" | undefined;
|
|
638
|
+
type?: "Youtube" | "api.video" | "Kumullus" | "Brightcove" | undefined;
|
|
639
639
|
} | undefined;
|
|
640
640
|
} | undefined;
|
|
641
641
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getNextDay: (date: Date) => Date;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const getNextDay = (date) => {
|
|
6
|
+
const nextDay = new Date(date);
|
|
7
|
+
nextDay.setDate(date.getDate() + 1);
|
|
8
|
+
return nextDay;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.getNextDay = getNextDay;
|
|
12
|
+
//# sourceMappingURL=get-next-day.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-next-day.js","sources":["../../src/date/get-next-day.ts"],"sourcesContent":["export const getNextDay = (date: Date): Date => {\n const nextDay = new Date(date);\n nextDay.setDate(date.getDate() + 1);\n\n return nextDay;\n};\n"],"names":[],"mappings":";;;;AAAa,MAAA,UAAU,GAAG,CAAC,IAAU,KAAU;AAC7C,IAAA,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC;AAEpC,IAAA,OAAO,OAAO,CAAC;AACjB;;;;"}
|
package/date/index.d.ts
CHANGED
package/date/index.js
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var toPlainDateString = require('./to-plain-date-string.js');
|
|
6
|
+
var getNextDay = require('./get-next-day.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
exports.toPlainDateString = toPlainDateString.toPlainDateString;
|
|
11
|
+
exports.getNextDay = getNextDay.getNextDay;
|
|
10
12
|
//# sourceMappingURL=index.js.map
|
package/date/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/index.js
CHANGED
|
@@ -40,6 +40,7 @@ var isStringLengthWithinRange = require('./string/is-string-length-within-range.
|
|
|
40
40
|
var getContrastColor = require('./color/get-contrast-color.js');
|
|
41
41
|
var aes256 = require('./crypto/aes256.js');
|
|
42
42
|
var toPlainDateString = require('./date/to-plain-date-string.js');
|
|
43
|
+
var getNextDay = require('./date/get-next-day.js');
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
|
|
@@ -88,4 +89,5 @@ exports.isStringLengthWithinRange = isStringLengthWithinRange.isStringLengthWith
|
|
|
88
89
|
exports.getContrastColor = getContrastColor.getContrastColor;
|
|
89
90
|
exports.encrypt = aes256.encrypt;
|
|
90
91
|
exports.toPlainDateString = toPlainDateString.toPlainDateString;
|
|
92
|
+
exports.getNextDay = getNextDay.getNextDay;
|
|
91
93
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|