@cycjimmy/hello-github-package-npm 6.2.9 → 6.3.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/dist/hello-world.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var helloTemplate = (function (_ref) {
|
|
|
9
9
|
function styleInject(css, ref) {
|
|
10
10
|
if (ref === void 0) ref = {};
|
|
11
11
|
var insertAt = ref.insertAt;
|
|
12
|
-
if (
|
|
12
|
+
if (typeof document === 'undefined') {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -32,7 +32,7 @@ function styleInject(css, ref) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}";
|
|
35
|
-
var _style = {"
|
|
35
|
+
var _style = {"hello":"_2EBBO29zT_","helloWrapper":"_2GQl-YcmkJ"};
|
|
36
36
|
styleInject(css_248z);
|
|
37
37
|
|
|
38
38
|
var helloWorld = function helloWorld() {
|
package/dist/hello-world.esm.js
CHANGED
|
@@ -7,7 +7,7 @@ var helloTemplate = (function (_ref) {
|
|
|
7
7
|
function styleInject(css, ref) {
|
|
8
8
|
if (ref === void 0) ref = {};
|
|
9
9
|
var insertAt = ref.insertAt;
|
|
10
|
-
if (
|
|
10
|
+
if (typeof document === 'undefined') {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -30,7 +30,7 @@ function styleInject(css, ref) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}";
|
|
33
|
-
var _style = {"
|
|
33
|
+
var _style = {"hello":"_2EBBO29zT_","helloWrapper":"_2GQl-YcmkJ"};
|
|
34
34
|
styleInject(css_248z);
|
|
35
35
|
|
|
36
36
|
var helloWorld = function helloWorld() {
|
package/dist/hello-world.umd.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
function styleInject(css, ref) {
|
|
14
14
|
if (ref === void 0) ref = {};
|
|
15
15
|
var insertAt = ref.insertAt;
|
|
16
|
-
if (
|
|
16
|
+
if (typeof document === 'undefined') {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
var css_248z = "._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}";
|
|
39
|
-
var _style = {"
|
|
39
|
+
var _style = {"hello":"_2EBBO29zT_","helloWrapper":"_2GQl-YcmkJ"};
|
|
40
40
|
styleInject(css_248z);
|
|
41
41
|
|
|
42
42
|
var helloWorld = function helloWorld() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @cycjimmy/hello-github-package-npm v6.
|
|
2
|
+
* @cycjimmy/hello-github-package-npm v6.3.1
|
|
3
3
|
* Homepage: https://github.com/cycjimmy/hello-github-package-npm#readme
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).helloWorld=t()}(this,(function(){"use strict";var e={helloWrapper:"_2GQl-YcmkJ"
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).helloWorld=t()}(this,(function(){"use strict";var e={hello:"_2EBBO29zT_",helloWrapper:"_2GQl-YcmkJ"};!function(e,t){void 0===t&&(t={});var l=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===l&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("._2EBBO29zT_,._2GQl-YcmkJ{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;border:1px solid #000;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}._2GQl-YcmkJ{height:300px;margin:auto;width:500px}._2EBBO29zT_{height:80%;width:80%}");var t=function(e){var t=e.message,l=e._style;return'\n<div class="'.concat(l.helloWrapper,'">\n <p class="').concat(l.hello,'">').concat(t,"</p>\n</div>\n")}({message:"hello world!",_style:e});return{helloWorld:function(){return"hello world!"},helloElement:t,_style:e}}));
|