Przeglądaj źródła

Updated strophe and ran `npm update`

JC Brand 1 rok temu
rodzic
commit
dbb27b23f6
4 zmienionych plików z 291 dodań i 248 usunięć
  1. 288 243
      package-lock.json
  2. 1 1
      src/headless/package.json
  3. 0 1
      src/headless/plugins/bosh/index.js
  4. 2 3
      src/utils/html.js

Plik diff jest za duży
+ 288 - 243
package-lock.json


+ 1 - 1
src/headless/package.json

@@ -42,7 +42,7 @@
     "pluggable.js": "3.0.1",
     "sizzle": "^2.3.5",
     "sprintf-js": "^1.1.2",
-    "strophe.js": "strophe/strophejs#57ff5e731d7e83a4025492b2973b3d1524239f46",
+    "strophe.js": "strophe/strophejs#120807d90c881a5e351e3129e9a4985a7d699628",
     "urijs": "^1.19.10"
   },
   "devDependencies": {}

+ 0 - 1
src/headless/plugins/bosh/index.js

@@ -3,7 +3,6 @@
  * @license Mozilla Public License (MPLv2)
  * @description Converse.js plugin which add support for XEP-0206: XMPP Over BOSH
  */
-import 'strophe.js/src/bosh';
 import { Strophe } from "strophe.js";
 import _converse from '../../shared/_converse.js';
 import api from '../../shared/api/index.js';

+ 2 - 3
src/utils/html.js

@@ -7,7 +7,7 @@
  */
 import { render } from 'lit';
 import { Builder, Stanza } from 'strophe.js';
-import { api, converse, constants, log, u } from '@converse/headless';
+import { api, converse, log, u } from '@converse/headless';
 import tplAudio from 'templates/audio.js';
 import tplFile from 'templates/file.js';
 import tplFormCaptcha from '../templates/form_captcha.js';
@@ -22,8 +22,7 @@ import tplHyperlink from 'templates/hyperlink.js';
 import tplVideo from 'templates/video.js';
 
 const { sizzle, Strophe } = converse.env;
-const { getURI, isAudioURL, isImageURL, isVideoURL, isValidURL, queryChildren } = u;
-const { XFORM_TYPE_MAP, XFORM_VALIDATE_TYPE_MAP } = constants;
+const { getURI, isAudioURL, isImageURL, isVideoURL, isValidURL } = u;
 
 const APPROVED_URL_PROTOCOLS = ['http', 'https', 'xmpp', 'mailto'];
 

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików