mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-09-04 20:44:51 +08:00
add ability to call self-signed or invalid certificate clients
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
coverage/
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
name: Automatic Rebase
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
_:
|
||||
name: "Automatic Rebase"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ljharb/rebase@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"all": true,
|
||||
"check-coverage": false,
|
||||
"reporter": ["text-summary", "text", "html", "json"],
|
||||
"lines": 86,
|
||||
"statements": 85.93,
|
||||
"functions": 82.43,
|
||||
"branches": 76.06,
|
||||
"exclude": [
|
||||
"coverage",
|
||||
"test"
|
||||
]
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
version: ~> 1.0
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
import:
|
||||
- ljharb/travis-ci:node/all.yml
|
||||
- ljharb/travis-ci:node/pretest.yml
|
||||
- ljharb/travis-ci:node/posttest.yml
|
||||
- ljharb/travis-ci:node/coverage.yml
|
||||
matrix:
|
||||
allow_failures:
|
||||
- env: COVERAGE=true
|
||||
+16
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.1.2](https://github.com/inspect-js/is-regex/compare/v1.1.1...v1.1.2) - 2021-02-01
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] migrate tests to Github Actions [`cc1686e`](https://github.com/inspect-js/is-regex/commit/cc1686e25f446ca6948f43b3f180d6e55e31fb4e)
|
||||
- [readme] fix repo URLs; remove travis badge [`d1d1da6`](https://github.com/inspect-js/is-regex/commit/d1d1da647bb4e91589606f12470cd27a47b3bb81)
|
||||
- [meta] do not publish github action workflow files [`9f84b99`](https://github.com/inspect-js/is-regex/commit/9f84b993a995f057b4d2d097ef47b1ff9c84115d)
|
||||
- [Tests] run `nyc` on all tests [`c37aab9`](https://github.com/inspect-js/is-regex/commit/c37aab9d332c4834b08ada94736c45ab1d39cd2f)
|
||||
- [Robustness] use `call-bind` [`fbb61bf`](https://github.com/inspect-js/is-regex/commit/fbb61bf3e19ccc178e6ed1e0d7ab9cc7c7167393)
|
||||
- [actions] add "Allow Edits" workflow [`9022b53`](https://github.com/inspect-js/is-regex/commit/9022b53cb05b0f105cd179800cf96e055b249f08)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog` [`d60f28f`](https://github.com/inspect-js/is-regex/commit/d60f28f7f2fb21dade7bce302b3e0246206423d3)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`2c35c43`](https://github.com/inspect-js/is-regex/commit/2c35c437edf3eeb37129eea2404d8f465d27620f)
|
||||
- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`1009e25`](https://github.com/inspect-js/is-regex/commit/1009e259d49a63753dc6e79e2b876a30c00c6de6)
|
||||
- [meta] gitignore coverage output [`3b5fa9e`](https://github.com/inspect-js/is-regex/commit/3b5fa9ed2882c65ee81dff979f79f1a2751d3772)
|
||||
- [actions] update workflows [`1843ef6`](https://github.com/inspect-js/is-regex/commit/1843ef65b8b8c24a44e91bc4ed5ee60dffc31c2d)
|
||||
|
||||
## [v1.1.1](https://github.com/inspect-js/is-regex/compare/v1.1.0...v1.1.1) - 2020-08-03
|
||||
|
||||
### Commits
|
||||
|
||||
+9
-16
@@ -1,6 +1,5 @@
|
||||
#is-regex <sup>[![Version Badge][2]][1]</sup>
|
||||
# is-regex <sup>[![Version Badge][2]][1]</sup>
|
||||
|
||||
[![Build Status][3]][4]
|
||||
[![dependency status][5]][6]
|
||||
[![dev dependency status][7]][8]
|
||||
[![License][license-image]][license-url]
|
||||
@@ -8,8 +7,6 @@
|
||||
|
||||
[![npm badge][11]][1]
|
||||
|
||||
[![browser support][9]][10]
|
||||
|
||||
Is this value a JS regex?
|
||||
This module works cross-realm/iframe, and despite ES6 @@toStringTag.
|
||||
|
||||
@@ -37,18 +34,14 @@ assert.ok(isRegex(new RegExp('a', 'g')));
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[1]: https://npmjs.org/package/is-regex
|
||||
[2]: http://versionbadg.es/ljharb/is-regex.svg
|
||||
[3]: https://travis-ci.org/ljharb/is-regex.svg
|
||||
[4]: https://travis-ci.org/ljharb/is-regex
|
||||
[5]: https://david-dm.org/ljharb/is-regex.svg
|
||||
[6]: https://david-dm.org/ljharb/is-regex
|
||||
[7]: https://david-dm.org/ljharb/is-regex/dev-status.svg
|
||||
[8]: https://david-dm.org/ljharb/is-regex#info=devDependencies
|
||||
[9]: https://ci.testling.com/ljharb/is-regex.png
|
||||
[10]: https://ci.testling.com/ljharb/is-regex
|
||||
[2]: https://versionbadg.es/inspect-js/is-regex.svg
|
||||
[5]: https://david-dm.org/inspect-js/is-regex.svg
|
||||
[6]: https://david-dm.org/inspect-js/is-regex
|
||||
[7]: https://david-dm.org/inspect-js/is-regex/dev-status.svg
|
||||
[8]: https://david-dm.org/inspect-js/is-regex#info=devDependencies
|
||||
[11]: https://nodei.co/npm/is-regex.png?downloads=true&stars=true
|
||||
[license-image]: http://img.shields.io/npm/l/is-regex.svg
|
||||
[license-image]: https://img.shields.io/npm/l/is-regex.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: http://img.shields.io/npm/dm/is-regex.svg
|
||||
[downloads-url]: http://npm-stat.com/charts.html?package=is-regex
|
||||
[downloads-image]: https://img.shields.io/npm/dm/is-regex.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=is-regex
|
||||
|
||||
|
||||
+9
-8
@@ -1,15 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
var hasSymbols = require('has-symbols')();
|
||||
var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
|
||||
var hasOwnProperty;
|
||||
var regexExec;
|
||||
var has;
|
||||
var $exec;
|
||||
var isRegexMarker;
|
||||
var badStringifier;
|
||||
|
||||
if (hasToStringTag) {
|
||||
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
||||
regexExec = Function.call.bind(RegExp.prototype.exec);
|
||||
has = callBound('Object.prototype.hasOwnProperty');
|
||||
$exec = callBound('RegExp.prototype.exec');
|
||||
isRegexMarker = {};
|
||||
|
||||
var throwRegexMarker = function () {
|
||||
@@ -25,7 +26,7 @@ if (hasToStringTag) {
|
||||
}
|
||||
}
|
||||
|
||||
var toStr = Object.prototype.toString;
|
||||
var $toString = callBound('Object.prototype.toString');
|
||||
var gOPD = Object.getOwnPropertyDescriptor;
|
||||
var regexClass = '[object RegExp]';
|
||||
|
||||
@@ -37,13 +38,13 @@ module.exports = hasToStringTag
|
||||
}
|
||||
|
||||
var descriptor = gOPD(value, 'lastIndex');
|
||||
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
||||
var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
|
||||
if (!hasLastIndexDataProperty) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
regexExec(value, badStringifier);
|
||||
$exec(value, badStringifier);
|
||||
} catch (e) {
|
||||
return e === isRegexMarker;
|
||||
}
|
||||
@@ -54,5 +55,5 @@ module.exports = hasToStringTag
|
||||
return false;
|
||||
}
|
||||
|
||||
return toStr.call(value) === regexClass;
|
||||
return $toString(value) === regexClass;
|
||||
};
|
||||
|
||||
+14
-13
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "is-regex",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag",
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
@@ -11,10 +11,10 @@
|
||||
"scripts": {
|
||||
"prepublish": "safe-publish-latest",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only",
|
||||
"tests-only": "node --harmony --es-staging test",
|
||||
"test": "npm run tests-only && npm run test:harmony",
|
||||
"tests-only": "nyc node test",
|
||||
"test:harmony": "nyc node --harmony --es-staging test",
|
||||
"posttest": "npx aud --production",
|
||||
"coverage": "covert test/index.js",
|
||||
"lint": "eslint .",
|
||||
"eccheck": "eclint check *.js **/*.js > /dev/null",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
@@ -22,12 +22,12 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/ljharb/is-regex.git"
|
||||
"url": "git://github.com/inspect-js/is-regex.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ljharb/is-regex/issues"
|
||||
"url": "https://github.com/inspect-js/is-regex/issues"
|
||||
},
|
||||
"homepage": "https://github.com/ljharb/is-regex",
|
||||
"homepage": "https://github.com/inspect-js/is-regex",
|
||||
"keywords": [
|
||||
"regex",
|
||||
"regexp",
|
||||
@@ -37,18 +37,19 @@
|
||||
"expression"
|
||||
],
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.2",
|
||||
"has-symbols": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^17.1.0",
|
||||
"aud": "^1.1.2",
|
||||
"auto-changelog": "^2.2.0",
|
||||
"covert": "^1.1.1",
|
||||
"@ljharb/eslint-config": "^17.5.0",
|
||||
"aud": "^1.1.3",
|
||||
"auto-changelog": "^2.2.1",
|
||||
"eclint": "^2.8.1",
|
||||
"eslint": "^7.6.0",
|
||||
"eslint": "^7.19.0",
|
||||
"foreach": "^2.0.5",
|
||||
"nyc": "^10.3.2",
|
||||
"safe-publish-latest": "^1.1.4",
|
||||
"tape": "^5.0.1"
|
||||
"tape": "^5.1.1"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test.js",
|
||||
|
||||
Reference in New Issue
Block a user