first commit
This commit is contained in:
3
build/node_modules/tlds/.npmignore
generated
vendored
Normal file
3
build/node_modules/tlds/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
update.js
|
||||
test.js
|
||||
|
||||
1048
build/node_modules/tlds/History.md
generated
vendored
Normal file
1048
build/node_modules/tlds/History.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
29
build/node_modules/tlds/Readme.md
generated
vendored
Normal file
29
build/node_modules/tlds/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
# tlds
|
||||
|
||||
List of TLDs, scraped from [ICANN](https://www.icann.org/resources/pages/tlds-2012-02-25-en)
|
||||
|
||||
## License
|
||||
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2013 Stephen Mathieson <me@stephenmathieson.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.
|
||||
7
build/node_modules/tlds/bin.js
generated
vendored
Executable file
7
build/node_modules/tlds/bin.js
generated
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var tlds = require('./');
|
||||
|
||||
for (var i = 0, len = tlds.length; i < len; i++) {
|
||||
console.log(tlds[i]);
|
||||
}
|
||||
48
build/node_modules/tlds/cron.sh
generated
vendored
Executable file
48
build/node_modules/tlds/cron.sh
generated
vendored
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/bin/sh
|
||||
|
||||
export EDITOR=true
|
||||
|
||||
if [ "x$NODE" = "x" ]; then
|
||||
NODE="node"
|
||||
fi
|
||||
if [ "x$NPM" = "x" ]; then
|
||||
NPM=$(which npm)
|
||||
fi
|
||||
if [ "x$SEMVER" = "x" ]; then
|
||||
SEMVER="$NODE $($NPM bin)/semver"
|
||||
fi
|
||||
|
||||
# update `index.js`
|
||||
$NODE update >/dev/null
|
||||
|
||||
# check if the working tree is "dirty"
|
||||
git diff --quiet index.js
|
||||
DIRTY=$?
|
||||
|
||||
# make sure the tests still pass
|
||||
$NPM test >/dev/null 2>&1
|
||||
TESTS_PASS=$?
|
||||
|
||||
if [ $DIRTY = "1" ] && [ $TESTS_PASS = "0" ]; then
|
||||
# commit the changes to the `index.js` file
|
||||
git add index.js
|
||||
git commit -m "index: update list from ICANN"
|
||||
VERSION=$($NODE -p "require('./package').version")
|
||||
INCREMENT=$($SEMVER --increment minor $VERSION)
|
||||
|
||||
# update changelog
|
||||
git changelog
|
||||
sed -i.bak "s/n.n.n/$INCREMENT/" History.md
|
||||
rm History.md.bak
|
||||
|
||||
# update package.json verison number
|
||||
$NODE -e "var fs = require('fs'); \
|
||||
var json = require('./package'); \
|
||||
json.version = '$INCREMENT'; \
|
||||
fs.writeFileSync('package.json', JSON.stringify(json, null, 2) + '\n');"
|
||||
|
||||
# stage files and publish the new tag to git and npm
|
||||
git add History.md package.json
|
||||
git release $INCREMENT
|
||||
$NPM publish
|
||||
fi;
|
||||
1543
build/node_modules/tlds/index.js
generated
vendored
Normal file
1543
build/node_modules/tlds/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
63
build/node_modules/tlds/package.json
generated
vendored
Normal file
63
build/node_modules/tlds/package.json
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"_from": "tlds@^1.187.0",
|
||||
"_id": "tlds@1.199.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-NM0jUhibJjEX4g0+1ETxOhuODIDpyvCC0A2BjxrTfMUMZ+uRZc6ZnJl9SmFtAW1s5iQgQIxezFpUij6/6OiRbg==",
|
||||
"_location": "/tlds",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "tlds@^1.187.0",
|
||||
"name": "tlds",
|
||||
"escapedName": "tlds",
|
||||
"rawSpec": "^1.187.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.187.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@pwa/manifest/url-regex"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/tlds/-/tlds-1.199.0.tgz",
|
||||
"_shasum": "a4fc8c3058216488a80aaaebb427925007e55217",
|
||||
"_spec": "tlds@^1.187.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/@pwa/manifest/node_modules/url-regex",
|
||||
"author": {
|
||||
"name": "Stephen Mathieson",
|
||||
"email": "me@stephenmathieson.com"
|
||||
},
|
||||
"bin": {
|
||||
"tlds": "bin.js"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/stephenmathieson/node-tlds/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "List of TLDs",
|
||||
"devDependencies": {
|
||||
"semver": "~4.1.0",
|
||||
"superagent": "~0.21.0"
|
||||
},
|
||||
"homepage": "https://github.com/stephenmathieson/node-tlds#readme",
|
||||
"keywords": [
|
||||
"data",
|
||||
"tld",
|
||||
"tlds",
|
||||
"top",
|
||||
"level",
|
||||
"domains"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index",
|
||||
"name": "tlds",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/stephenmathieson/node-tlds.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.199.0"
|
||||
}
|
||||
Reference in New Issue
Block a user