Skip to content

Commit

Permalink
version 0.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 11, 2024
1 parent 7eee11f commit 1ae8b1e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.14.1
VERSION=0.14.2
DATE=`date -uR`
YEAR=`date +%Y`

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
alt="Logo of Wayne library - it represents construction worker helmet and text with the name of the library" />
</h1>

[![npm](https://img.shields.io/badge/npm-0.14.1-blue.svg)](https://www.npmjs.com/package/@jcubic/wayne)
[![npm](https://img.shields.io/badge/npm-0.14.2-blue.svg)](https://www.npmjs.com/package/@jcubic/wayne)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)

[Service Worker Routing library for in-browser HTTP requests](https://github.com/jcubic/wayne/)
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wayne - Server Worker Routing library (v. 0.14.1)
* Wayne - Server Worker Routing library (v. 0.14.2)
*
* Copyright (c) 2022-2024 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under MIT license
Expand Down
6 changes: 3 additions & 3 deletions index.min.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions index.umd.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* Wayne - Server Worker Routing library (v. 0.14.0)
* Wayne - Server Worker Routing library (v. 0.14.1)
*
* Copyright (c) 2022-2024 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under MIT license
*
* Sat, 27 Jan 2024 19:09:38 +0000
* Sat, 10 Feb 2024 16:26:26 +0000
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.wayne = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
Expand All @@ -19,7 +19,7 @@ exports.Wayne = void 0;
exports.rpc = rpc;
exports.send = send;
/*
* Wayne - Server Worker Routing library (v. 0.14.1)
* Wayne - Server Worker Routing library (v. 0.14.2)
*
* Copyright (c) 2022-2024 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under MIT license
Expand Down Expand Up @@ -386,7 +386,8 @@ function FileSystem(options) {
const url = new URL(req.url);
let path_name = normalize_url(decodeURIComponent(url.pathname));
url.pathname = path_name;
if (!(url.host === self.location.hostname && (await test(url)))) {
console.log(url);
if (!(url.hostname === self.location.hostname && (await test(url)))) {
return next();
}
if (req.method !== 'GET') {
Expand Down
6 changes: 3 additions & 3 deletions index.umd.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jcubic/wayne",
"version": "0.14.1",
"version": "0.14.2",
"description": "Service Worker Routing for in browser HTTP requests",
"type": "module",
"main": "index.min.js",
Expand Down

0 comments on commit 1ae8b1e

Please sign in to comment.