idea-toolbox
Advanced tools
Comparing version 2.0.11 to 2.0.12
@@ -91,2 +91,10 @@ /** | ||
*/ | ||
protected patchResource(): Promise<any>; | ||
/** | ||
* To @override | ||
*/ | ||
protected patchResources(): Promise<any>; | ||
/** | ||
* To @override | ||
*/ | ||
protected deleteResources(): Promise<any>; | ||
@@ -93,0 +101,0 @@ /** |
@@ -45,2 +45,5 @@ "use strict"; | ||
break; | ||
case 'PATCH': | ||
request = this.patchResource(); | ||
break; | ||
case 'HEAD': | ||
@@ -66,2 +69,5 @@ request = this.headResource(); | ||
break; | ||
case 'PATCH': | ||
request = this.patchResources(); | ||
break; | ||
case 'HEAD': | ||
@@ -187,2 +193,16 @@ request = this.headResources(); | ||
*/ | ||
patchResource() { | ||
return new Promise((resolve, reject) => reject(new Error(`E.COMMON.UNSUPPORTED_ACTION`))); | ||
} | ||
; | ||
/** | ||
* To @override | ||
*/ | ||
patchResources() { | ||
return new Promise((resolve, reject) => reject(new Error(`E.COMMON.UNSUPPORTED_ACTION`))); | ||
} | ||
; | ||
/** | ||
* To @override | ||
*/ | ||
deleteResources() { | ||
@@ -189,0 +209,0 @@ return new Promise((resolve, reject) => reject(new Error(`E.COMMON.UNSUPPORTED_ACTION`))); |
{ | ||
"name": "idea-toolbox", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -78,2 +78,3 @@ /** | ||
case 'DELETE': request = this.deleteResource(); break; | ||
case 'PATCH': request = this.patchResource(); break; | ||
case 'HEAD': request = this.headResource(); break; | ||
@@ -87,2 +88,3 @@ default: /* nope */; | ||
case 'DELETE': request = this.deleteResources(); break; | ||
case 'PATCH': request = this.patchResources(); break; | ||
case 'HEAD': request = this.headResources(); break; | ||
@@ -183,2 +185,14 @@ default: /* nope */; | ||
*/ | ||
protected patchResource(): Promise<any> { | ||
return new Promise((resolve, reject) => reject(new Error(`E.COMMON.UNSUPPORTED_ACTION`))); | ||
}; | ||
/** | ||
* To @override | ||
*/ | ||
protected patchResources(): Promise<any> { | ||
return new Promise((resolve, reject) => reject(new Error(`E.COMMON.UNSUPPORTED_ACTION`))); | ||
}; | ||
/** | ||
* To @override | ||
*/ | ||
protected deleteResources(): Promise<any> { | ||
@@ -185,0 +199,0 @@ return new Promise((resolve, reject) => reject(new Error(`E.COMMON.UNSUPPORTED_ACTION`))); |
93920
2460