@firebase/database 1.0.6-canary.1b9d95e5a → 1.0.6-canary.3f2c12a07
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.cjs.js +1 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +1 -7
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1 -7
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1 -7
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +0 -6
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +1 -7
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -8
package/dist/index.esm2017.js
CHANGED
|
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
|
|
|
4
4
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/database";
|
|
7
|
-
const version = "1.0.6-canary.
|
|
7
|
+
const version = "1.0.6-canary.3f2c12a07";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1509,8 +1509,6 @@ class FirebaseIFrameScriptHolder {
|
|
|
1509
1509
|
const iframeContents = '<html><body>' + script + '</body></html>';
|
|
1510
1510
|
try {
|
|
1511
1511
|
this.myIFrame.doc.open();
|
|
1512
|
-
// TODO: Do not use document.write, since it can lead to XSS. Instead, use the safevalues
|
|
1513
|
-
// library to sanitize the HTML in the iframeContents.
|
|
1514
1512
|
this.myIFrame.doc.write(iframeContents);
|
|
1515
1513
|
this.myIFrame.doc.close();
|
|
1516
1514
|
}
|
|
@@ -1733,10 +1731,6 @@ class FirebaseIFrameScriptHolder {
|
|
|
1733
1731
|
const newScript = this.myIFrame.doc.createElement('script');
|
|
1734
1732
|
newScript.type = 'text/javascript';
|
|
1735
1733
|
newScript.async = true;
|
|
1736
|
-
// TODO: We cannot assign an arbitrary URL to a script attached to the DOM, since it is
|
|
1737
|
-
// at risk of XSS. We should use the safevalues library to create a safeScriptEl, and
|
|
1738
|
-
// assign a sanitized trustedResourceURL to it. Since the URL must be a template string
|
|
1739
|
-
// literal, this could require some heavy refactoring.
|
|
1740
1734
|
newScript.src = url;
|
|
1741
1735
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1742
1736
|
newScript.onload = newScript.onreadystatechange =
|