mirror of
https://github.com/actions/setup-node.git
synced 2025-07-26 08:28:23 +02:00
Use husky
This commit is contained in:
parent
d7b6952411
commit
c3f0a8be66
6685 changed files with 919804 additions and 0 deletions
18
node_modules/caller-callsite/index.js
generated
vendored
Normal file
18
node_modules/caller-callsite/index.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
const callsites = require('callsites');
|
||||
|
||||
module.exports = () => {
|
||||
const c = callsites();
|
||||
let caller;
|
||||
|
||||
for (let i = 0; i < c.length; i++) {
|
||||
const hasReceiver = c[i].getTypeName() !== null;
|
||||
|
||||
if (hasReceiver) {
|
||||
caller = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return c[caller];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue