mock-block-dock
Advanced tools
Comparing version 0.0.14-next.1 to 0.0.14
@@ -22,5 +22,9 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.filterAndSortEntitiesOrTypes = void 0; | ||
var lodash_1 = require("lodash"); | ||
var get_1 = __importDefault(require("lodash/get")); | ||
var orderBy_1 = __importDefault(require("lodash/orderBy")); | ||
var filterEntities = function (params) { | ||
@@ -34,3 +38,3 @@ var entityTypeId = params.entityTypeId, entities = params.entities, multiFilter = params.multiFilter; | ||
.map(function (filterItem) { | ||
var item = (0, lodash_1.get)(entity, filterItem.field); | ||
var item = (0, get_1.default)(entity, filterItem.field); | ||
// @todo support non-string comparison | ||
@@ -71,6 +75,6 @@ if (typeof item !== "string") { | ||
var entities = params.entities, multiSort = params.multiSort; | ||
return (0, lodash_1.orderBy)(__spreadArray([], entities, true), multiSort.map(function (_a) { | ||
return (0, orderBy_1.default)(__spreadArray([], entities, true), multiSort.map(function (_a) { | ||
var field = _a.field; | ||
return function (entity) { | ||
return (0, lodash_1.get)(entity, field); | ||
return (0, get_1.default)(entity, field); | ||
}; | ||
@@ -77,0 +81,0 @@ }), multiSort.map(function (_a) { |
@@ -21,3 +21,4 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
import { get, orderBy } from "lodash"; | ||
import get from "lodash/get"; | ||
import orderBy from "lodash/orderBy"; | ||
var filterEntities = function (params) { | ||
@@ -24,0 +25,0 @@ var entityTypeId = params.entityTypeId, entities = params.entities, multiFilter = params.multiFilter; |
{ | ||
"name": "mock-block-dock", | ||
"version": "0.0.14-next.1", | ||
"version": "0.0.14", | ||
"description": "A mock embedding application for Block Protocol blocks", | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"scripts": { | ||
"build": "yarn clean; yarn build:cjs; yarn build:esm", | ||
"build": "yarn clean && yarn build:cjs && yarn build:esm", | ||
"build:cjs": "tsc --p tsconfig.build.json --module commonjs --outDir dist/cjs ", | ||
"build:dev": "yarn clean; cross-env NODE_ENV=development webpack --mode development", | ||
"build:dev": "yarn clean && cross-env NODE_ENV=development webpack --mode development", | ||
"build:esm": "tsc --p tsconfig.build.json", | ||
@@ -39,3 +39,3 @@ "clean": "rimraf ./dist/", | ||
"dependencies": { | ||
"@blockprotocol/graph": "0.0.6", | ||
"@blockprotocol/graph": "0.0.7", | ||
"@lit-labs/react": "^1.0.4", | ||
@@ -42,0 +42,0 @@ "lodash": "^4.17.21", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
231130
3272
+ Added@blockprotocol/core@0.0.5(transitive)
+ Added@blockprotocol/graph@0.0.7(transitive)
- Removed@blockprotocol/core@0.0.4(transitive)
- Removed@blockprotocol/graph@0.0.6(transitive)
Updated@blockprotocol/graph@0.0.7