Updated the Survey.
This commit is contained in:
parent
f59686eae0
commit
6d3ba1a714
1203 changed files with 140782 additions and 5 deletions
33
node_modules/registry-url/index.d.ts
generated
vendored
Normal file
33
node_modules/registry-url/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
declare const registryUrl: {
|
||||
/**
|
||||
Get the set npm registry URL.
|
||||
|
||||
@param scope - Retrieve the registry URL associated with an [npm scope](https://docs.npmjs.com/misc/scope). If the provided scope is not in the user's `.npmrc` file, then `registry-url` will check for the existence of `registry`, or if that's not set, fallback to the default npm registry.
|
||||
|
||||
@example
|
||||
```
|
||||
import registryUrl = require('registry-url');
|
||||
|
||||
// # .npmrc
|
||||
// registry = 'https://custom-registry.com/'
|
||||
|
||||
console.log(registryUrl());
|
||||
//=> 'https://custom-registry.com/'
|
||||
|
||||
|
||||
// # .npmrc
|
||||
// @myco:registry = 'https://custom-registry.com/'
|
||||
|
||||
console.log(registryUrl('@myco'));
|
||||
//=> 'https://custom-registry.com/'
|
||||
```
|
||||
*/
|
||||
(scope?: string): string;
|
||||
|
||||
// TODO: Remove this for the next major release, refactor the whole definition to:
|
||||
// declare function registryUrl(scope?: string): string;
|
||||
// export = registryUrl;
|
||||
default: typeof registryUrl;
|
||||
};
|
||||
|
||||
export = registryUrl;
|
12
node_modules/registry-url/index.js
generated
vendored
Normal file
12
node_modules/registry-url/index.js
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
const rc = require('rc');
|
||||
|
||||
const registryUrl = scope => {
|
||||
const result = rc('npm', {registry: 'https://registry.npmjs.org/'});
|
||||
const url = result[`${scope}:registry`] || result.config_registry || result.registry;
|
||||
return url.slice(-1) === '/' ? url : `${url}/`;
|
||||
};
|
||||
|
||||
module.exports = registryUrl;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = registryUrl;
|
9
node_modules/registry-url/license
generated
vendored
Normal file
9
node_modules/registry-url/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
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.
|
76
node_modules/registry-url/package.json
generated
vendored
Normal file
76
node_modules/registry-url/package.json
generated
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"_from": "registry-url@^5.0.0",
|
||||
"_id": "registry-url@5.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==",
|
||||
"_location": "/registry-url",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "registry-url@^5.0.0",
|
||||
"name": "registry-url",
|
||||
"escapedName": "registry-url",
|
||||
"rawSpec": "^5.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^5.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/package-json"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz",
|
||||
"_shasum": "e98334b50d5434b81136b44ec638d9c2009c5009",
|
||||
"_spec": "registry-url@^5.0.0",
|
||||
"_where": "D:\\Documents\\UniWork\\Year 4\\Semester 2\\SEG3125\\Labs\\Lab 6\\Survey_Analysis\\node_modules\\package-json",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"ava": {
|
||||
"serial": true
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/registry-url/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"rc": "^1.2.8"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Get the set npm registry URL",
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"import-fresh": "^3.0.0",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/registry-url#readme",
|
||||
"keywords": [
|
||||
"npm",
|
||||
"conf",
|
||||
"config",
|
||||
"npmconf",
|
||||
"registry",
|
||||
"url",
|
||||
"uri",
|
||||
"scope"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "registry-url",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/registry-url.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "5.1.0"
|
||||
}
|
50
node_modules/registry-url/readme.md
generated
vendored
Normal file
50
node_modules/registry-url/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
# registry-url [](https://travis-ci.org/sindresorhus/registry-url)
|
||||
|
||||
> Get the set npm registry URL
|
||||
|
||||
It's usually `https://registry.npmjs.org/`, but it's [configurable](https://docs.npmjs.com/misc/registry).
|
||||
|
||||
Use this if you do anything with the npm registry as users will expect it to use their configured registry.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install registry-url
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```ini
|
||||
# .npmrc
|
||||
registry = 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
```js
|
||||
const registryUrl = require('registry-url');
|
||||
|
||||
console.log(registryUrl());
|
||||
//=> 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
It can also retrieve the registry URL associated with an [npm scope](https://docs.npmjs.com/misc/scope).
|
||||
|
||||
```ini
|
||||
# .npmrc
|
||||
@myco:registry = 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
```js
|
||||
const registryUrl = require('registry-url');
|
||||
|
||||
console.log(registryUrl('@myco'));
|
||||
//=> 'https://custom-registry.com/'
|
||||
```
|
||||
|
||||
If the provided scope is not in the user's `.npmrc` file, then `registry-url` will check for the existence of `registry`, or if that's not set, fallback to the default npm registry.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Loading…
Add table
Add a link
Reference in a new issue