push all website files

This commit is contained in:
Jacob Levine
2019-01-06 13:14:45 -06:00
parent d7301e26c3
commit d2d5d4c04e
15662 changed files with 2166516 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
Copyright (c) Robert Kowalski
All rights reserved.
The BSD License
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,6 @@
[![Build Status](https://travis-ci.org/npm/npm-user-validate.png?branch=master)](https://travis-ci.org/npm/npm-user-validate)
[![devDependency Status](https://david-dm.org/npm/npm-user-validate/dev-status.png)](https://david-dm.org/npm/npm-user-validate#info=devDependencies)
# npm-user-validate
Validation for the npm client and npm-www (and probably other npm projects)

View File

@@ -0,0 +1,57 @@
exports.email = email
exports.pw = pw
exports.username = username
var requirements = exports.requirements = {
username: {
length: 'Name length must be less than or equal to 214 characters long',
lowerCase: 'Name must be lowercase',
urlSafe: 'Name may not contain non-url-safe chars',
dot: 'Name may not start with "."',
illegal: 'Name may not contain illegal character'
},
password: {},
email: {
valid: 'Email must be an email address'
}
}
var illegalCharacterRe = new RegExp('([' + [
"'"
].join() + '])')
function username (un) {
if (un !== un.toLowerCase()) {
return new Error(requirements.username.lowerCase)
}
if (un !== encodeURIComponent(un)) {
return new Error(requirements.username.urlSafe)
}
if (un.charAt(0) === '.') {
return new Error(requirements.username.dot)
}
if (un.length > 214) {
return new Error(requirements.username.length)
}
var illegal = un.match(illegalCharacterRe)
if (illegal) {
return new Error(requirements.username.illegal + ' "' + illegal[0] + '"')
}
return null
}
function email (em) {
if (!em.match(/^.+@.+\..+$/)) {
return new Error(requirements.email.valid)
}
return null
}
function pw (pw) {
return null
}

View File

@@ -0,0 +1,64 @@
{
"_args": [
[
"npm-user-validate@1.0.0",
"/Users/rebecca/code/npm"
]
],
"_from": "npm-user-validate@1.0.0",
"_id": "npm-user-validate@1.0.0",
"_inBundle": true,
"_integrity": "sha1-jOyg9c6gTU6TUZ73LQVXp1Ei6VE=",
"_location": "/npm/npm-user-validate",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "npm-user-validate@1.0.0",
"name": "npm-user-validate",
"escapedName": "npm-user-validate",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/npm"
],
"_resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "/Users/rebecca/code/npm",
"author": {
"name": "Robert Kowalski",
"email": "rok@kowalski.gd"
},
"bugs": {
"url": "https://github.com/npm/npm-user-validate/issues"
},
"description": "User validations for npm",
"devDependencies": {
"standard": "^8.4.0",
"standard-version": "^3.0.0",
"tap": "^7.1.2"
},
"files": [
"npm-user-validate.js"
],
"homepage": "https://github.com/npm/npm-user-validate#readme",
"keywords": [
"npm",
"validation",
"registry"
],
"license": "BSD-2-Clause",
"main": "npm-user-validate.js",
"name": "npm-user-validate",
"repository": {
"type": "git",
"url": "git://github.com/npm/npm-user-validate.git"
},
"scripts": {
"pretest": "standard",
"test": "tap --100 test/*.js"
},
"version": "1.0.0"
}