Declare sizzle as a dependency for @converse/headless

This commit is contained in:
JC Brand 2020-12-10 16:39:27 +01:00
parent c855d2f4ce
commit 5a82478381
11 changed files with 22 additions and 31 deletions

26
package-lock.json generated
View File

@ -2757,8 +2757,7 @@
"dependencies": { "dependencies": {
"filesize": { "filesize": {
"version": "6.1.0", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/filesize/-/filesize-6.1.0.tgz", "resolved": false
"integrity": "sha512-LpCHtPQ3sFx67z+uh2HnSyWSLLu5Jxo21795uRDuar/EOuYWXib5EmPaGIBuSnRqH2IODiKA2k5re/K9OnN/Yg=="
}, },
"fs-extra": { "fs-extra": {
"version": "8.1.0", "version": "8.1.0",
@ -2814,22 +2813,20 @@
}, },
"localforage": { "localforage": {
"version": "1.7.3", "version": "1.7.3",
"resolved": "https://registry.npmjs.org/localforage/-/localforage-1.7.3.tgz", "resolved": false,
"integrity": "sha512-1TulyYfc4udS7ECSBT2vwJksWbkwwTX8BzeUIiq8Y07Riy7bDAAnxDaPU/tWyOVmQAcWJIEIFP9lPfBGqVoPgQ==",
"requires": { "requires": {
"lie": "3.1.1" "lie": "3.1.1"
} }
}, },
"pluggable.js": { "pluggable.js": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/pluggable.js/-/pluggable.js-2.0.1.tgz", "resolved": false,
"integrity": "sha512-SBt6v6Tbp20Jf8hU0cpcc/+HBHGMY8/Q+yA6Ih0tBQE8tfdZ6U4PRG0iNvUUjLx/hVyOP53n0UfGBymlfaaXCg==",
"requires": { "requires": {
"lodash": "^4.17.11" "lodash": "^4.17.11"
} }
}, },
"skeletor.js": { "skeletor.js": {
"version": "github:skeletorjs/skeletor#bf6d9c86f9fcf224fa9d9af5a25380b77aa4b561", "version": "0.0.1",
"from": "github:skeletorjs/skeletor#bf6d9c86f9fcf224fa9d9af5a25380b77aa4b561", "from": "github:skeletorjs/skeletor#bf6d9c86f9fcf224fa9d9af5a25380b77aa4b561",
"requires": { "requires": {
"lodash": "^4.17.14" "lodash": "^4.17.14"
@ -2837,11 +2834,7 @@
}, },
"strophe.js": { "strophe.js": {
"version": "github:strophe/strophejs#c4a94e59877c06dc2395f4ccbd26f3fee67a4c9f", "version": "github:strophe/strophejs#c4a94e59877c06dc2395f4ccbd26f3fee67a4c9f",
"from": "strophe.js@github:strophe/strophejs#c4a94e59877c06dc2395f4ccbd26f3fee67a4c9f", "from": "strophe.js@github:strophe/strophejs#c4a94e59877c06dc2395f4ccbd26f3fee67a4c9f"
"requires": {
"abab": "^2.0.3",
"xmldom": "^0.1.27"
}
}, },
"twemoji": { "twemoji": {
"version": "12.1.5", "version": "12.1.5",
@ -4628,9 +4621,9 @@
} }
}, },
"@octokit/types": { "@octokit/types": {
"version": "6.1.0", "version": "6.1.1",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.1.0.tgz", "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.1.1.tgz",
"integrity": "sha512-bMWBmg77MQTiRkOVyf50qK3QECWOEy43rLy/6fTWZ4HEwAhNfqzMcjiBDZAowkILwTrFvzE1CpP6gD0MuPHS+A==", "integrity": "sha512-btm3D6S7VkRrgyYF31etUtVY/eQ1KzrNRqhFt25KSe2mKlXuLXJilglRC6eDA2P6ou94BUnk/Kz5MPEolXgoiw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@octokit/openapi-types": "^2.0.0", "@octokit/openapi-types": "^2.0.0",
@ -21354,8 +21347,7 @@
"sizzle": { "sizzle": {
"version": "2.3.5", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/sizzle/-/sizzle-2.3.5.tgz", "resolved": "https://registry.npmjs.org/sizzle/-/sizzle-2.3.5.tgz",
"integrity": "sha512-mncpQHS12IwzOpuMReKd2matojaS5M5Ofms96LUKOOg8S1M7jIh90OQyd2I6sBoHpxg/HoduOJNDTvRCmnm0YA==", "integrity": "sha512-mncpQHS12IwzOpuMReKd2matojaS5M5Ofms96LUKOOg8S1M7jIh90OQyd2I6sBoHpxg/HoduOJNDTvRCmnm0YA=="
"dev": true
}, },
"slash": { "slash": {
"version": "2.0.0", "version": "2.0.0",

View File

@ -117,7 +117,6 @@
"run-headless-chromium": "^0.1.1", "run-headless-chromium": "^0.1.1",
"sass-loader": "^8.0.2", "sass-loader": "^8.0.2",
"sinon": "^9.0.2", "sinon": "^9.0.2",
"sizzle": "^2.3.5",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
"urijs": "^1.19.2", "urijs": "^1.19.2",
"webpack": "^4.43.0", "webpack": "^4.43.0",

View File

@ -1,13 +1,12 @@
import 'shared/autocomplete/index.js'; import 'shared/autocomplete/index.js';
import log from "@converse/headless/log"; import log from "@converse/headless/log";
import sizzle from "sizzle";
import { CustomElement } from './element.js'; import { CustomElement } from './element.js';
import { __ } from '../i18n'; import { __ } from '../i18n';
import { api, converse } from "@converse/headless/core"; import { api, converse } from "@converse/headless/core";
import { html } from "lit-html"; import { html } from "lit-html";
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js'; import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';
const { Strophe, $iq } = converse.env; const { Strophe, $iq, sizzle } = converse.env;
const u = converse.env.utils; const u = converse.env.utils;

View File

@ -1,9 +1,10 @@
import sizzle from 'sizzle';
import { CustomElement } from './element.js'; import { CustomElement } from './element.js';
import { _converse, converse, api } from "@converse/headless/core"; import { _converse, converse, api } from "@converse/headless/core";
import { html } from "lit-element"; import { html } from "lit-element";
import { tpl_all_emojis, tpl_search_results } from "../templates/emoji_picker.js"; import { tpl_all_emojis, tpl_search_results } from "../templates/emoji_picker.js";
const { sizzle } = converse.env;
export default class EmojiPickerContent extends CustomElement { export default class EmojiPickerContent extends CustomElement {
static get properties () { static get properties () {

View File

@ -42,6 +42,7 @@
"localforage-webextensionstorage-driver": "^2.0.0", "localforage-webextensionstorage-driver": "^2.0.0",
"lodash-es": "^4.17.15", "lodash-es": "^4.17.15",
"pluggable.js": "2.0.1", "pluggable.js": "2.0.1",
"sizzle": "^2.3.5",
"sprintf-js": "^1.1.2", "sprintf-js": "^1.1.2",
"strophe.js": "1.4.1" "strophe.js": "1.4.1"
} }

View File

@ -1,7 +1,7 @@
import log from "../log.js"; import log from "../log.js";
import sizzle from 'sizzle'; import sizzle from 'sizzle';
import u from '@converse/headless/utils/core'; import u from '@converse/headless/utils/core';
import { Strophe } from 'strophe.js/src/strophe'; import { Strophe } from 'strophe.js/src/core';
import { _converse, api, clearSession, tearDown } from "../core.js"; import { _converse, api, clearSession, tearDown } from "../core.js";
import { debounce, isElement } from 'lodash'; import { debounce, isElement } from 'lodash';

View File

@ -1,12 +1,11 @@
import BootstrapModal from "./base.js"; import BootstrapModal from "./base.js";
import log from "@converse/headless/log"; import log from "@converse/headless/log";
import sizzle from "sizzle";
import tpl_moderator_tools_modal from "./templates/moderator-tools.js"; import tpl_moderator_tools_modal from "./templates/moderator-tools.js";
import { AFFILIATIONS, ROLES } from "@converse/headless/plugins/muc/index.js"; import { AFFILIATIONS, ROLES } from "@converse/headless/plugins/muc/index.js";
import { __ } from '../i18n'; import { __ } from '../i18n';
import { api, converse } from "@converse/headless/core"; import { api, converse } from "@converse/headless/core";
const { Strophe } = converse.env; const { Strophe, sizzle } = converse.env;
const u = converse.env.utils; const u = converse.env.utils;
let _converse; let _converse;

View File

@ -2,10 +2,9 @@ import BootstrapModal from "./base.js";
import { __ } from '../i18n'; import { __ } from '../i18n';
import { api, converse } from "@converse/headless/core"; import { api, converse } from "@converse/headless/core";
import log from "@converse/headless/log"; import log from "@converse/headless/log";
import sizzle from "sizzle";
import tpl_muc_commands_modal from "../templates/muc_commands_modal.js"; import tpl_muc_commands_modal from "../templates/muc_commands_modal.js";
const { Strophe, $iq } = converse.env; const { Strophe, $iq, sizzle } = converse.env;
const u = converse.env.utils; const u = converse.env.utils;

View File

@ -1,6 +1,5 @@
import BootstrapModal from "./base.js"; import BootstrapModal from "./base.js";
import log from "@converse/headless/log"; import log from "@converse/headless/log";
import sizzle from 'sizzle';
import st from "@converse/headless/utils/stanza"; import st from "@converse/headless/utils/stanza";
import tpl_list_chatrooms_modal from "./templates/muc-list.js"; import tpl_list_chatrooms_modal from "./templates/muc-list.js";
import tpl_room_description from "templates/room_description.html"; import tpl_room_description from "templates/room_description.html";
@ -9,7 +8,7 @@ import { __ } from '../i18n';
import { _converse, api, converse } from "@converse/headless/core"; import { _converse, api, converse } from "@converse/headless/core";
import { head } from "lodash-es"; import { head } from "lodash-es";
const { Strophe, $iq } = converse.env; const { Strophe, $iq, sizzle } = converse.env;
const u = converse.env.utils; const u = converse.env.utils;

View File

@ -1,11 +1,12 @@
import BootstrapModal from "./base.js"; import BootstrapModal from "./base.js";
import bootstrap from "bootstrap.native"; import bootstrap from "bootstrap.native";
import log from "@converse/headless/log"; import log from "@converse/headless/log";
import sizzle from 'sizzle';
import tpl_profile_modal from "./templates/profile.js"; import tpl_profile_modal from "./templates/profile.js";
import { __ } from '../i18n'; import { __ } from '../i18n';
import { _converse, api } from "@converse/headless/core"; import { _converse, api } from "@converse/headless/core";
const { sizzle } = converse.env;
const ProfileModal = BootstrapModal.extend({ const ProfileModal = BootstrapModal.extend({
id: "user-profile-modal", id: "user-profile-modal",

View File

@ -5,7 +5,6 @@
*/ */
import URI from "urijs"; import URI from "urijs";
import log from '@converse/headless/log'; import log from '@converse/headless/log';
import sizzle from "sizzle";
import tpl_audio from "../templates/audio.js"; import tpl_audio from "../templates/audio.js";
import tpl_file from "../templates/file.js"; import tpl_file from "../templates/file.js";
import tpl_form_captcha from "../templates/form_captcha.html"; import tpl_form_captcha from "../templates/form_captcha.html";
@ -19,10 +18,12 @@ import tpl_image from "../templates/image.js";
import tpl_select_option from "../templates/select_option.html"; import tpl_select_option from "../templates/select_option.html";
import tpl_video from "../templates/video.js"; import tpl_video from "../templates/video.js";
import u from "../headless/utils/core"; import u from "../headless/utils/core";
import { api } from "@converse/headless/core"; import { api, converse } from "@converse/headless/core";
import { html, render } from "lit-html"; import { html, render } from "lit-html";
import { isFunction } from "lodash-es"; import { isFunction } from "lodash-es";
const { sizzle } = converse.env;
const APPROVED_URL_PROTOCOLS = ['http', 'https', 'xmpp', 'mailto']; const APPROVED_URL_PROTOCOLS = ['http', 'https', 'xmpp', 'mailto'];
function getAutoCompleteProperty (name, options) { function getAutoCompleteProperty (name, options) {