isdata-customer-sdk 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29562,6 +29562,7 @@ __webpack_require__.d(__webpack_exports__, {
29562
29562
  destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
29563
29563
  encrypt: function() { return /* reexport */ encrypt; },
29564
29564
  extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
29565
+ extractNewItems: function() { return /* reexport */ extractNewItems; },
29565
29566
  fireEvent: function() { return /* reexport */ fireEvent; },
29566
29567
  getAIRobotInfos: function() { return /* reexport */ getAIRobotInfos; },
29567
29568
  getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
@@ -32435,6 +32436,8 @@ const getKey = async () => {
32435
32436
  ;// ./src/api/utils.js
32436
32437
 
32437
32438
 
32439
+
32440
+
32438
32441
  /**
32439
32442
  * 查询资产
32440
32443
  * @param id 资产ID
@@ -32511,6 +32514,16 @@ const extractFilenameFromUrl = url => {
32511
32514
  }
32512
32515
  };
32513
32516
 
32517
+ /**
32518
+ * 提取数组中不在另一个数组中的元素
32519
+ * @param {*} oldItems 基础比较数组
32520
+ * @param {*} newItems 被提取检测的数组
32521
+ * @returns
32522
+ */
32523
+ const extractNewItems = (oldItems, newItems) => {
32524
+ return oldItems.filter(item => !newItems.includes(item));
32525
+ };
32526
+
32514
32527
  /**
32515
32528
  * 获取远程文件大小(单位:字节)
32516
32529
  * @param {string} url - 文件的URL地址