Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit fd5d022

Browse files
committed
Migrate to regular MIT license
1 parent 4a69d29 commit fd5d022

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

LICENSE.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
MIT No Attribution
2-
3-
Permission is hereby granted, free of charge, to any person obtaining a copy of this
4-
software and associated documentation files (the "Software"), to deal in the Software
5-
without restriction, including without limitation the rights to use, copy, modify,
6-
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7-
permit persons to whom the Software is furnished to do so.
8-
9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
10-
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
11-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
12-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
13-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
14-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2022 proteriax
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# esm-hook
22

3-
[![License](https://img.shields.io/badge/License-MIT_0-blue.svg)](https://opensource.org/licenses/MIT-0)
3+
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
44
[![npm version](https://badge.fury.io/js/esm-hook.svg)](https://badge.fury.io/js/esm-hook)
55

66
Use ESM modules with zero setup.
@@ -17,4 +17,4 @@ fetch("https://hacker-news.firebaseio.com/v0/item/8863.json?print=pretty")
1717

1818
## License
1919

20-
MIT No Attribution.
20+
MIT

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "esm-hook",
33
"version": "0.1.2",
44
"main": "register.js",
5-
"license": "MIT-0",
5+
"license": "MIT",
66
"repository": {
77
"url": "[email protected]:proteriax/esm-hook.git"
88
},
@@ -44,4 +44,4 @@
4444
"dependencies": {
4545
"esbuild": "^0.14.39"
4646
}
47-
}
47+
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function register(options?: TransformOptions) {
2020
...options,
2121
};
2222

23-
function esbuild(module: any, filename: string) {
23+
function esbuild(module: _Module, filename: string) {
2424
const source = fs.readFileSync(filename, "utf-8");
2525
const result = transformSync(source, transformOptions).code;
2626
return module._compile(result, filename);

test/require.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("require", () => {
1111
});
1212

1313
it("should require node-fetch", () => {
14-
const unregister = require("../register");
14+
const unregister = require("..");
1515
assert.doesNotThrow(() => {
1616
const fetch = require("node-fetch");
1717
assert.equal(typeof fetch, "object");

0 commit comments

Comments
 (0)