humanbehavior-js 0.5.8 → 0.5.10
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/package.json +1 -2
- package/packages/browser/dist/index.js +1 -1
- package/packages/browser/dist/index.js.map +1 -1
- package/packages/browser/dist/index.mjs +1 -1
- package/packages/browser/dist/index.mjs.map +1 -1
- package/packages/react/dist/index.js +1 -1
- package/packages/react/dist/index.js.map +1 -1
- package/packages/react/dist/index.mjs +1 -1
- package/packages/react/dist/index.mjs.map +1 -1
- package/packages/remix/dist/index.js +1 -1
- package/packages/remix/dist/index.js.map +1 -1
- package/packages/remix/dist/index.mjs +1 -1
- package/packages/remix/dist/index.mjs.map +1 -1
- package/index.min.js +0 -14
package/index.min.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Dynamic redirect to the latest browser package
|
|
2
|
-
// This file automatically loads the correct version for any future updates
|
|
3
|
-
(function() {
|
|
4
|
-
// Get the current package version from the URL
|
|
5
|
-
var currentUrl = document.currentScript ? document.currentScript.src : '';
|
|
6
|
-
var versionMatch = currentUrl.match(/humanbehavior-js@([^\/]+)/);
|
|
7
|
-
var version = versionMatch ? versionMatch[1] : 'latest';
|
|
8
|
-
|
|
9
|
-
// Create and load the browser package
|
|
10
|
-
var script = document.createElement('script');
|
|
11
|
-
script.src = 'https://unpkg.com/humanbehavior-js@' + version + '/packages/browser/dist/index.min.js';
|
|
12
|
-
script.async = true;
|
|
13
|
-
document.head.appendChild(script);
|
|
14
|
-
})();
|