Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit ee90f6f

Browse files
feat: build for release
1 parent 2bb8d0c commit ee90f6f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

build.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"owner":"technote-space","repo":"get-diff-action","sha":"b958f526076e9924cb13343f1b5da165827a5043","ref":"refs/tags/test/v6.1.2.3551960194","tagName":"test/v6.1.2.3551960194","branch":"gh-actions","tags":["test/v6.1.2.3551960194","test/v6.1.2","test/v6.1","test/v6"],"updated_at":"2022-11-26T03:09:53.770Z"}
1+
{"owner":"technote-space","repo":"get-diff-action","sha":"191d7c52f0e9b31a18deddf081b131c46ea6f8d2","ref":"refs/tags/test/v6.1.2.3570657478","tagName":"test/v6.1.2.3570657478","branch":"gh-actions","tags":["test/v6.1.2.3570657478","test/v6.1.2","test/v6.1","test/v6"],"updated_at":"2022-11-29T03:12:16.164Z"}

lib/main.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ function getDefaultExportFromCjs (x) {
2525
function getAugmentedNamespace(n) {
2626
var f = n.default;
2727
if (typeof f == "function") {
28-
var a = function () {
28+
var a = function a () {
29+
if (this instanceof a) {
30+
var args = [null];
31+
args.push.apply(args, arguments);
32+
var Ctor = Function.bind.apply(f, args);
33+
return new Ctor();
34+
}
2935
return f.apply(this, arguments);
3036
};
3137
a.prototype = f.prototype;

0 commit comments

Comments
 (0)