diff --git a/package-lock.json b/package-lock.json index 84b83ae5..4bfbfbaa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1225,7 +1225,7 @@ }, "source-map": { "version": "0.2.0", - "resolved": "http://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", "integrity": "sha1-2rc/vPwrqBm03gO9b26qSBZLP50=", "dev": true, "optional": true, @@ -1261,7 +1261,7 @@ }, "eventemitter2": { "version": "0.4.14", - "resolved": "http://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", "dev": true }, @@ -2913,7 +2913,7 @@ }, "async": { "version": "1.5.2", - "resolved": "http://registry.npmjs.org/async/-/async-1.5.2.tgz", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, diff --git a/src/coffee/errors.coffee b/src/coffee/errors.coffee index 4e066b60..893773d0 100644 --- a/src/coffee/errors.coffee +++ b/src/coffee/errors.coffee @@ -6,7 +6,6 @@ class HttpError extends Error # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "HttpError" @statusCode = @body.statusCode if @body.statusCode @code = @statusCode @@ -20,7 +19,6 @@ class SphereError extends Error # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "SphereError" @statusCode = @body.statusCode if @body.statusCode @code = @statusCode @@ -34,7 +32,6 @@ class GraphQLError extends Error # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "GraphQLError" @statusCode = @body.statusCode if @body.statusCode @code = @statusCode @@ -48,7 +45,6 @@ class BadRequest extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "BadRequest" @statusCode = 400 @code = @statusCode @@ -62,7 +58,6 @@ class Unauthorized extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "Unauthorized" @statusCode = 401 @code = @statusCode @@ -76,7 +71,6 @@ class NotFound extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "NotFound" @statusCode = 404 @code = @statusCode @@ -90,7 +84,6 @@ class MethodNotAllowed extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "MethodNotAllowed" @statusCode = 405 @code = @statusCode @@ -104,7 +97,6 @@ class ConcurrentModification extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "ConcurrentModification" @statusCode = 409 @code = @statusCode @@ -118,7 +110,6 @@ class InternalServerError extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "InternalServerError" @statusCode = 500 @code = @statusCode @@ -132,7 +123,6 @@ class ServiceUnavailable extends SphereError # message - {String} The error message # body - {Object} A JSON object with optional information to pass to the error, like the error response body constructor: (@message, @body = {}) -> - super() @name = "ServiceUnavailable" @statusCode = 503 @code = @statusCode diff --git a/src/coffee/services/product-projections.coffee b/src/coffee/services/product-projections.coffee index e2c60085..1fe912f0 100644 --- a/src/coffee/services/product-projections.coffee +++ b/src/coffee/services/product-projections.coffee @@ -39,7 +39,6 @@ class ProductProjectionService extends BaseService # Private: Reset default query/search params used to build request endpoints _setDefaults: -> - super() _.extend @_params.query, @_getProductsProjectionDefault() @_params.encoded = @_params.encoded.concat(['filter', 'filter.query', 'filter.facets', 'facets', 'searchKeywords']) diff --git a/src/coffee/sync/category-sync.coffee b/src/coffee/sync/category-sync.coffee index d7ee61f8..4edde6f6 100644 --- a/src/coffee/sync/category-sync.coffee +++ b/src/coffee/sync/category-sync.coffee @@ -22,7 +22,6 @@ class CategorySync extends BaseSync # Public: Construct a `CategorySync` object. constructor: -> - super() # Override base utils @_utils = new CategoryUtil() diff --git a/src/coffee/sync/inventory-sync.coffee b/src/coffee/sync/inventory-sync.coffee index 5e97833f..61ed6682 100644 --- a/src/coffee/sync/inventory-sync.coffee +++ b/src/coffee/sync/inventory-sync.coffee @@ -25,7 +25,6 @@ class InventorySync extends BaseSync # Public: Construct a `InventorySync` object. constructor: -> - super() # Override base utils @_utils = new InventoryUtils diff --git a/src/coffee/sync/order-sync.coffee b/src/coffee/sync/order-sync.coffee index da88b09b..277f92b2 100644 --- a/src/coffee/sync/order-sync.coffee +++ b/src/coffee/sync/order-sync.coffee @@ -25,7 +25,6 @@ class OrderSync extends BaseSync # Public: Construct a `OrderSync` object. constructor: -> - super() # Override base utils @_utils = new OrderUtils diff --git a/src/coffee/sync/product-sync.coffee b/src/coffee/sync/product-sync.coffee index 9b008ada..542cb01f 100644 --- a/src/coffee/sync/product-sync.coffee +++ b/src/coffee/sync/product-sync.coffee @@ -29,7 +29,6 @@ class ProductSync extends BaseSync # Public: Construct a `ProductSync` object. constructor: -> - super() # Override base utils @_utils = new ProductUtils