Comparing version 0.1.2 to 0.1.3
@@ -37,2 +37,3 @@ /* eslint-disable */ | ||
extensions[".js"] = function (module, filename) { | ||
var _a; | ||
try { | ||
@@ -42,3 +43,5 @@ return js(module, filename); | ||
catch (e) { | ||
if ((e === null || e === void 0 ? void 0 : e.code) === "ERR_REQUIRE_ESM") { | ||
if (e && | ||
(e.code === "ERR_REQUIRE_ESM" || | ||
((_a = e.message) === null || _a === void 0 ? void 0 : _a.includes("Cannot use import statement outside a module")))) { | ||
return esbuild$1(module, filename); | ||
@@ -45,0 +48,0 @@ } |
@@ -1,14 +0,21 @@ | ||
MIT No Attribution | ||
MIT License | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this | ||
software and associated documentation files (the "Software"), to deal in the Software | ||
without restriction, including without limitation the rights to use, copy, modify, | ||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so. | ||
Copyright (c) 2022 proteriax | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
{ | ||
"name": "esm-hook", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "register.js", | ||
"license": "MIT-0", | ||
"license": "MIT", | ||
"repository": { | ||
@@ -7,0 +7,0 @@ "url": "git@github.com:proteriax/esm-hook.git" |
# esm-hook | ||
[![License](https://img.shields.io/badge/License-MIT_0-blue.svg)](https://opensource.org/licenses/MIT-0) | ||
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) | ||
[![npm version](https://badge.fury.io/js/esm-hook.svg)](https://badge.fury.io/js/esm-hook) | ||
@@ -20,2 +20,2 @@ | ||
MIT No Attribution. | ||
MIT |
Sorry, the diff of this file is not supported yet
8630
65