mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
# add dist
This commit is contained in:
14
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/index.js
generated
vendored
Normal file
14
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
module.exports = function (url) {
|
||||
if (typeof url !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
url = url.trim();
|
||||
|
||||
if (/^\.*\//.test(url)) {
|
||||
return url;
|
||||
}
|
||||
|
||||
return url.replace(/^(?!(?:\w+:)?\/\/)/, 'http://');
|
||||
};
|
21
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/license
generated
vendored
Normal file
21
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
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.
|
90
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/package.json
generated
vendored
Normal file
90
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/package.json
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"prepend-http@^1.0.1",
|
||||
"/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/url-parse-lax"
|
||||
]
|
||||
],
|
||||
"_from": "prepend-http@>=1.0.1 <2.0.0",
|
||||
"_id": "prepend-http@1.0.3",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/prepend-http",
|
||||
"_nodeVersion": "3.0.0",
|
||||
"_npmUser": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
},
|
||||
"_npmVersion": "2.13.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "prepend-http",
|
||||
"raw": "prepend-http@^1.0.1",
|
||||
"rawSpec": "^1.0.1",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.1 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/url-parse-lax"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.3.tgz",
|
||||
"_shasum": "4d0d2b6f9efcf1190c23931325b4f3a9dba84869",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "prepend-http@^1.0.1",
|
||||
"_where": "/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/url-parse-lax",
|
||||
"author": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "Sindre Sorhus",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/prepend-http/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Prepend http:// to humanized URLs like todomvc.com and localhost",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "4d0d2b6f9efcf1190c23931325b4f3a9dba84869",
|
||||
"tarball": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.3.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "9a6b04cdcd761d453d477daa2985720726b663d5",
|
||||
"homepage": "https://github.com/sindresorhus/prepend-http#readme",
|
||||
"keywords": [
|
||||
"protocol",
|
||||
"scheme",
|
||||
"url",
|
||||
"uri",
|
||||
"prepend",
|
||||
"http",
|
||||
"https"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
}
|
||||
],
|
||||
"name": "prepend-http",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/prepend-http.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "1.0.3"
|
||||
}
|
31
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/readme.md
generated
vendored
Normal file
31
ng2-components/ng2-alfresco-documentslist/dist/node_modules/prepend-http/readme.md
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
# prepend-http [](https://travis-ci.org/sindresorhus/prepend-http)
|
||||
|
||||
> Prepend `http://` to humanized URLs like `todomvc.com` and `localhost`
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save prepend-http
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var prependHttp = require('prepend-http');
|
||||
|
||||
prependHttp('todomvc.com');
|
||||
//=> http://todomvc.com
|
||||
|
||||
prependHttp('localhost');
|
||||
//=> http://localhost
|
||||
|
||||
prependHttp('http://todomvc.com');
|
||||
//=> http://todomvc.com
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user