Galerie und tage
This commit is contained in:
21
node_modules/isurl/LICENSE
generated
vendored
21
node_modules/isurl/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Steven Vachon
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
39
node_modules/isurl/README.md
generated
vendored
39
node_modules/isurl/README.md
generated
vendored
@@ -1,39 +0,0 @@
|
||||
# isurl [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
|
||||
|
||||
> Checks whether a value is a WHATWG [`URL`](https://developer.mozilla.org/en/docs/Web/API/URL).
|
||||
|
||||
|
||||
Works cross-realm/iframe and despite @@toStringTag.
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||
[Node.js](http://nodejs.org/) `>= 4` is required. To install, type this at the command line:
|
||||
```shell
|
||||
npm install isurl
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const isURL = require('isurl');
|
||||
|
||||
isURL('http://domain/'); //-> false
|
||||
isURL(new URL('http://domain/')); //-> true
|
||||
```
|
||||
|
||||
Optionally, acceptance can be extended to incomplete `URL` implementations that lack `searchParams` (which are common in many modern web browsers):
|
||||
```js
|
||||
const url = new URL('http://domain/?query');
|
||||
|
||||
console.log(url.searchParams); //-> undefined
|
||||
|
||||
isURL.lenient(url); //-> true
|
||||
```
|
||||
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/isurl.svg
|
||||
[npm-url]: https://npmjs.org/package/isurl
|
||||
[travis-image]: https://img.shields.io/travis/stevenvachon/isurl.svg
|
||||
[travis-url]: https://travis-ci.org/stevenvachon/isurl
|
||||
58
node_modules/isurl/index.js
generated
vendored
58
node_modules/isurl/index.js
generated
vendored
@@ -1,58 +0,0 @@
|
||||
"use strict";
|
||||
const hasToStringTag = require("has-to-string-tag-x");
|
||||
const isObject = require("is-object");
|
||||
|
||||
const toString = Object.prototype.toString;
|
||||
const urlClass = "[object URL]";
|
||||
|
||||
const hash = "hash";
|
||||
const host = "host";
|
||||
const hostname = "hostname";
|
||||
const href = "href";
|
||||
const password = "password";
|
||||
const pathname = "pathname";
|
||||
const port = "port";
|
||||
const protocol = "protocol";
|
||||
const search = "search";
|
||||
const username = "username";
|
||||
|
||||
|
||||
|
||||
const isURL = (url, supportIncomplete/*=false*/) =>
|
||||
{
|
||||
if (!isObject(url)) return false;
|
||||
|
||||
// Native implementation in older browsers
|
||||
if (!hasToStringTag && toString.call(url) === urlClass) return true;
|
||||
|
||||
if (!(href in url)) return false;
|
||||
if (!(protocol in url)) return false;
|
||||
if (!(username in url)) return false;
|
||||
if (!(password in url)) return false;
|
||||
if (!(hostname in url)) return false;
|
||||
if (!(port in url)) return false;
|
||||
if (!(host in url)) return false;
|
||||
if (!(pathname in url)) return false;
|
||||
if (!(search in url)) return false;
|
||||
if (!(hash in url)) return false;
|
||||
|
||||
if (supportIncomplete !== true)
|
||||
{
|
||||
if (!isObject(url.searchParams)) return false;
|
||||
|
||||
// TODO :: write a separate isURLSearchParams ?
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
isURL.lenient = url =>
|
||||
{
|
||||
return isURL(url, true);
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = isURL;
|
||||
70
node_modules/isurl/package.json
generated
vendored
70
node_modules/isurl/package.json
generated
vendored
@@ -1,70 +0,0 @@
|
||||
{
|
||||
"_from": "isurl@^1.0.0-alpha5",
|
||||
"_id": "isurl@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==",
|
||||
"_location": "/isurl",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "isurl@^1.0.0-alpha5",
|
||||
"name": "isurl",
|
||||
"escapedName": "isurl",
|
||||
"rawSpec": "^1.0.0-alpha5",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0-alpha5"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/bin-wrapper/got",
|
||||
"/caw",
|
||||
"/got"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz",
|
||||
"_shasum": "b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67",
|
||||
"_spec": "isurl@^1.0.0-alpha5",
|
||||
"_where": "/var/www/html/jason/WeihnachtenMelly/node_modules/caw",
|
||||
"author": {
|
||||
"name": "Steven Vachon",
|
||||
"email": "contact@svachon.com",
|
||||
"url": "https://www.svachon.com/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/stevenvachon/isurl/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"has-to-string-tag-x": "^1.2.0",
|
||||
"is-object": "^1.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Checks whether a value is a WHATWG URL.",
|
||||
"devDependencies": {
|
||||
"chai": "^4.0.2",
|
||||
"mocha": "^3.4.2",
|
||||
"semver": "^5.3.0",
|
||||
"universal-url": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/stevenvachon/isurl#readme",
|
||||
"keywords": [
|
||||
"uri",
|
||||
"url",
|
||||
"whatwg"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "isurl",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/stevenvachon/isurl.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha test --check-leaks --bail"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user