vanilla-jet 1.0.12 → 1.0.14

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/bin.js CHANGED
@@ -5,5 +5,5 @@ const path = require('path');
5
5
  const generate_packes_script_path = path.join(__dirname, './.scripts/generate_packages_json.js');
6
6
  require(generate_packes_script_path);
7
7
 
8
- const grunt_compile_html_path = path.join(__dirname, './.grunt/compile_html.js');
9
- require(grunt_compile_html_path);
8
+ //const grunt_compile_html_path = path.join(__dirname, './.grunt/compile_html.js');
9
+ //require(grunt_compile_html_path);
@@ -34,7 +34,7 @@ Functions.hydrate = function(dipper) {
34
34
  for (let key in json.styles) {
35
35
  // -- Check if init with http or https
36
36
  let url = json.styles[key];
37
- if (!/^https?:\/\//.test(url)) {
37
+ if (!/^(https?:\/\/|\/\/)/.test(url)) {
38
38
  dipper.registerStyle(key, dipper.style(url));
39
39
  } else {
40
40
  dipper.registerStyle(key, url);
@@ -61,7 +61,7 @@ Functions.hydrate = function(dipper) {
61
61
 
62
62
  // -- Check if init with http or https
63
63
  let url = json.dependencies[key];
64
- if (!/^https?:\/\//.test(url)) {
64
+ if (!/^(https?:\/\/|\/\/)/.test(url)) {
65
65
  if (keyRequires !== '') {
66
66
  dipper.registerScript(keyName, dipper.script(url), [keyRequires]);
67
67
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jet",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "VannilaJet framework",
5
5
  "main": "index.js",
6
6
  "bin": {