-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
95 additions
and
9,903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!.*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* text=auto | ||
* text=auto eol=lf |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,17 @@ | ||
# OS # | ||
################### | ||
.DS_Store | ||
*.log | ||
.idea | ||
Thumbs.db | ||
tmp/ | ||
temp/ | ||
|
||
|
||
# Node.js # | ||
################### | ||
node_modules | ||
|
||
|
||
# NYC # | ||
################### | ||
coverage | ||
*.lcov | ||
.nyc_output | ||
locales/ | ||
package-lock.json | ||
yarn.lock | ||
|
||
|
||
# Files # | ||
################### | ||
*.log | ||
Thumbs.db | ||
tmp/ | ||
temp/ | ||
*.lcov | ||
.env | ||
lib | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
module.exports = { | ||
"*.md,!test/**/*.md": [ | ||
filenames => filenames.map(filename => `remark ${filename} -qfo`) | ||
], | ||
'*.md': (filenames) => filenames.map((filename) => `remark ${filename} -qfo`), | ||
'package.json': 'fixpack', | ||
'*.js': 'xo --fix' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
bracketSpacing: true, | ||
trailingComma: 'none' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
plugins: ['preset-github'] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
prettier: true, | ||
space: true, | ||
extends: ['xo-lass'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 Nick Baugh <[email protected]> (http://niftylettuce.com/), Kevin Mårtensson <[email protected]>, and Diego Perini | ||
Copyright (c) 2020 Forward Email LLC, Kevin Mårtensson <[email protected]>, and Diego Perini | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,65 +2,57 @@ | |
"name": "url-regex-safe", | ||
"description": "Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.", | ||
"version": "3.0.0", | ||
"author": "Nick Baugh <[email protected]> (http://niftylettuce.com/)", | ||
"author": "Forward Email LLC (https://forwardemail.net)", | ||
"browser": { | ||
"re2": false | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/niftylettuce/url-regex-safe/issues", | ||
"email": "[email protected]" | ||
"url": "https://github.com/spamscanner/url-regex-safe/issues" | ||
}, | ||
"contributors": [ | ||
"Nick Baugh <[email protected]> (http://niftylettuce.com/)", | ||
"Forward Email LLC (https://forwardemail.net)", | ||
"Kevin Mårtensson <[email protected]>", | ||
"Diego Perini" | ||
], | ||
"dependencies": { | ||
"ip-regex": "4.3.0", | ||
"tlds": "^1.228.0" | ||
}, | ||
"peerDependencies": { | ||
"re2": "^1.17.2" | ||
}, | ||
"peerDependenciesMeta": { | ||
"re2": { | ||
"optional": true | ||
} | ||
"tlds": "^1.242.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.16.7", | ||
"@babel/core": "^7.16.7", | ||
"@babel/preset-env": "^7.16.7", | ||
"@commitlint/cli": "latest", | ||
"@commitlint/config-conventional": "latest", | ||
"ava": "latest", | ||
"@babel/cli": "^7.22.10", | ||
"@babel/core": "^7.22.10", | ||
"@babel/eslint-parser": "^7.22.10", | ||
"@babel/preset-env": "^7.22.10", | ||
"@commitlint/cli": "^17.7.1", | ||
"@commitlint/config-conventional": "^17.7.0", | ||
"ava": "^4.3.0", | ||
"babelify": "^10.0.0", | ||
"browserify": "^17.0.0", | ||
"codecov": "latest", | ||
"cross-env": "latest", | ||
"eslint": "latest", | ||
"eslint-config-xo-lass": "latest", | ||
"eslint-plugin-compat": "^4.0.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.47.0", | ||
"eslint-config-xo-lass": "^2.0.1", | ||
"eslint-plugin-compat": "^4.1.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"fixpack": "latest", | ||
"husky": "latest", | ||
"fixpack": "^4.0.0", | ||
"husky": "^8.0.3", | ||
"jsdom": "15", | ||
"lint-staged": "latest", | ||
"nyc": "latest", | ||
"re2": "latest", | ||
"remark-cli": "latest", | ||
"remark-preset-github": "latest", | ||
"lint-staged": "^14.0.0", | ||
"nyc": "^15.1.0", | ||
"re2": "^1.20.1", | ||
"remark-cli": "^11.0.0", | ||
"remark-preset-github": "^4.0.4", | ||
"rimraf": "^5.0.1", | ||
"tinyify": "^3.0.0", | ||
"xo": "latest" | ||
"xo": "^0.56.0" | ||
}, | ||
"engines": { | ||
"node": ">= 10.12.0" | ||
"node": ">= 14" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist" | ||
], | ||
"homepage": "https://github.com/niftylettuce/url-regex-safe", | ||
"homepage": "https://github.com/spamscanner/url-regex-safe", | ||
"jsdelivr": "dist/url-regex-safe.min.js", | ||
"keywords": [ | ||
"2020", | ||
|
@@ -98,35 +90,34 @@ | |
], | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"peerDependencies": { | ||
"re2": "^1.20.1" | ||
}, | ||
"peerDependenciesMeta": { | ||
"re2": { | ||
"optional": true | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/niftylettuce/url-regex-safe" | ||
"url": "https://github.com/spamscanner/url-regex-safe" | ||
}, | ||
"scripts": { | ||
"ava": "cross-env NODE_ENV=test ava", | ||
"browserify": "browserify src/index.js -o dist/url-regex-safe.js -s urlRegexSafe -g [ babelify --configFile ./.dist.babelrc ]", | ||
"build": "npm run build:clean && npm run build:lib && npm run build:dist", | ||
"build:clean": "rimraf lib dist", | ||
"build:dist": "npm run browserify && npm run minify", | ||
"build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib", | ||
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"lint": "yarn run lint:js && yarn run lint:md && yarn run lint:lib && yarn run lint:dist", | ||
"lint": "npm run lint:js && npm run lint:md && npm run lint:pkg && npm run lint:lib && npm run lint:dist", | ||
"lint:dist": "eslint --no-inline-config -c .dist.eslintrc dist", | ||
"lint:js": "xo", | ||
"lint:js": "xo --fix", | ||
"lint:lib": "eslint -c .lib.eslintrc lib", | ||
"lint:md": "remark . -qfo", | ||
"lint:pkg": "fixpack", | ||
"minify": "cross-env NODE_ENV=production browserify src/index.js -o dist/url-regex-safe.min.js -s urlRegexSafe -g [ babelify --configFile ./.dist.babelrc ] -p tinyify", | ||
"nyc": "cross-env NODE_ENV=test nyc ava", | ||
"pretest": "yarn run build && yarn run lint", | ||
"test": "cross-env NODE_ENV=test ava", | ||
"test-coverage": "cross-env NODE_ENV=test nyc yarn run test" | ||
"prepare": "husky install", | ||
"pretest": "npm run build && npm run lint", | ||
"test": "cross-env NODE_ENV=test nyc ava" | ||
}, | ||
"unpkg": "dist/url-regex-safe.min.js", | ||
"xo": { | ||
"prettier": true, | ||
"space": true, | ||
"extends": [ | ||
"xo-lass" | ||
] | ||
} | ||
"unpkg": "dist/url-regex-safe.min.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
const test = require('ava'); | ||
|
||
const urlRegex = require('..'); | ||
|
||
const fixtures = [ | ||
|
Oops, something went wrong.