podverse-shared
Advanced tools
Comparing version 4.14.13 to 4.14.14
@@ -21,3 +21,3 @@ export { extractSelectedEnclosureSourceAndContentType } from './alternateEnclosures'; | ||
export { SocialInteraction, SocialInteractionKeys, checkIfHasSupportedCommentTag } from './socialInteraction/SocialInteraction'; | ||
export { convertHHMMSSToAnchorTags, convertHHMMSSToSeconds, convertHoursMinutesSecondsToSeconds, convertSecToHHMMSS, convertSecToHhoursMMinutes, getHHMMSSArray, getHHMMSSMatchesInString, getTimeLabelText, validateHHMMSSString } from './timeHelpers'; | ||
export { convertHHMMSSToAnchorTags, convertHHMMSSToSeconds, convertHoursMinutesSecondsToSeconds, convertSecToFullHHMMSS, convertSecToHHMMSS, convertSecToHhoursMMinutes, getHHMMSSArray, getHHMMSSMatchesInString, getTimeLabelText, validateHHMMSSString } from './timeHelpers'; | ||
export { parseTranslatorsSection, Translator, TranslatorsSection } from './Translators'; | ||
@@ -24,0 +24,0 @@ export { Transcript, TranscriptRow, TranscriptType, getTranscriptForLocale, parseTranscriptFile } from './transcript'; |
@@ -55,2 +55,3 @@ "use strict"; | ||
Object.defineProperty(exports, "convertHoursMinutesSecondsToSeconds", { enumerable: true, get: function () { return timeHelpers_1.convertHoursMinutesSecondsToSeconds; } }); | ||
Object.defineProperty(exports, "convertSecToFullHHMMSS", { enumerable: true, get: function () { return timeHelpers_1.convertSecToFullHHMMSS; } }); | ||
Object.defineProperty(exports, "convertSecToHHMMSS", { enumerable: true, get: function () { return timeHelpers_1.convertSecToHHMMSS; } }); | ||
@@ -57,0 +58,0 @@ Object.defineProperty(exports, "convertSecToHhoursMMinutes", { enumerable: true, get: function () { return timeHelpers_1.convertSecToHhoursMMinutes; } }); |
export declare const convertHHMMSSToAnchorTags: (html: string) => string; | ||
export declare function convertHHMMSSToSeconds(hhmmssString: string): number | null; | ||
export declare function convertHoursMinutesSecondsToSeconds(hours: number, minutes: number, seconds: number): number; | ||
export declare const convertSecToFullHHMMSS: (sec: number) => string; | ||
export declare const convertSecToHHMMSS: (sec: number) => string; | ||
@@ -5,0 +6,0 @@ export declare const convertSecToHhoursMMinutes: (sec: number) => string; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validateHHMMSSString = exports.getTimeLabelText = exports.getHHMMSSMatchesInString = exports.getHHMMSSArray = exports.convertSecToHhoursMMinutes = exports.convertSecToHHMMSS = exports.convertHoursMinutesSecondsToSeconds = exports.convertHHMMSSToSeconds = exports.convertHHMMSSToAnchorTags = void 0; | ||
exports.validateHHMMSSString = exports.getTimeLabelText = exports.getHHMMSSMatchesInString = exports.getHHMMSSArray = exports.convertSecToHhoursMMinutes = exports.convertSecToHHMMSS = exports.convertSecToFullHHMMSS = exports.convertHoursMinutesSecondsToSeconds = exports.convertHHMMSSToSeconds = exports.convertHHMMSSToAnchorTags = void 0; | ||
var moment_1 = __importDefault(require("moment")); | ||
exports.convertHHMMSSToAnchorTags = function (html) { | ||
@@ -77,2 +81,5 @@ var createHHMMSSAnchorTag = function (hhmmss) { | ||
exports.convertHoursMinutesSecondsToSeconds = convertHoursMinutesSecondsToSeconds; | ||
exports.convertSecToFullHHMMSS = function (sec) { | ||
return moment_1.default.utc(sec * 1000).format('HH:mm:ss'); | ||
}; | ||
exports.convertSecToHHMMSS = function (sec) { | ||
@@ -79,0 +86,0 @@ var totalSec = Math.floor(sec); |
{ | ||
"name": "podverse-shared", | ||
"version": "4.14.13", | ||
"version": "4.14.14", | ||
"description": "Helpers that are used across multiple Podverse modules", | ||
@@ -29,2 +29,3 @@ "main": "./dist/index.js", | ||
"lodash": "4.17.21", | ||
"moment": "^2.29.4", | ||
"striptags": "^3.2.0", | ||
@@ -31,0 +32,0 @@ "typescript": "3.9.7" |
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
142082
2352
7
+ Addedmoment@^2.29.4
+ Addedmoment@2.30.1(transitive)