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

Commit

Permalink
feat: build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 29, 2022
1 parent 2bb8d0c commit ee90f6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
@@ -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"}
{"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"}
8 changes: 7 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ function getDefaultExportFromCjs (x) {
function getAugmentedNamespace(n) {
var f = n.default;
if (typeof f == "function") {
var a = function () {
var a = function a () {
if (this instanceof a) {
var args = [null];
args.push.apply(args, arguments);
var Ctor = Function.bind.apply(f, args);
return new Ctor();
}
return f.apply(this, arguments);
};
a.prototype = f.prototype;
Expand Down

0 comments on commit ee90f6f

Please sign in to comment.