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.
package/dist/index.umd.js CHANGED
@@ -29580,6 +29580,7 @@ __webpack_require__.d(__webpack_exports__, {
29580
29580
  destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
29581
29581
  encrypt: function() { return /* reexport */ encrypt; },
29582
29582
  extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
29583
+ extractNewItems: function() { return /* reexport */ extractNewItems; },
29583
29584
  fireEvent: function() { return /* reexport */ fireEvent; },
29584
29585
  getAIRobotInfos: function() { return /* reexport */ getAIRobotInfos; },
29585
29586
  getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
@@ -32453,6 +32454,8 @@ const getKey = async () => {
32453
32454
  ;// ./src/api/utils.js
32454
32455
 
32455
32456
 
32457
+
32458
+
32456
32459
  /**
32457
32460
  * 查询资产
32458
32461
  * @param id 资产ID
@@ -32529,6 +32532,16 @@ const extractFilenameFromUrl = url => {
32529
32532
  }
32530
32533
  };
32531
32534
 
32535
+ /**
32536
+ * 提取数组中不在另一个数组中的元素
32537
+ * @param {*} oldItems 基础比较数组
32538
+ * @param {*} newItems 被提取检测的数组
32539
+ * @returns
32540
+ */
32541
+ const extractNewItems = (oldItems, newItems) => {
32542
+ return oldItems.filter(item => !newItems.includes(item));
32543
+ };
32544
+
32532
32545
  /**
32533
32546
  * 获取远程文件大小(单位:字节)
32534
32547
  * @param {string} url - 文件的URL地址