mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-12-03 20:54:30 +01:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
14 lines
305 B
JavaScript
14 lines
305 B
JavaScript
'use strict';
|
|
|
|
var define = require('define-properties');
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
module.exports = function shimAssign() {
|
|
var polyfill = getPolyfill();
|
|
define(
|
|
Object,
|
|
{ assign: polyfill },
|
|
{ assign: function () { return Object.assign !== polyfill; } }
|
|
);
|
|
return polyfill;
|
|
};
|