@activepieces/pieces-common
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "@activepieces/pieces-common", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"type": "commonjs", | ||
@@ -8,7 +8,6 @@ "dependencies": { | ||
"axios": "1.2.4", | ||
"lodash": "4.17.21", | ||
"nanoid": "3.3.4", | ||
"@activepieces/pieces-framework": "0.3.23", | ||
"@activepieces/shared": "0.3.40", | ||
"tslib": "2.4.1" | ||
"@activepieces/pieces-framework": "0.3.30", | ||
"@activepieces/shared": "0.3.51", | ||
"tslib": "2.5.3" | ||
}, | ||
@@ -15,0 +14,0 @@ "main": "./src/index.js", |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const lodash_1 = require("lodash"); | ||
const shared_1 = require("@activepieces/shared"); | ||
var DedupeStrategy; | ||
@@ -29,3 +29,3 @@ (function (DedupeStrategy) { | ||
let newItems = []; | ||
if ((0, lodash_1.isNil)(lastItemId) || lastItemIndex == -1) { | ||
if ((0, shared_1.isNil)(lastItemId) || lastItemIndex == -1) { | ||
newItems = items !== null && items !== void 0 ? items : []; | ||
@@ -37,3 +37,3 @@ } | ||
// Sorted from newest to oldest | ||
if (!(0, lodash_1.isNil)(maxItemsToPoll)) { | ||
if (!(0, shared_1.isNil)(maxItemsToPoll)) { | ||
// Get the last polling.maxItemsToPoll items | ||
@@ -43,3 +43,3 @@ newItems = newItems.slice(-maxItemsToPoll); | ||
const newLastItem = (_c = newItems === null || newItems === void 0 ? void 0 : newItems[0]) === null || _c === void 0 ? void 0 : _c.id; | ||
if (!(0, lodash_1.isNil)(newLastItem)) { | ||
if (!(0, shared_1.isNil)(newLastItem)) { | ||
yield store.put("lastItem", newLastItem); | ||
@@ -63,3 +63,3 @@ } | ||
const lastItemId = (_a = items === null || items === void 0 ? void 0 : items[0]) === null || _a === void 0 ? void 0 : _a.id; | ||
if (!(0, lodash_1.isNil)(lastItemId)) { | ||
if (!(0, shared_1.isNil)(lastItemId)) { | ||
yield store.put("lastItem", lastItemId); | ||
@@ -66,0 +66,0 @@ } |
Sorry, the diff of this file is not supported yet
6
37738
+ Added@activepieces/pieces-framework@0.3.30(transitive)
+ Added@activepieces/shared@0.3.51(transitive)
+ Addedtslib@2.5.3(transitive)
- Removedlodash@4.17.21
- Removed@activepieces/pieces-framework@0.3.23(transitive)
- Removed@activepieces/shared@0.3.380.3.40(transitive)
- Removedlodash@4.17.21(transitive)
- Removedtslib@2.4.1(transitive)
Updated@activepieces/shared@0.3.51
Updatedtslib@2.5.3