moment-parseformat
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "moment", | ||
"version": "2.5.1", | ||
"main": "moment.js", | ||
@@ -21,12 +20,10 @@ "ignore": [ | ||
"homepage": "https://github.com/moment/moment", | ||
"_release": "2.5.1", | ||
"_release": "d3da8f7b50", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "2.5.1", | ||
"commit": "5da8066ec789fe5b139ba087650c53e33f39da50" | ||
"type": "commit", | ||
"commit": "d3da8f7b504aee57fe610e1aa103c1702a7f945e" | ||
}, | ||
"_source": "git://github.com/moment/moment.git", | ||
"_target": "~2.5.1", | ||
"_originalSource": "momentjs", | ||
"_direct": true | ||
"_target": "d3da8f7b504aee57fe610e1aa103c1702a7f945e", | ||
"_originalSource": "git://github.com/moment/moment.git" | ||
} |
@@ -14,5 +14,14 @@ // moment.js language configuration | ||
}(function (moment) { | ||
var monthsShortDot = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), | ||
monthsShort = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"); | ||
return moment.lang('es', { | ||
months : "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), | ||
monthsShort : "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), | ||
monthsShort : function (m, format) { | ||
if (/-MMM-/.test(format)) { | ||
return monthsShort[m.month()]; | ||
} else { | ||
return monthsShortDot[m.month()]; | ||
} | ||
}, | ||
weekdays : "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), | ||
@@ -19,0 +28,0 @@ weekdaysShort : "dom._lun._mar._mié._jue._vie._sáb.".split("_"), |
@@ -64,3 +64,3 @@ // moment.js language configuration | ||
function relativeWeekDay(moment, format) { | ||
var nominative = format.indexOf('dddd LT') === -1, | ||
var nominative = format.indexOf('dddd HH:mm') === -1, | ||
weekDay = weekDays[moment.weekday()]; | ||
@@ -67,0 +67,0 @@ |
@@ -24,4 +24,4 @@ // moment.js language configuration | ||
LL : "D [de] MMMM [de] YYYY", | ||
LLL : "D [de] MMMM [de] YYYY LT", | ||
LLLL : "dddd, D [de] MMMM [de] YYYY LT" | ||
LLL : "D [de] MMMM [de] YYYY [às] LT", | ||
LLLL : "dddd, D [de] MMMM [de] YYYY [às] LT" | ||
}, | ||
@@ -28,0 +28,0 @@ calendar : { |
@@ -33,3 +33,3 @@ // moment.js language configuration | ||
months : "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"), | ||
monthsShort : "ian_feb_mar_apr_mai_iun_iul_aug_sep_oct_noi_dec".split("_"), | ||
monthsShort : "ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"), | ||
weekdays : "duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"), | ||
@@ -36,0 +36,0 @@ weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"), |
@@ -21,2 +21,5 @@ // moment.js language configuration | ||
weekdaysMin : "D_H_Ma_Më_E_P_Sh".split("_"), | ||
meridiem : function (hours, minutes, isLower) { | ||
return hours < 12 ? 'PD' : 'MD'; | ||
}, | ||
longDateFormat : { | ||
@@ -23,0 +26,0 @@ LT : "HH:mm", |
{ | ||
"name": "moment-parseformat", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"authors": [ | ||
@@ -28,4 +28,4 @@ "Gregor Martynus <gregor@martynus.net>" | ||
"dependencies": { | ||
"momentjs": "~2.5.1" | ||
"momentjs": "git://github.com/moment/moment.git#d3da8f7b504aee57fe610e1aa103c1702a7f945e" | ||
} | ||
} |
{ | ||
"name": "moment-parseformat", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "A moment.js plugin to extract the format of a date/time string", | ||
@@ -25,4 +25,4 @@ "main": "moment.parseFormat.js", | ||
"dependencies": { | ||
"moment": "~2.5.1" | ||
"moment": "git://github.com/moment/moment.git#d3da8f7b504aee57fe610e1aa103c1702a7f945e" | ||
} | ||
} |
@@ -18,3 +18,3 @@ moment.parseFormat – a moment.js plugin | ||
``` | ||
npm install --save moment.parseformat | ||
npm install --save moment-parseformat | ||
``` | ||
@@ -29,3 +29,3 @@ | ||
// dddd, MMMM Do, YYYY h:mma | ||
moment.format(format); // format | ||
moment().format(format); // format | ||
``` | ||
@@ -32,0 +32,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
2784317
39767
1
- Removedmoment@2.5.1(transitive)
Updatedmoment@git://github.com/moment/moment.git#d3da8f7b504aee57fe610e1aa103c1702a7f945e