@cycjimmy/hello-github-package-npm 6.2.7 → 6.2.8

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.
@@ -2,22 +2,19 @@
2
2
 
3
3
  var helloTemplate = (function (_ref) {
4
4
  var message = _ref.message,
5
- _style = _ref._style;
5
+ _style = _ref._style;
6
6
  return "\n<div class=\"".concat(_style.helloWrapper, "\">\n <p class=\"").concat(_style.hello, "\">").concat(message, "</p>\n</div>\n");
7
7
  });
8
8
 
9
9
  function styleInject(css, ref) {
10
10
  if (ref === void 0) ref = {};
11
11
  var insertAt = ref.insertAt;
12
-
13
12
  if (!css || typeof document === 'undefined') {
14
13
  return;
15
14
  }
16
-
17
15
  var head = document.head || document.getElementsByTagName('head')[0];
18
16
  var style = document.createElement('style');
19
17
  style.type = 'text/css';
20
-
21
18
  if (insertAt === 'top') {
22
19
  if (head.firstChild) {
23
20
  head.insertBefore(style, head.firstChild);
@@ -27,7 +24,6 @@ function styleInject(css, ref) {
27
24
  } else {
28
25
  head.appendChild(style);
29
26
  }
30
-
31
27
  if (style.styleSheet) {
32
28
  style.styleSheet.cssText = css;
33
29
  } else {
@@ -42,7 +38,6 @@ styleInject(css_248z);
42
38
  var helloWorld = function helloWorld() {
43
39
  return 'hello world!';
44
40
  };
45
-
46
41
  var helloElement = helloTemplate({
47
42
  message: 'hello world!',
48
43
  _style: _style
@@ -1,21 +1,18 @@
1
1
  var helloTemplate = (function (_ref) {
2
2
  var message = _ref.message,
3
- _style = _ref._style;
3
+ _style = _ref._style;
4
4
  return "\n<div class=\"".concat(_style.helloWrapper, "\">\n <p class=\"").concat(_style.hello, "\">").concat(message, "</p>\n</div>\n");
5
5
  });
6
6
 
7
7
  function styleInject(css, ref) {
8
8
  if (ref === void 0) ref = {};
9
9
  var insertAt = ref.insertAt;
10
-
11
10
  if (!css || typeof document === 'undefined') {
12
11
  return;
13
12
  }
14
-
15
13
  var head = document.head || document.getElementsByTagName('head')[0];
16
14
  var style = document.createElement('style');
17
15
  style.type = 'text/css';
18
-
19
16
  if (insertAt === 'top') {
20
17
  if (head.firstChild) {
21
18
  head.insertBefore(style, head.firstChild);
@@ -25,7 +22,6 @@ function styleInject(css, ref) {
25
22
  } else {
26
23
  head.appendChild(style);
27
24
  }
28
-
29
25
  if (style.styleSheet) {
30
26
  style.styleSheet.cssText = css;
31
27
  } else {
@@ -40,7 +36,6 @@ styleInject(css_248z);
40
36
  var helloWorld = function helloWorld() {
41
37
  return 'hello world!';
42
38
  };
43
-
44
39
  var helloElement = helloTemplate({
45
40
  message: 'hello world!',
46
41
  _style: _style
@@ -6,22 +6,19 @@
6
6
 
7
7
  var helloTemplate = (function (_ref) {
8
8
  var message = _ref.message,
9
- _style = _ref._style;
9
+ _style = _ref._style;
10
10
  return "\n<div class=\"".concat(_style.helloWrapper, "\">\n <p class=\"").concat(_style.hello, "\">").concat(message, "</p>\n</div>\n");
11
11
  });
12
12
 
13
13
  function styleInject(css, ref) {
14
14
  if (ref === void 0) ref = {};
15
15
  var insertAt = ref.insertAt;
16
-
17
16
  if (!css || typeof document === 'undefined') {
18
17
  return;
19
18
  }
20
-
21
19
  var head = document.head || document.getElementsByTagName('head')[0];
22
20
  var style = document.createElement('style');
23
21
  style.type = 'text/css';
24
-
25
22
  if (insertAt === 'top') {
26
23
  if (head.firstChild) {
27
24
  head.insertBefore(style, head.firstChild);
@@ -31,7 +28,6 @@
31
28
  } else {
32
29
  head.appendChild(style);
33
30
  }
34
-
35
31
  if (style.styleSheet) {
36
32
  style.styleSheet.cssText = css;
37
33
  } else {
@@ -46,7 +42,6 @@
46
42
  var helloWorld = function helloWorld() {
47
43
  return 'hello world!';
48
44
  };
49
-
50
45
  var helloElement = helloTemplate({
51
46
  message: 'hello world!',
52
47
  _style: _style
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @cycjimmy/hello-github-package-npm v6.2.7
2
+ * @cycjimmy/hello-github-package-npm v6.2.8
3
3
  * Homepage: https://github.com/cycjimmy/hello-github-package-npm#readme
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cycjimmy/hello-github-package-npm",
3
- "version": "6.2.7",
3
+ "version": "6.2.8",
4
4
  "description": "hello github package npm",
5
5
  "type": "module",
6
6
  "main": "dist/hello-world.cjs",