Make moment dependency use open ranges (#11547)

* Make moment dependency use `>` instead of fixed version

* Remove unused file

* Use moment.MomentFormatSpecification

* Add dependency on moment
This commit is contained in:
Mohamed Hegazy
2016-10-06 09:43:47 -07:00
committed by GitHub
parent 159ba3fc8f
commit dc86842627
16 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+4 -7
View File
@@ -20,19 +20,16 @@ declare namespace MomentTimezone {
parse(timestamp: number): number
}
type MomentFormatSpecification =
string | (() => void) | (string | (() => void))[];
interface MomentTimezone {
(): moment.Moment;
(timezone: string): moment.Moment;
(date: number, timezone: string): moment.Moment;
(date: number[], timezone: string): moment.Moment;
(date: string, timezone: string): moment.Moment;
(date: string, format: MomentFormatSpecification, timezone: string): moment.Moment;
(date: string, format: MomentFormatSpecification, strict: boolean, timezone: string): moment.Moment;
(date: string, format: MomentFormatSpecification, language: string, timezone: string): moment.Moment;
(date: string, format: MomentFormatSpecification, language: string, strict: boolean, timezone: string): moment.Moment;
(date: string, format: moment.MomentFormatSpecification, timezone: string): moment.Moment;
(date: string, format: moment.MomentFormatSpecification, strict: boolean, timezone: string): moment.Moment;
(date: string, format: moment.MomentFormatSpecification, language: string, timezone: string): moment.Moment;
(date: string, format: moment.MomentFormatSpecification, language: string, strict: boolean, timezone: string): moment.Moment;
(date: Date, timezone: string): moment.Moment;
(date: moment.Moment, timezone: string): moment.Moment;
(date: Object, timezone: string): moment.Moment;
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}
+4 -4
View File
@@ -1,5 +1,5 @@
{
"scripts": {
"postinstall": "cd ../moment-range && npm install"
}
}
"dependencies": {
"moment": ">=2.14.0"
}
}
+3
View File
@@ -8,6 +8,9 @@
"typeRoots": [
"../"
],
"paths": {
"*": ["*", "react-daterange-picker/node_modules/*"]
},
"types": ["moment-range", "react"],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
+1 -1
View File
@@ -1,5 +1,5 @@
{
"dependencies": {
"moment": "2.14.*"
"moment": ">=2.14.0"
}
}