New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.31 to 1.1.32-alpha.0

.turbo/turbo-build.log

6

CHANGELOG.md
# Change Log
## 1.1.32-alpha.0
### Patch Changes
- [#2210](https://github.com/medusajs/medusa/pull/2210) [`7dc8d3a0c`](https://github.com/medusajs/medusa/commit/7dc8d3a0c90ce06e3f11a6a46dec1f9ec3f26e81) Thanks [@srindom](https://github.com/srindom)! - Adds `computerizeAmount` utility to convert human money format into the DB format Medusa uses (integer of lowest currency unit)
All notable changes to this project will be documented in this file.

@@ -4,0 +10,0 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

2

dist/compare-objects.d.ts
export default compareObjectsByProp;
declare function compareObjectsByProp(object1: any, object2: any, prop: any): any;
declare function compareObjectsByProp(object1: any, object2: any, prop: any): boolean;

@@ -14,2 +14,3 @@ /**

UNEXPECTED_STATE: string;
CONFLICT: string;
};

@@ -38,2 +39,3 @@ export declare const MedusaErrorCodes: {

UNEXPECTED_STATE: string;
CONFLICT: string;
};

@@ -40,0 +42,0 @@ static Codes: {

@@ -32,2 +32,3 @@ "use strict";

UNEXPECTED_STATE: "unexpected_state",
CONFLICT: "conflict",
};

@@ -34,0 +35,0 @@ exports.MedusaErrorCodes = {

@@ -6,2 +6,3 @@ export { default as compareObjectsByProp } from "./compare-objects";

export { default as humanizeAmount } from "./humanize-amount";
export { default as computerizeAmount } from "./computerize-amount";
export { indexTypes } from "./index-types";

@@ -8,0 +9,0 @@ export { transformIdableFields } from "./transform-idable-fields";

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.zeroDecimalCurrencies = exports.Validator = exports.transformIdableFields = exports.indexTypes = exports.humanizeAmount = exports.getConfigFile = exports.MedusaError = exports.createRequireFromPath = exports.isoCountryLookup = exports.countries = exports.compareObjectsByProp = void 0;
exports.zeroDecimalCurrencies = exports.Validator = exports.transformIdableFields = exports.indexTypes = exports.computerizeAmount = exports.humanizeAmount = exports.getConfigFile = exports.MedusaError = exports.createRequireFromPath = exports.isoCountryLookup = exports.countries = exports.compareObjectsByProp = void 0;
var compare_objects_1 = require("./compare-objects");

@@ -21,2 +21,4 @@ Object.defineProperty(exports, "compareObjectsByProp", { enumerable: true, get: function () { return __importDefault(compare_objects_1).default; } });

Object.defineProperty(exports, "humanizeAmount", { enumerable: true, get: function () { return __importDefault(humanize_amount_1).default; } });
var computerize_amount_1 = require("./computerize-amount");
Object.defineProperty(exports, "computerizeAmount", { enumerable: true, get: function () { return __importDefault(computerize_amount_1).default; } });
var index_types_1 = require("./index-types");

@@ -23,0 +25,0 @@ Object.defineProperty(exports, "indexTypes", { enumerable: true, get: function () { return index_types_1.indexTypes; } });

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

if (key in obj && typeof ret[key] === "string") {
ret[key + "_id"] = ret[key];
ret["".concat(key, "_id")] = ret[key];
delete ret[key];

@@ -33,0 +33,0 @@ }

{
"name": "medusa-core-utils",
"version": "1.1.31",
"version": "1.1.32-alpha.0",
"description": "Core utils for Medusa",

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

"build": "tsc --build",
"prepare": "cross-env NODE_ENV=production npm run build",
"prepare": "cross-env NODE_ENV=production yarn run build",
"watch": "babel -w src --out-dir dist/ --ignore **/__tests__"

@@ -32,5 +32,3 @@ },

"cross-env": "^5.2.1",
"eslint": "^6.8.0",
"jest": "^25.5.2",
"prettier": "^1.19.1",
"typescript": "^4.4.4"

@@ -42,3 +40,3 @@ },

},
"gitHead": "36c0f468f90d507227031659d0b12d426013f358"
"gitHead": "a69b1e85be1da3b1b5bc4c5446471252623c8808"
}

@@ -14,2 +14,3 @@ /**

UNEXPECTED_STATE: "unexpected_state",
CONFLICT: "conflict",
}

@@ -16,0 +17,0 @@

@@ -7,2 +7,3 @@ export { default as compareObjectsByProp } from "./compare-objects"

export { default as humanizeAmount } from "./humanize-amount"
export { default as computerizeAmount } from "./computerize-amount"
export { indexTypes } from "./index-types"

@@ -12,2 +13,1 @@ export { transformIdableFields } from "./transform-idable-fields"

export { default as zeroDecimalCurrencies } from "./zero-decimal-currencies"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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