@memberstack/dom 1.1.0-beta.2 → 1.1.0
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.
|
@@ -4,4 +4,6 @@ exports.endpoints = void 0;
|
|
|
4
4
|
exports.endpoints = {
|
|
5
5
|
parentOrigin: "https://ui.memberstack.com",
|
|
6
6
|
loaderScript: "https://ui.memberstack.com/loader.cjs.production.min.js",
|
|
7
|
+
// parentOrigin: "http://localhost:3000",
|
|
8
|
+
// loaderScript: "http://localhost:3000/loader.cjs.production.min.js",
|
|
7
9
|
};
|
|
@@ -44,7 +44,7 @@ var isBrowser = typeof window !== "undefined";
|
|
|
44
44
|
var SCRIPT_URL = endpoint_1.endpoints.loaderScript;
|
|
45
45
|
var SCRIPT_URL_REGEX = new RegExp(SCRIPT_URL);
|
|
46
46
|
var getScript = function () {
|
|
47
|
-
var existingScript = document.querySelector("script[src^=\""
|
|
47
|
+
var existingScript = document.querySelector("script[src^=\"" + SCRIPT_URL + "\"]");
|
|
48
48
|
if (existingScript && SCRIPT_URL_REGEX.test(existingScript.src)) {
|
|
49
49
|
return existingScript;
|
|
50
50
|
}
|
package/lib/utils/logger.js
CHANGED
|
@@ -39,7 +39,7 @@ var log = function () {
|
|
|
39
39
|
if (!debug)
|
|
40
40
|
return;
|
|
41
41
|
var timestamp = '[' + Date.now() + ']';
|
|
42
|
-
console.log.apply(console, __spreadArray(['\x1b[33m%s\x1b[0m', "@memberstack/dom "
|
|
42
|
+
console.log.apply(console, __spreadArray(['\x1b[33m%s\x1b[0m', "@memberstack/dom " + timestamp], __read(msg), false));
|
|
43
43
|
};
|
|
44
44
|
exports.log = log;
|
|
45
45
|
var withLogger = function (fn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberstack/dom",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib/**/*"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": "Lydia Hallie",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@memberstack/client": "^1.
|
|
11
|
+
"@memberstack/client": "^1.3.1",
|
|
12
12
|
"js-cookie": "^3.0.1"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|