@vbarbarosh/node-helpers 3.70.0 → 3.70.1
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/README.md +1 -1
- package/dist/browser.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install @vbarbarosh/node-helpers
|
|
|
20
20
|
A subset of `@vbarbarosh/node-helpers` is available for browser:
|
|
21
21
|
|
|
22
22
|
```html
|
|
23
|
-
<script src="https://unpkg.com/@vbarbarosh/node-helpers@3.70.
|
|
23
|
+
<script src="https://unpkg.com/@vbarbarosh/node-helpers@3.70.1/dist/browser.js"></script>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
⚠️ All browser functions are exposed globally.
|
package/dist/browser.js
CHANGED
|
@@ -2223,10 +2223,10 @@ var __webpack_exports__ = {};
|
|
|
2223
2223
|
\******************************/
|
|
2224
2224
|
const ns = new URL(document.currentScript.src).searchParams.get('var') ?? 'h';
|
|
2225
2225
|
if (typeof window[ns] !== 'undefined') {
|
|
2226
|
-
console.log(`❌ @vbarbarosh/node-helpers@${"3.70.
|
|
2226
|
+
console.log(`❌ @vbarbarosh/node-helpers@${"3.70.1"} was not injected — window.${ns} is already in use`);
|
|
2227
2227
|
}
|
|
2228
2228
|
else {
|
|
2229
|
-
console.log(`🎉 @vbarbarosh/node-helpers@${"3.70.
|
|
2229
|
+
console.log(`🎉 @vbarbarosh/node-helpers@${"3.70.1"} successfully exposed as window.${ns}`);
|
|
2230
2230
|
window[ns] = {};
|
|
2231
2231
|
// https://github.com/webpack/webpack/issues/625
|
|
2232
2232
|
// https://webpack.js.org/guides/dependency-management/#require-context
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Vladimir Barbarosh <vladimir.barbarosh@gmail.com>",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "@vbarbarosh/node-helpers",
|
|
5
|
-
"version": "3.70.
|
|
5
|
+
"version": "3.70.1",
|
|
6
6
|
"description": "A set of helpers for JavaScript/Node.js",
|
|
7
7
|
"unpkg": "dist/browser.js",
|
|
8
8
|
"jsdelivr": "dist/browser.js",
|