Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

medusa-interfaces

Package Overview
Dependencies
Maintainers
2
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medusa-interfaces - npm Package Compare versions

Comparing version 1.3.10-preview-20240505115807 to 1.3.10-preview-20240507182533

11

dist/base-service.js

@@ -20,3 +20,3 @@ "use strict";

*/
var BaseService = /*#__PURE__*/function () {
var BaseService = exports["default"] = /*#__PURE__*/function () {
function BaseService() {

@@ -26,3 +26,3 @@ (0, _classCallCheck2["default"])(this, BaseService);

}
(0, _createClass2["default"])(BaseService, [{
return (0, _createClass2["default"])(BaseService, [{
key: "withTransaction",

@@ -75,3 +75,3 @@ value: function withTransaction() {

key: "atomicPhase_",
value: function () {
value: (function () {
var _atomicPhase_ = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(work, isolationOrErrorHandler, maybeErrorHandlerOrDontFail) {

@@ -247,2 +247,3 @@ var _this = this;

*/
)
}, {

@@ -302,4 +303,2 @@ key: "setMetadata_",

}]);
return BaseService;
}();
exports["default"] = BaseService;
}();

@@ -10,9 +10,9 @@ "use strict";

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _baseService = _interopRequireDefault(require("./base-service"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/**

@@ -24,9 +24,8 @@ * Interface for file connectors

var BaseFileService = /*#__PURE__*/function (_BaseService) {
(0, _inherits2["default"])(BaseFileService, _BaseService);
var _super = _createSuper(BaseFileService);
function BaseFileService() {
(0, _classCallCheck2["default"])(this, BaseFileService);
return _super.call(this);
return _callSuper(this, BaseFileService);
}
(0, _createClass2["default"])(BaseFileService, [{
(0, _inherits2["default"])(BaseFileService, _BaseService);
return (0, _createClass2["default"])(BaseFileService, [{
key: "upload",

@@ -45,9 +44,7 @@ value: function upload() {

var _obj$constructor;
return obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isFileService;
return obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isFileService;
}
}]);
return BaseFileService;
}(_baseService["default"]);
(0, _defineProperty2["default"])(BaseFileService, "_isFileService", true);
var _default = BaseFileService;
exports["default"] = _default;
var _default = exports["default"] = BaseFileService;

@@ -10,9 +10,9 @@ "use strict";

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _baseService = _interopRequireDefault(require("./base-service"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/**

@@ -26,9 +26,8 @@ * The interface that all fulfillment services must inherit from. The intercace

var BaseFulfillmentService = /*#__PURE__*/function (_BaseService) {
(0, _inherits2["default"])(BaseFulfillmentService, _BaseService);
var _super = _createSuper(BaseFulfillmentService);
function BaseFulfillmentService() {
(0, _classCallCheck2["default"])(this, BaseFulfillmentService);
return _super.call(this);
return _callSuper(this, BaseFulfillmentService);
}
(0, _createClass2["default"])(BaseFulfillmentService, [{
(0, _inherits2["default"])(BaseFulfillmentService, _BaseService);
return (0, _createClass2["default"])(BaseFulfillmentService, [{
key: "getIdentifier",

@@ -153,9 +152,7 @@ value: function getIdentifier() {

var _obj$constructor;
return obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isFulfillmentService;
return obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isFulfillmentService;
}
}]);
return BaseFulfillmentService;
}(_baseService["default"]);
(0, _defineProperty2["default"])(BaseFulfillmentService, "_isFulfillmentService", true);
var _default = BaseFulfillmentService;
exports["default"] = _default;
var _default = exports["default"] = BaseFulfillmentService;

@@ -10,9 +10,9 @@ "use strict";

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _baseService = _interopRequireDefault(require("./base-service"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/**

@@ -24,9 +24,8 @@ * Interface for Notification Providers

var BaseNotificationService = /*#__PURE__*/function (_BaseService) {
(0, _inherits2["default"])(BaseNotificationService, _BaseService);
var _super = _createSuper(BaseNotificationService);
function BaseNotificationService() {
(0, _classCallCheck2["default"])(this, BaseNotificationService);
return _super.call(this);
return _callSuper(this, BaseNotificationService);
}
(0, _createClass2["default"])(BaseNotificationService, [{
(0, _inherits2["default"])(BaseNotificationService, _BaseService);
return (0, _createClass2["default"])(BaseNotificationService, [{
key: "getIdentifier",

@@ -55,9 +54,7 @@ value: function getIdentifier() {

var _obj$constructor;
return obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isNotificationService;
return obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isNotificationService;
}
}]);
return BaseNotificationService;
}(_baseService["default"]);
(0, _defineProperty2["default"])(BaseNotificationService, "_isNotificationService", true);
var _default = BaseNotificationService;
exports["default"] = _default;
var _default = exports["default"] = BaseNotificationService;

@@ -10,9 +10,9 @@ "use strict";

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _baseService = _interopRequireDefault(require("./base-service"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/**

@@ -23,9 +23,8 @@ * Interface for file connectors

var BaseOauthService = /*#__PURE__*/function (_BaseService) {
(0, _inherits2["default"])(BaseOauthService, _BaseService);
var _super = _createSuper(BaseOauthService);
function BaseOauthService() {
(0, _classCallCheck2["default"])(this, BaseOauthService);
return _super.call(this);
return _callSuper(this, BaseOauthService);
}
(0, _createClass2["default"])(BaseOauthService, [{
(0, _inherits2["default"])(BaseOauthService, _BaseService);
return (0, _createClass2["default"])(BaseOauthService, [{
key: "generateToken",

@@ -49,9 +48,7 @@ value: function generateToken() {

var _obj$constructor;
return obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isOauthService;
return obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isOauthService;
}
}]);
return BaseOauthService;
}(_baseService["default"]);
(0, _defineProperty2["default"])(BaseOauthService, "_isOauthService", true);
var _default = BaseOauthService;
exports["default"] = _default;
var _default = exports["default"] = BaseOauthService;

@@ -10,9 +10,9 @@ "use strict";

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _baseService = _interopRequireDefault(require("./base-service"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/**

@@ -26,9 +26,8 @@ * The interface that all payment services must inherit from. The intercace

var BasePaymentService = /*#__PURE__*/function (_BaseService) {
(0, _inherits2["default"])(BasePaymentService, _BaseService);
var _super = _createSuper(BasePaymentService);
function BasePaymentService() {
(0, _classCallCheck2["default"])(this, BasePaymentService);
return _super.call(this);
return _callSuper(this, BasePaymentService);
}
(0, _createClass2["default"])(BasePaymentService, [{
(0, _inherits2["default"])(BasePaymentService, _BaseService);
return (0, _createClass2["default"])(BasePaymentService, [{
key: "getIdentifier",

@@ -114,9 +113,7 @@ value: function getIdentifier() {

var _obj$constructor;
return obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isPaymentService;
return obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isPaymentService;
}
}]);
return BasePaymentService;
}(_baseService["default"]);
(0, _defineProperty2["default"])(BasePaymentService, "_isPaymentService", true);
var _default = BasePaymentService;
exports["default"] = _default;
var _default = exports["default"] = BasePaymentService;

@@ -10,9 +10,9 @@ "use strict";

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _baseService = _interopRequireDefault(require("./base-service"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
/**

@@ -24,9 +24,8 @@ * The interface that all search services must implement.

var SearchService = /*#__PURE__*/function (_BaseService) {
(0, _inherits2["default"])(SearchService, _BaseService);
var _super = _createSuper(SearchService);
function SearchService() {
(0, _classCallCheck2["default"])(this, SearchService);
return _super.call(this);
return _callSuper(this, SearchService);
}
(0, _createClass2["default"])(SearchService, [{
(0, _inherits2["default"])(SearchService, _BaseService);
return (0, _createClass2["default"])(SearchService, [{
key: "options",

@@ -140,9 +139,7 @@ get: function get() {

var _obj$constructor;
return obj === null || obj === void 0 ? void 0 : (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isSearchService;
return obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor._isSearchService;
}
}]);
return SearchService;
}(_baseService["default"]);
(0, _defineProperty2["default"])(SearchService, "_isSearchService", true);
var _default = SearchService;
exports["default"] = _default;
var _default = exports["default"] = SearchService;
{
"name": "medusa-interfaces",
"version": "1.3.10-preview-20240505115807",
"version": "1.3.10-preview-20240507182533",
"description": "Core interfaces for Medusa",

@@ -37,4 +37,4 @@ "main": "dist/index.js",

"jest": "^25.5.4",
"medusa-core-utils": "1.2.3-preview-20240505115807",
"medusa-test-utils": "1.1.45-preview-20240505115807",
"medusa-core-utils": "1.2.3-preview-20240507182533",
"medusa-test-utils": "1.1.45-preview-20240507182533",
"rimraf": "^5.0.1",

@@ -41,0 +41,0 @@ "typescript": "^4.4.4"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc