@lukso/web-components 1.5.1 → 1.5.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.5.3](https://github.com/lukso-network/tools-web-components/compare/v1.5.2...v1.5.3) (2023-02-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Redo regexp replacement ([#53](https://github.com/lukso-network/tools-web-components/issues/53)) ([456eb47](https://github.com/lukso-network/tools-web-components/commit/456eb4711f597f12cac63e168c23665f6fa89d73))
9
+
10
+ ## [1.5.2](https://github.com/lukso-network/tools-web-components/compare/v1.5.1...v1.5.2) (2023-02-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Update index.ts's to real ESM instead of __dirname ([#50](https://github.com/lukso-network/tools-web-components/issues/50)) ([60f2949](https://github.com/lukso-network/tools-web-components/commit/60f29494f304dac4ab93fa92171f88ad266cc823))
16
+
3
17
  ## [1.5.1](https://github.com/lukso-network/tools-web-components/compare/v1.5.0...v1.5.1) (2023-02-17)
4
18
 
5
19
 
@@ -1,4 +1,4 @@
1
- const a = __dirname;
1
+ const e = import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "");
2
2
  export {
3
- a as default
3
+ e as default
4
4
  };
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_fonts=n())})(this,function(){"use strict";return __dirname});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_fonts=n())})(this,function(){"use strict";return(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("assets/fonts/index.umd.cjs",document.baseURI).href).replace(/^file:\/\/|\/\w+\.?[jt]s$/g,"")});
@@ -1,4 +1,4 @@
1
- const a = __dirname;
1
+ const e = import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "");
2
2
  export {
3
- a as default
3
+ e as default
4
4
  };
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_images=n())})(this,function(){"use strict";return __dirname});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_images=n())})(this,function(){"use strict";return(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("assets/images/index.umd.cjs",document.baseURI).href).replace(/^file:\/\/|\/\w+\.?[jt]s$/g,"")});
@@ -1,4 +1,4 @@
1
- const a = __dirname;
1
+ const e = import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "");
2
2
  export {
3
- a as default
3
+ e as default
4
4
  };
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_assets=n())})(this,function(){"use strict";return __dirname});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_assets=n())})(this,function(){"use strict";return(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("assets/index.umd.cjs",document.baseURI).href).replace(/^file:\/\/|\/\w+\.?[jt]s$/g,"")});
@@ -1,4 +1,4 @@
1
- const a = __dirname;
1
+ const e = import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "");
2
2
  export {
3
- a as default
3
+ e as default
4
4
  };
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_sass=n())})(this,function(){"use strict";return __dirname});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_sass=n())})(this,function(){"use strict";return(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("sass/index.umd.cjs",document.baseURI).href).replace(/^file:\/\/|\/\w+\.?[jt]s$/g,"")});
@@ -1,2 +1,3 @@
1
- export default __dirname;
1
+ declare const _default: string;
2
+ export default _default;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
- export default __dirname;
1
+ declare const _default: string;
2
+ export default _default;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
- export default __dirname;
1
+ declare const _default: string;
2
+ export default _default;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
- export default __dirname;
1
+ declare const _default: string;
2
+ export default _default;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- const a = __dirname;
1
+ const e = import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "");
2
2
  export {
3
- a as default
3
+ e as default
4
4
  };
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_styles=n())})(this,function(){"use strict";return __dirname});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_styles=n())})(this,function(){"use strict";return(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("styles/index.umd.cjs",document.baseURI).href).replace(/^file:\/\/|\/\w+\.?[jt]s$/g,"")});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/web-components",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**/*.{cjs,js,ts,css,woff2,scss}",
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1 +1 @@
1
- export default __dirname
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')