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

medusa-core-utils

Package Overview
Dependencies
Maintainers
2
Versions
458
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medusa-core-utils - npm Package Compare versions

Comparing version 1.1.23-next.19 to 1.1.23-next.46

dist/index-types.js

8

dist/index.js

@@ -24,2 +24,8 @@ "use strict";

});
Object.defineProperty(exports, "indexTypes", {
enumerable: true,
get: function get() {
return _indexTypes.indexTypes;
}
});
Object.defineProperty(exports, "Validator", {

@@ -72,2 +78,4 @@ enumerable: true,

var _indexTypes = require("./index-types");
var _validator = _interopRequireDefault(require("./validator"));

@@ -74,0 +82,0 @@

@@ -62,3 +62,26 @@ "use strict";

_joi["default"].productFilter = function () {
return _joi["default"].object().keys({
id: _joi["default"].string(),
q: _joi["default"].string().allow(null, ""),
status: _joi["default"].array().items(_joi["default"].string().valid("proposed", "draft", "published", "rejected")).single(),
collection_id: _joi["default"].array().items(_joi["default"].string()).single(),
tags: _joi["default"].array().items(_joi["default"].string()).single(),
title: _joi["default"].string(),
description: _joi["default"].string(),
handle: _joi["default"].string(),
is_giftcard: _joi["default"].string(),
type: _joi["default"].string(),
offset: _joi["default"].string(),
limit: _joi["default"].string(),
expand: _joi["default"].string(),
fields: _joi["default"].string(),
order: _joi["default"].string().optional(),
created_at: _joi["default"].dateFilter(),
updated_at: _joi["default"].dateFilter(),
deleted_at: _joi["default"].dateFilter()
});
};
var _default = _joi["default"];
exports["default"] = _default;

4

package.json
{
"name": "medusa-core-utils",
"version": "1.1.23-next.19+337fc16c",
"version": "1.1.23-next.46+7461c130",
"description": "Core utils for Medusa",

@@ -36,3 +36,3 @@ "main": "dist/index.js",

},
"gitHead": "337fc16c38fe90c2b985f5434fe62da758ba3f59"
"gitHead": "7461c130ec517d435901467e3d0c1dd53e42cbeb"
}
export { countries } from "./countries"
export { isoCountryLookup } from "./countries"
export { transformIdableFields } from "./transform-idable-fields"
export { indexTypes } from "./index-types"
export { default as Validator } from "./validator"

@@ -5,0 +6,0 @@ export { default as MedusaError } from "./errors"

@@ -99,2 +99,31 @@ import Joi from "joi"

Joi.productFilter = () => {
return Joi.object().keys({
id: Joi.string(),
q: Joi.string().allow(null, ""),
status: Joi.array()
.items(Joi.string().valid("proposed", "draft", "published", "rejected"))
.single(),
collection_id: Joi.array()
.items(Joi.string())
.single(),
tags: Joi.array()
.items(Joi.string())
.single(),
title: Joi.string(),
description: Joi.string(),
handle: Joi.string(),
is_giftcard: Joi.string(),
type: Joi.string(),
offset: Joi.string(),
limit: Joi.string(),
expand: Joi.string(),
fields: Joi.string(),
order: Joi.string().optional(),
created_at: Joi.dateFilter(),
updated_at: Joi.dateFilter(),
deleted_at: Joi.dateFilter(),
})
}
export default Joi
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