Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs support #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint issues
LeartS committed Jul 4, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3441a2c290644b6094a72a98c83cc5fb05fe9b1a
2 changes: 1 addition & 1 deletion src/bosh.js
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@

/* global window, setTimeout, clearTimeout, XMLHttpRequest, ActiveXObject */

import core from './core';
import { DOMParser } from './shims'
import core from './core';

const Strophe = core.Strophe;
const $build = core.$build;
3 changes: 1 addition & 2 deletions src/core.js
Original file line number Diff line number Diff line change
@@ -6,12 +6,11 @@
*/
/*global define, document, sessionStorage, setTimeout, clearTimeout, ActiveXObject, DOMParser, btoa, atob, module */

import * as shims from './shims';
import { atob, btoa } from 'abab'

import MD5 from './md5';
import SHA1 from './sha1';
import utils from './utils';
import * as shims from './shims';

/** Function: $build
* Create a Strophe.Builder.
1 change: 1 addition & 0 deletions src/shims.js
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ function _getIEXmlDom () {
];
for (let d = 0; d < docStrings.length; d++) {
try {
// eslint-disable-next-line no-undef
const doc = new ActiveXObject(docStrings[d]);
return doc
} catch (e) {
2 changes: 1 addition & 1 deletion src/websocket.js
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@

/* global window, clearTimeout, WebSocket, DOMParser */

import { DOMParser, WebSocket } from './shims';
import core from './core';
import { WebSocket, DOMParser } from './shims';

const Strophe = core.Strophe;
const $build = core.$build;