vanilla-jet 1.0.13 → 1.0.15

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.
@@ -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.13",
3
+ "version": "1.0.15",
4
4
  "description": "VannilaJet framework",
5
5
  "main": "index.js",
6
6
  "bin": {