From dd1da8adc4a85eab42cff487372709244c356c3b Mon Sep 17 00:00:00 2001 From: lzx_mac <2602107437@qq.com> Date: Thu, 27 Feb 2025 05:41:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api.js | 20 + common/config.js | 4 +- node_modules/.bin/acorn | 16 +- node_modules/.bin/acorn.cmd | 7 - node_modules/.bin/eslint | 16 +- node_modules/.bin/eslint.cmd | 7 - node_modules/.bin/js-yaml | 16 +- node_modules/.bin/js-yaml.cmd | 7 - node_modules/.bin/mime | 16 +- node_modules/.bin/mime.cmd | 7 - node_modules/.bin/mkdirp | 16 +- node_modules/.bin/mkdirp.cmd | 7 - node_modules/.bin/node-which | 16 +- node_modules/.bin/node-which.cmd | 7 - node_modules/.bin/os-name | 16 +- node_modules/.bin/os-name.cmd | 7 - node_modules/.bin/osx-release | 16 +- node_modules/.bin/osx-release.cmd | 7 - node_modules/.bin/rimraf | 16 +- node_modules/.bin/rimraf.cmd | 7 - node_modules/.bin/semver | 16 +- node_modules/.bin/semver.cmd | 7 - node_modules/acorn/bin/acorn | 0 node_modules/ali-oss/dist/aliyun-oss-sdk.js | 452 ++--- node_modules/color-name/LICENSE | 14 +- node_modules/color-name/README.md | 22 +- node_modules/color-name/index.js | 304 +-- node_modules/color-name/package.json | 56 +- node_modules/dateformat/.npmignore | 4 +- node_modules/dateformat/.vs/ProjectSettings.json | 4 +- .../dateformat/.vs/config/applicationhost.config | 2062 ++++++++++---------- node_modules/dateformat/LICENSE | 40 +- node_modules/dateformat/Readme.md | 268 +-- node_modules/dateformat/lib/dateformat.js | 452 ++--- node_modules/dayjs/plugin/arraySupport.d.ts | 0 node_modules/dayjs/plugin/objectSupport.d.ts | 0 .../node_modules/.bin/semver | 16 +- .../node_modules/.bin/semver.cmd | 7 - .../eslint-config-airbnb-base/whitespace-async.js | 0 .../eslint-config-airbnb/whitespace-async.js | 0 node_modules/eslint/bin/eslint.js | 0 node_modules/esrecurse/package.json | 0 node_modules/flat-cache/changelog.md | 106 +- node_modules/is-class-hotfix/.editorconfig | 0 node_modules/is-class-hotfix/.gitattributes | 0 node_modules/is-class-hotfix/CHANGELOG.md | 0 node_modules/is-class-hotfix/LICENSE.md | 0 node_modules/is-class-hotfix/README.md | 0 node_modules/is-class-hotfix/bower.json | 0 node_modules/is-class-hotfix/is-class.js | 0 node_modules/is-class-hotfix/package.json | 0 node_modules/is-class-hotfix/test/is-class.js | 0 node_modules/js-yaml/bin/js-yaml.js | 0 node_modules/jstoxml/dist.sh | 0 node_modules/mime/cli.js | 0 node_modules/mkdirp/bin/cmd.js | 0 node_modules/os-name/cli.js | 0 node_modules/osx-release/cli.js | 0 node_modules/queue-microtask/LICENSE | 0 node_modules/rimraf/bin.js | 0 node_modules/uri-js/LICENSE | 0 node_modules/uri-js/README.md | 0 node_modules/uri-js/dist/es5/uri.all.d.ts | 0 node_modules/uri-js/dist/es5/uri.all.js | 0 node_modules/uri-js/dist/es5/uri.all.js.map | 0 node_modules/uri-js/dist/es5/uri.all.min.d.ts | 0 node_modules/uri-js/dist/es5/uri.all.min.js | 0 node_modules/uri-js/dist/es5/uri.all.min.js.map | 0 node_modules/uri-js/dist/esnext/index.d.ts | 0 node_modules/uri-js/dist/esnext/index.js | 0 node_modules/uri-js/dist/esnext/index.js.map | 0 node_modules/uri-js/dist/esnext/regexps-iri.d.ts | 0 node_modules/uri-js/dist/esnext/regexps-iri.js | 0 node_modules/uri-js/dist/esnext/regexps-iri.js.map | 0 node_modules/uri-js/dist/esnext/regexps-uri.d.ts | 0 node_modules/uri-js/dist/esnext/regexps-uri.js | 0 node_modules/uri-js/dist/esnext/regexps-uri.js.map | 0 node_modules/uri-js/dist/esnext/schemes/http.d.ts | 0 node_modules/uri-js/dist/esnext/schemes/http.js | 0 .../uri-js/dist/esnext/schemes/http.js.map | 0 node_modules/uri-js/dist/esnext/schemes/https.d.ts | 0 node_modules/uri-js/dist/esnext/schemes/https.js | 0 .../uri-js/dist/esnext/schemes/https.js.map | 0 .../uri-js/dist/esnext/schemes/mailto.d.ts | 0 node_modules/uri-js/dist/esnext/schemes/mailto.js | 0 .../uri-js/dist/esnext/schemes/mailto.js.map | 0 .../uri-js/dist/esnext/schemes/urn-uuid.d.ts | 0 .../uri-js/dist/esnext/schemes/urn-uuid.js | 0 .../uri-js/dist/esnext/schemes/urn-uuid.js.map | 0 node_modules/uri-js/dist/esnext/schemes/urn.d.ts | 0 node_modules/uri-js/dist/esnext/schemes/urn.js | 0 node_modules/uri-js/dist/esnext/schemes/urn.js.map | 0 node_modules/uri-js/dist/esnext/schemes/ws.d.ts | 0 node_modules/uri-js/dist/esnext/schemes/ws.js | 0 node_modules/uri-js/dist/esnext/schemes/ws.js.map | 0 node_modules/uri-js/dist/esnext/schemes/wss.d.ts | 0 node_modules/uri-js/dist/esnext/schemes/wss.js | 0 node_modules/uri-js/dist/esnext/schemes/wss.js.map | 0 node_modules/uri-js/dist/esnext/uri.d.ts | 0 node_modules/uri-js/dist/esnext/uri.js | 0 node_modules/uri-js/dist/esnext/uri.js.map | 0 node_modules/uri-js/dist/esnext/util.d.ts | 0 node_modules/uri-js/dist/esnext/util.js | 0 node_modules/uri-js/dist/esnext/util.js.map | 0 node_modules/uri-js/package.json | 0 node_modules/uri-js/yarn.lock | 0 node_modules/utility/index.d.ts | 1184 +++++------ node_modules/which/bin/node-which | 0 node_modules/xmlbuilder/LICENSE | 42 +- node_modules/xmlbuilder/README.md | 172 +- node_modules/xmlbuilder/appveyor.yml | 40 +- pages/home/component/enterprise.vue | 4 +- pages/home/index.vue | 3 +- pages_subpack/enterprise/index.vue | 4 +- pages_subpack/master-detail/index.vue | 18 +- pages_subpack/person/index.vue | 4 +- pages_subpack/release/component/enterprise.vue | 6 +- pages_subpack/release/component/master.vue | 8 +- pages_subpack/resume/index.vue | 101 +- pages_subpack/work-detail/index.vue | 6 +- yarn.lock | 1353 +++++++++++++ 121 files changed, 4093 insertions(+), 2913 deletions(-) mode change 100644 => 120000 node_modules/.bin/acorn delete mode 100644 node_modules/.bin/acorn.cmd mode change 100644 => 120000 node_modules/.bin/eslint delete mode 100644 node_modules/.bin/eslint.cmd mode change 100644 => 120000 node_modules/.bin/js-yaml delete mode 100644 node_modules/.bin/js-yaml.cmd mode change 100644 => 120000 node_modules/.bin/mime delete mode 100644 node_modules/.bin/mime.cmd mode change 100644 => 120000 node_modules/.bin/mkdirp delete mode 100644 node_modules/.bin/mkdirp.cmd mode change 100644 => 120000 node_modules/.bin/node-which delete mode 100644 node_modules/.bin/node-which.cmd mode change 100644 => 120000 node_modules/.bin/os-name delete mode 100644 node_modules/.bin/os-name.cmd mode change 100644 => 120000 node_modules/.bin/osx-release delete mode 100644 node_modules/.bin/osx-release.cmd mode change 100644 => 120000 node_modules/.bin/rimraf delete mode 100644 node_modules/.bin/rimraf.cmd mode change 100644 => 120000 node_modules/.bin/semver delete mode 100644 node_modules/.bin/semver.cmd mode change 100644 => 100755 node_modules/acorn/bin/acorn mode change 100644 => 100755 node_modules/dayjs/plugin/arraySupport.d.ts mode change 100644 => 100755 node_modules/dayjs/plugin/objectSupport.d.ts mode change 100644 => 120000 node_modules/eslint-config-airbnb-base/node_modules/.bin/semver delete mode 100644 node_modules/eslint-config-airbnb-base/node_modules/.bin/semver.cmd mode change 100644 => 100755 node_modules/eslint-config-airbnb-base/whitespace-async.js mode change 100644 => 100755 node_modules/eslint-config-airbnb/whitespace-async.js mode change 100644 => 100755 node_modules/eslint/bin/eslint.js mode change 100644 => 100755 node_modules/esrecurse/package.json mode change 100644 => 100755 node_modules/is-class-hotfix/.editorconfig mode change 100644 => 100755 node_modules/is-class-hotfix/.gitattributes mode change 100644 => 100755 node_modules/is-class-hotfix/CHANGELOG.md mode change 100644 => 100755 node_modules/is-class-hotfix/LICENSE.md mode change 100644 => 100755 node_modules/is-class-hotfix/README.md mode change 100644 => 100755 node_modules/is-class-hotfix/bower.json mode change 100644 => 100755 node_modules/is-class-hotfix/is-class.js mode change 100644 => 100755 node_modules/is-class-hotfix/package.json mode change 100644 => 100755 node_modules/is-class-hotfix/test/is-class.js mode change 100644 => 100755 node_modules/js-yaml/bin/js-yaml.js mode change 100644 => 100755 node_modules/jstoxml/dist.sh mode change 100644 => 100755 node_modules/mime/cli.js mode change 100644 => 100755 node_modules/mkdirp/bin/cmd.js mode change 100644 => 100755 node_modules/os-name/cli.js mode change 100644 => 100755 node_modules/osx-release/cli.js mode change 100644 => 100755 node_modules/queue-microtask/LICENSE mode change 100644 => 100755 node_modules/rimraf/bin.js mode change 100644 => 100755 node_modules/uri-js/LICENSE mode change 100644 => 100755 node_modules/uri-js/README.md mode change 100644 => 100755 node_modules/uri-js/dist/es5/uri.all.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/es5/uri.all.js mode change 100644 => 100755 node_modules/uri-js/dist/es5/uri.all.js.map mode change 100644 => 100755 node_modules/uri-js/dist/es5/uri.all.min.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/es5/uri.all.min.js mode change 100644 => 100755 node_modules/uri-js/dist/es5/uri.all.min.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/index.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/index.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/index.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/regexps-iri.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/regexps-iri.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/regexps-iri.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/regexps-uri.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/regexps-uri.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/regexps-uri.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/http.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/http.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/http.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/https.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/https.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/https.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/mailto.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/mailto.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/mailto.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/urn-uuid.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/urn.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/urn.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/urn.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/ws.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/ws.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/ws.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/wss.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/wss.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/schemes/wss.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/uri.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/uri.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/uri.js.map mode change 100644 => 100755 node_modules/uri-js/dist/esnext/util.d.ts mode change 100644 => 100755 node_modules/uri-js/dist/esnext/util.js mode change 100644 => 100755 node_modules/uri-js/dist/esnext/util.js.map mode change 100644 => 100755 node_modules/uri-js/package.json mode change 100644 => 100755 node_modules/uri-js/yarn.lock mode change 100644 => 100755 node_modules/which/bin/node-which create mode 100644 yarn.lock diff --git a/common/api.js b/common/api.js index d9ba53a..9985a44 100644 --- a/common/api.js +++ b/common/api.js @@ -30,6 +30,26 @@ export const addTask = (params) => http.post('/employ-api/employ/job/addJob', pa export const industryById = (params) => http.get('/employ-api/employ/category/queryCategoryList', {params:params}) // tb_user_role-通过id查询 export const getTaskById = (params) => http.get('/employ-api/employ/job/queryJobById', {params:params}) +//简历详情 +export const queryResumeById = (params) => http.get('/employ-api/employ/resume/queryResumeById', {params:params}) +//修改简历信息 +export const updateResume = (params) => http.post('/employ-api/employ/resume/updateResume', params) +//新增简历 +export const addResume = (params) => http.post('/employ-api/employ/resume/addResume', params) + + + + //求职信息-查询求职信息列表 +export const querySeekList = (params) => http.get('/employ-api/employ/seek/querySeekList', {params:params}) +export const querySeekById = (params) => http.get('/employ-api/employ/seek/querySeekById', {params:params}) +export const addSeek = (params) => http.post('/employ-api/employ/seek/addSeek', params) +export const updateSeek = (params) => http.post('/employ-api/employ/seek/updateSeek', params) + + + + + + // 我的头像昵称,平台客户电话等信息 export const userInfo = (params) => http.get('/employ-api/employ/user/getUserCenterData', {params:params}) diff --git a/common/config.js b/common/config.js index 78de38b..8fcf630 100644 --- a/common/config.js +++ b/common/config.js @@ -1,7 +1,7 @@ module.exports = { // baseUrl: 'http://3fl8266127.qicp.vip' - baseUrl:"https://employadmin.hhlm1688.com" - // baseUrl:"http://augcl.natapp1.cc", //测试环境 + // baseUrl:"https://employadmin.hhlm1688.com" + baseUrl:"http://h5.xzaiyp.top", //测试环境 // https://employadmin.hhlm1688.com/employ-api } diff --git a/node_modules/.bin/acorn b/node_modules/.bin/acorn deleted file mode 100644 index 558ebb9..0000000 --- a/node_modules/.bin/acorn +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../acorn/bin/acorn" "$@" - ret=$? -else - node "$basedir/../acorn/bin/acorn" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/acorn b/node_modules/.bin/acorn new file mode 120000 index 0000000..cf76760 --- /dev/null +++ b/node_modules/.bin/acorn @@ -0,0 +1 @@ +../acorn/bin/acorn \ No newline at end of file diff --git a/node_modules/.bin/acorn.cmd b/node_modules/.bin/acorn.cmd deleted file mode 100644 index 45c0c3d..0000000 --- a/node_modules/.bin/acorn.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\acorn\bin\acorn" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\acorn\bin\acorn" %* -) \ No newline at end of file diff --git a/node_modules/.bin/eslint b/node_modules/.bin/eslint deleted file mode 100644 index 9f3ac31..0000000 --- a/node_modules/.bin/eslint +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@" - ret=$? -else - node "$basedir/../eslint/bin/eslint.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/eslint b/node_modules/.bin/eslint new file mode 120000 index 0000000..810e4bc --- /dev/null +++ b/node_modules/.bin/eslint @@ -0,0 +1 @@ +../eslint/bin/eslint.js \ No newline at end of file diff --git a/node_modules/.bin/eslint.cmd b/node_modules/.bin/eslint.cmd deleted file mode 100644 index 009a9ae..0000000 --- a/node_modules/.bin/eslint.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\eslint\bin\eslint.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\eslint\bin\eslint.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/js-yaml b/node_modules/.bin/js-yaml deleted file mode 100644 index 460d9df..0000000 --- a/node_modules/.bin/js-yaml +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@" - ret=$? -else - node "$basedir/../js-yaml/bin/js-yaml.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/js-yaml b/node_modules/.bin/js-yaml new file mode 120000 index 0000000..9dbd010 --- /dev/null +++ b/node_modules/.bin/js-yaml @@ -0,0 +1 @@ +../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/node_modules/.bin/js-yaml.cmd b/node_modules/.bin/js-yaml.cmd deleted file mode 100644 index ae8e7bc..0000000 --- a/node_modules/.bin/js-yaml.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\js-yaml\bin\js-yaml.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\js-yaml\bin\js-yaml.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime deleted file mode 100644 index 0dbddf0..0000000 --- a/node_modules/.bin/mime +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../mime/cli.js" "$@" - ret=$? -else - node "$basedir/../mime/cli.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime new file mode 120000 index 0000000..fbb7ee0 --- /dev/null +++ b/node_modules/.bin/mime @@ -0,0 +1 @@ +../mime/cli.js \ No newline at end of file diff --git a/node_modules/.bin/mime.cmd b/node_modules/.bin/mime.cmd deleted file mode 100644 index 8169562..0000000 --- a/node_modules/.bin/mime.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\mime\cli.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\mime\cli.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp deleted file mode 100644 index 4b00467..0000000 --- a/node_modules/.bin/mkdirp +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@" - ret=$? -else - node "$basedir/../mkdirp/bin/cmd.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp new file mode 120000 index 0000000..017896c --- /dev/null +++ b/node_modules/.bin/mkdirp @@ -0,0 +1 @@ +../mkdirp/bin/cmd.js \ No newline at end of file diff --git a/node_modules/.bin/mkdirp.cmd b/node_modules/.bin/mkdirp.cmd deleted file mode 100644 index 0d2cdd7..0000000 --- a/node_modules/.bin/mkdirp.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\mkdirp\bin\cmd.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\mkdirp\bin\cmd.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/node-which b/node_modules/.bin/node-which deleted file mode 100644 index 645ab6c..0000000 --- a/node_modules/.bin/node-which +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../which/bin/node-which" "$@" - ret=$? -else - node "$basedir/../which/bin/node-which" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/node-which b/node_modules/.bin/node-which new file mode 120000 index 0000000..6f8415e --- /dev/null +++ b/node_modules/.bin/node-which @@ -0,0 +1 @@ +../which/bin/node-which \ No newline at end of file diff --git a/node_modules/.bin/node-which.cmd b/node_modules/.bin/node-which.cmd deleted file mode 100644 index 9985519..0000000 --- a/node_modules/.bin/node-which.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\which\bin\node-which" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\which\bin\node-which" %* -) \ No newline at end of file diff --git a/node_modules/.bin/os-name b/node_modules/.bin/os-name deleted file mode 100644 index 19d70b4..0000000 --- a/node_modules/.bin/os-name +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../os-name/cli.js" "$@" - ret=$? -else - node "$basedir/../os-name/cli.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/os-name b/node_modules/.bin/os-name new file mode 120000 index 0000000..c675c27 --- /dev/null +++ b/node_modules/.bin/os-name @@ -0,0 +1 @@ +../os-name/cli.js \ No newline at end of file diff --git a/node_modules/.bin/os-name.cmd b/node_modules/.bin/os-name.cmd deleted file mode 100644 index 5afe1d8..0000000 --- a/node_modules/.bin/os-name.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\os-name\cli.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\os-name\cli.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/osx-release b/node_modules/.bin/osx-release deleted file mode 100644 index cd54230..0000000 --- a/node_modules/.bin/osx-release +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../osx-release/cli.js" "$@" - ret=$? -else - node "$basedir/../osx-release/cli.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/osx-release b/node_modules/.bin/osx-release new file mode 120000 index 0000000..6842b7e --- /dev/null +++ b/node_modules/.bin/osx-release @@ -0,0 +1 @@ +../osx-release/cli.js \ No newline at end of file diff --git a/node_modules/.bin/osx-release.cmd b/node_modules/.bin/osx-release.cmd deleted file mode 100644 index f7fef66..0000000 --- a/node_modules/.bin/osx-release.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\osx-release\cli.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\osx-release\cli.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf deleted file mode 100644 index 3cebd6e..0000000 --- a/node_modules/.bin/rimraf +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../rimraf/bin.js" "$@" - ret=$? -else - node "$basedir/../rimraf/bin.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf new file mode 120000 index 0000000..4cd49a4 --- /dev/null +++ b/node_modules/.bin/rimraf @@ -0,0 +1 @@ +../rimraf/bin.js \ No newline at end of file diff --git a/node_modules/.bin/rimraf.cmd b/node_modules/.bin/rimraf.cmd deleted file mode 100644 index 9333ec6..0000000 --- a/node_modules/.bin/rimraf.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\rimraf\bin.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\rimraf\bin.js" %* -) \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver deleted file mode 100644 index 6f6e6c7..0000000 --- a/node_modules/.bin/semver +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../semver/bin/semver.js" "$@" - ret=$? -else - node "$basedir/../semver/bin/semver.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver new file mode 120000 index 0000000..5aaadf4 --- /dev/null +++ b/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/.bin/semver.cmd b/node_modules/.bin/semver.cmd deleted file mode 100644 index 152bc92..0000000 --- a/node_modules/.bin/semver.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\semver\bin\semver.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\semver\bin\semver.js" %* -) \ No newline at end of file diff --git a/node_modules/acorn/bin/acorn b/node_modules/acorn/bin/acorn old mode 100644 new mode 100755 diff --git a/node_modules/ali-oss/dist/aliyun-oss-sdk.js b/node_modules/ali-oss/dist/aliyun-oss-sdk.js index 81174cb..18c523f 100644 --- a/node_modules/ali-oss/dist/aliyun-oss-sdk.js +++ b/node_modules/ali-oss/dist/aliyun-oss-sdk.js @@ -20116,232 +20116,232 @@ function objectToString(o) { } },{"buffer":103}],383:[function(require,module,exports){ -/* - * Date Format 1.2.3 - * (c) 2007-2009 Steven Levithan - * MIT license - * - * Includes enhancements by Scott Trenda - * and Kris Kowal - * - * Accepts a date, a mask, or a date and a mask. - * Returns a formatted version of the given date. - * The date defaults to the current date/time. - * The mask defaults to dateFormat.masks.default. - */ - -(function(global) { - 'use strict'; - - var dateFormat = (function() { - var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; - var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; - var timezoneClip = /[^-+\dA-Z]/g; - - // Regexes and supporting functions are cached through closure - return function (date, mask, utc, gmt) { - - // You can't provide utc if you skip other args (use the 'UTC:' mask prefix) - if (arguments.length === 1 && kindOf(date) === 'string' && !/\d/.test(date)) { - mask = date; - date = undefined; - } - - date = date || new Date; - - if(!(date instanceof Date)) { - date = new Date(date); - } - - if (isNaN(date)) { - throw TypeError('Invalid date'); - } - - mask = String(dateFormat.masks[mask] || mask || dateFormat.masks['default']); - - // Allow setting the utc/gmt argument via the mask - var maskSlice = mask.slice(0, 4); - if (maskSlice === 'UTC:' || maskSlice === 'GMT:') { - mask = mask.slice(4); - utc = true; - if (maskSlice === 'GMT:') { - gmt = true; - } - } - - var _ = utc ? 'getUTC' : 'get'; - var d = date[_ + 'Date'](); - var D = date[_ + 'Day'](); - var m = date[_ + 'Month'](); - var y = date[_ + 'FullYear'](); - var H = date[_ + 'Hours'](); - var M = date[_ + 'Minutes'](); - var s = date[_ + 'Seconds'](); - var L = date[_ + 'Milliseconds'](); - var o = utc ? 0 : date.getTimezoneOffset(); - var W = getWeek(date); - var N = getDayOfWeek(date); - var flags = { - d: d, - dd: pad(d), - ddd: dateFormat.i18n.dayNames[D], - dddd: dateFormat.i18n.dayNames[D + 7], - m: m + 1, - mm: pad(m + 1), - mmm: dateFormat.i18n.monthNames[m], - mmmm: dateFormat.i18n.monthNames[m + 12], - yy: String(y).slice(2), - yyyy: y, - h: H % 12 || 12, - hh: pad(H % 12 || 12), - H: H, - HH: pad(H), - M: M, - MM: pad(M), - s: s, - ss: pad(s), - l: pad(L, 3), - L: pad(Math.round(L / 10)), - t: H < 12 ? 'a' : 'p', - tt: H < 12 ? 'am' : 'pm', - T: H < 12 ? 'A' : 'P', - TT: H < 12 ? 'AM' : 'PM', - Z: gmt ? 'GMT' : utc ? 'UTC' : (String(date).match(timezone) || ['']).pop().replace(timezoneClip, ''), - o: (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), - S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], - W: W, - N: N - }; - - return mask.replace(token, function (match) { - if (match in flags) { - return flags[match]; - } - return match.slice(1, match.length - 1); - }); - }; - })(); - - dateFormat.masks = { - 'default': 'ddd mmm dd yyyy HH:MM:ss', - 'shortDate': 'm/d/yy', - 'mediumDate': 'mmm d, yyyy', - 'longDate': 'mmmm d, yyyy', - 'fullDate': 'dddd, mmmm d, yyyy', - 'shortTime': 'h:MM TT', - 'mediumTime': 'h:MM:ss TT', - 'longTime': 'h:MM:ss TT Z', - 'isoDate': 'yyyy-mm-dd', - 'isoTime': 'HH:MM:ss', - 'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso', - 'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'', - 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z' - }; - - // Internationalization strings - dateFormat.i18n = { - dayNames: [ - 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', - 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' - ], - monthNames: [ - 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', - 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' - ] - }; - -function pad(val, len) { - val = String(val); - len = len || 2; - while (val.length < len) { - val = '0' + val; - } - return val; -} - -/** - * Get the ISO 8601 week number - * Based on comments from - * http://techblog.procurios.nl/k/n618/news/view/33796/14863/Calculate-ISO-8601-week-and-year-in-javascript.html - * - * @param {Object} `date` - * @return {Number} - */ -function getWeek(date) { - // Remove time components of date - var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); - - // Change date to Thursday same week - targetThursday.setDate(targetThursday.getDate() - ((targetThursday.getDay() + 6) % 7) + 3); - - // Take January 4th as it is always in week 1 (see ISO 8601) - var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); - - // Change date to Thursday same week - firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3); - - // Check if daylight-saving-time-switch occurred and correct for it - var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); - targetThursday.setHours(targetThursday.getHours() - ds); - - // Number of weeks between target Thursday and first Thursday - var weekDiff = (targetThursday - firstThursday) / (86400000*7); - return 1 + Math.floor(weekDiff); -} - -/** - * Get ISO-8601 numeric representation of the day of the week - * 1 (for Monday) through 7 (for Sunday) - * - * @param {Object} `date` - * @return {Number} - */ -function getDayOfWeek(date) { - var dow = date.getDay(); - if(dow === 0) { - dow = 7; - } - return dow; -} - -/** - * kind-of shortcut - * @param {*} val - * @return {String} - */ -function kindOf(val) { - if (val === null) { - return 'null'; - } - - if (val === undefined) { - return 'undefined'; - } - - if (typeof val !== 'object') { - return typeof val; - } - - if (Array.isArray(val)) { - return 'array'; - } - - return {}.toString.call(val) - .slice(8, -1).toLowerCase(); -}; - - - - if (typeof define === 'function' && define.amd) { - define(function () { - return dateFormat; - }); - } else if (typeof exports === 'object') { - module.exports = dateFormat; - } else { - global.dateFormat = dateFormat; - } -})(this); +/* + * Date Format 1.2.3 + * (c) 2007-2009 Steven Levithan + * MIT license + * + * Includes enhancements by Scott Trenda + * and Kris Kowal + * + * Accepts a date, a mask, or a date and a mask. + * Returns a formatted version of the given date. + * The date defaults to the current date/time. + * The mask defaults to dateFormat.masks.default. + */ + +(function(global) { + 'use strict'; + + var dateFormat = (function() { + var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; + var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; + var timezoneClip = /[^-+\dA-Z]/g; + + // Regexes and supporting functions are cached through closure + return function (date, mask, utc, gmt) { + + // You can't provide utc if you skip other args (use the 'UTC:' mask prefix) + if (arguments.length === 1 && kindOf(date) === 'string' && !/\d/.test(date)) { + mask = date; + date = undefined; + } + + date = date || new Date; + + if(!(date instanceof Date)) { + date = new Date(date); + } + + if (isNaN(date)) { + throw TypeError('Invalid date'); + } + + mask = String(dateFormat.masks[mask] || mask || dateFormat.masks['default']); + + // Allow setting the utc/gmt argument via the mask + var maskSlice = mask.slice(0, 4); + if (maskSlice === 'UTC:' || maskSlice === 'GMT:') { + mask = mask.slice(4); + utc = true; + if (maskSlice === 'GMT:') { + gmt = true; + } + } + + var _ = utc ? 'getUTC' : 'get'; + var d = date[_ + 'Date'](); + var D = date[_ + 'Day'](); + var m = date[_ + 'Month'](); + var y = date[_ + 'FullYear'](); + var H = date[_ + 'Hours'](); + var M = date[_ + 'Minutes'](); + var s = date[_ + 'Seconds'](); + var L = date[_ + 'Milliseconds'](); + var o = utc ? 0 : date.getTimezoneOffset(); + var W = getWeek(date); + var N = getDayOfWeek(date); + var flags = { + d: d, + dd: pad(d), + ddd: dateFormat.i18n.dayNames[D], + dddd: dateFormat.i18n.dayNames[D + 7], + m: m + 1, + mm: pad(m + 1), + mmm: dateFormat.i18n.monthNames[m], + mmmm: dateFormat.i18n.monthNames[m + 12], + yy: String(y).slice(2), + yyyy: y, + h: H % 12 || 12, + hh: pad(H % 12 || 12), + H: H, + HH: pad(H), + M: M, + MM: pad(M), + s: s, + ss: pad(s), + l: pad(L, 3), + L: pad(Math.round(L / 10)), + t: H < 12 ? 'a' : 'p', + tt: H < 12 ? 'am' : 'pm', + T: H < 12 ? 'A' : 'P', + TT: H < 12 ? 'AM' : 'PM', + Z: gmt ? 'GMT' : utc ? 'UTC' : (String(date).match(timezone) || ['']).pop().replace(timezoneClip, ''), + o: (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), + S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], + W: W, + N: N + }; + + return mask.replace(token, function (match) { + if (match in flags) { + return flags[match]; + } + return match.slice(1, match.length - 1); + }); + }; + })(); + + dateFormat.masks = { + 'default': 'ddd mmm dd yyyy HH:MM:ss', + 'shortDate': 'm/d/yy', + 'mediumDate': 'mmm d, yyyy', + 'longDate': 'mmmm d, yyyy', + 'fullDate': 'dddd, mmmm d, yyyy', + 'shortTime': 'h:MM TT', + 'mediumTime': 'h:MM:ss TT', + 'longTime': 'h:MM:ss TT Z', + 'isoDate': 'yyyy-mm-dd', + 'isoTime': 'HH:MM:ss', + 'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso', + 'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'', + 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z' + }; + + // Internationalization strings + dateFormat.i18n = { + dayNames: [ + 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', + 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' + ], + monthNames: [ + 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', + 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' + ] + }; + +function pad(val, len) { + val = String(val); + len = len || 2; + while (val.length < len) { + val = '0' + val; + } + return val; +} + +/** + * Get the ISO 8601 week number + * Based on comments from + * http://techblog.procurios.nl/k/n618/news/view/33796/14863/Calculate-ISO-8601-week-and-year-in-javascript.html + * + * @param {Object} `date` + * @return {Number} + */ +function getWeek(date) { + // Remove time components of date + var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); + + // Change date to Thursday same week + targetThursday.setDate(targetThursday.getDate() - ((targetThursday.getDay() + 6) % 7) + 3); + + // Take January 4th as it is always in week 1 (see ISO 8601) + var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); + + // Change date to Thursday same week + firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3); + + // Check if daylight-saving-time-switch occurred and correct for it + var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); + targetThursday.setHours(targetThursday.getHours() - ds); + + // Number of weeks between target Thursday and first Thursday + var weekDiff = (targetThursday - firstThursday) / (86400000*7); + return 1 + Math.floor(weekDiff); +} + +/** + * Get ISO-8601 numeric representation of the day of the week + * 1 (for Monday) through 7 (for Sunday) + * + * @param {Object} `date` + * @return {Number} + */ +function getDayOfWeek(date) { + var dow = date.getDay(); + if(dow === 0) { + dow = 7; + } + return dow; +} + +/** + * kind-of shortcut + * @param {*} val + * @return {String} + */ +function kindOf(val) { + if (val === null) { + return 'null'; + } + + if (val === undefined) { + return 'undefined'; + } + + if (typeof val !== 'object') { + return typeof val; + } + + if (Array.isArray(val)) { + return 'array'; + } + + return {}.toString.call(val) + .slice(8, -1).toLowerCase(); +}; + + + + if (typeof define === 'function' && define.amd) { + define(function () { + return dateFormat; + }); + } else if (typeof exports === 'object') { + module.exports = dateFormat; + } else { + global.dateFormat = dateFormat; + } +})(this); },{}],384:[function(require,module,exports){ 'use strict'; diff --git a/node_modules/color-name/LICENSE b/node_modules/color-name/LICENSE index 4d9802a..c6b1001 100644 --- a/node_modules/color-name/LICENSE +++ b/node_modules/color-name/LICENSE @@ -1,8 +1,8 @@ -The MIT License (MIT) -Copyright (c) 2015 Dmitry Ivanov - -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 MIT License (MIT) +Copyright (c) 2015 Dmitry Ivanov + +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. \ No newline at end of file diff --git a/node_modules/color-name/README.md b/node_modules/color-name/README.md index 3611a6b..932b979 100644 --- a/node_modules/color-name/README.md +++ b/node_modules/color-name/README.md @@ -1,11 +1,11 @@ -A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. - -[![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) - - -```js -var colors = require('color-name'); -colors.red //[255,0,0] -``` - - +A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. + +[![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) + + +```js +var colors = require('color-name'); +colors.red //[255,0,0] +``` + + diff --git a/node_modules/color-name/index.js b/node_modules/color-name/index.js index e42aa68..b7c198a 100644 --- a/node_modules/color-name/index.js +++ b/node_modules/color-name/index.js @@ -1,152 +1,152 @@ -'use strict' - -module.exports = { - "aliceblue": [240, 248, 255], - "antiquewhite": [250, 235, 215], - "aqua": [0, 255, 255], - "aquamarine": [127, 255, 212], - "azure": [240, 255, 255], - "beige": [245, 245, 220], - "bisque": [255, 228, 196], - "black": [0, 0, 0], - "blanchedalmond": [255, 235, 205], - "blue": [0, 0, 255], - "blueviolet": [138, 43, 226], - "brown": [165, 42, 42], - "burlywood": [222, 184, 135], - "cadetblue": [95, 158, 160], - "chartreuse": [127, 255, 0], - "chocolate": [210, 105, 30], - "coral": [255, 127, 80], - "cornflowerblue": [100, 149, 237], - "cornsilk": [255, 248, 220], - "crimson": [220, 20, 60], - "cyan": [0, 255, 255], - "darkblue": [0, 0, 139], - "darkcyan": [0, 139, 139], - "darkgoldenrod": [184, 134, 11], - "darkgray": [169, 169, 169], - "darkgreen": [0, 100, 0], - "darkgrey": [169, 169, 169], - "darkkhaki": [189, 183, 107], - "darkmagenta": [139, 0, 139], - "darkolivegreen": [85, 107, 47], - "darkorange": [255, 140, 0], - "darkorchid": [153, 50, 204], - "darkred": [139, 0, 0], - "darksalmon": [233, 150, 122], - "darkseagreen": [143, 188, 143], - "darkslateblue": [72, 61, 139], - "darkslategray": [47, 79, 79], - "darkslategrey": [47, 79, 79], - "darkturquoise": [0, 206, 209], - "darkviolet": [148, 0, 211], - "deeppink": [255, 20, 147], - "deepskyblue": [0, 191, 255], - "dimgray": [105, 105, 105], - "dimgrey": [105, 105, 105], - "dodgerblue": [30, 144, 255], - "firebrick": [178, 34, 34], - "floralwhite": [255, 250, 240], - "forestgreen": [34, 139, 34], - "fuchsia": [255, 0, 255], - "gainsboro": [220, 220, 220], - "ghostwhite": [248, 248, 255], - "gold": [255, 215, 0], - "goldenrod": [218, 165, 32], - "gray": [128, 128, 128], - "green": [0, 128, 0], - "greenyellow": [173, 255, 47], - "grey": [128, 128, 128], - "honeydew": [240, 255, 240], - "hotpink": [255, 105, 180], - "indianred": [205, 92, 92], - "indigo": [75, 0, 130], - "ivory": [255, 255, 240], - "khaki": [240, 230, 140], - "lavender": [230, 230, 250], - "lavenderblush": [255, 240, 245], - "lawngreen": [124, 252, 0], - "lemonchiffon": [255, 250, 205], - "lightblue": [173, 216, 230], - "lightcoral": [240, 128, 128], - "lightcyan": [224, 255, 255], - "lightgoldenrodyellow": [250, 250, 210], - "lightgray": [211, 211, 211], - "lightgreen": [144, 238, 144], - "lightgrey": [211, 211, 211], - "lightpink": [255, 182, 193], - "lightsalmon": [255, 160, 122], - "lightseagreen": [32, 178, 170], - "lightskyblue": [135, 206, 250], - "lightslategray": [119, 136, 153], - "lightslategrey": [119, 136, 153], - "lightsteelblue": [176, 196, 222], - "lightyellow": [255, 255, 224], - "lime": [0, 255, 0], - "limegreen": [50, 205, 50], - "linen": [250, 240, 230], - "magenta": [255, 0, 255], - "maroon": [128, 0, 0], - "mediumaquamarine": [102, 205, 170], - "mediumblue": [0, 0, 205], - "mediumorchid": [186, 85, 211], - "mediumpurple": [147, 112, 219], - "mediumseagreen": [60, 179, 113], - "mediumslateblue": [123, 104, 238], - "mediumspringgreen": [0, 250, 154], - "mediumturquoise": [72, 209, 204], - "mediumvioletred": [199, 21, 133], - "midnightblue": [25, 25, 112], - "mintcream": [245, 255, 250], - "mistyrose": [255, 228, 225], - "moccasin": [255, 228, 181], - "navajowhite": [255, 222, 173], - "navy": [0, 0, 128], - "oldlace": [253, 245, 230], - "olive": [128, 128, 0], - "olivedrab": [107, 142, 35], - "orange": [255, 165, 0], - "orangered": [255, 69, 0], - "orchid": [218, 112, 214], - "palegoldenrod": [238, 232, 170], - "palegreen": [152, 251, 152], - "paleturquoise": [175, 238, 238], - "palevioletred": [219, 112, 147], - "papayawhip": [255, 239, 213], - "peachpuff": [255, 218, 185], - "peru": [205, 133, 63], - "pink": [255, 192, 203], - "plum": [221, 160, 221], - "powderblue": [176, 224, 230], - "purple": [128, 0, 128], - "rebeccapurple": [102, 51, 153], - "red": [255, 0, 0], - "rosybrown": [188, 143, 143], - "royalblue": [65, 105, 225], - "saddlebrown": [139, 69, 19], - "salmon": [250, 128, 114], - "sandybrown": [244, 164, 96], - "seagreen": [46, 139, 87], - "seashell": [255, 245, 238], - "sienna": [160, 82, 45], - "silver": [192, 192, 192], - "skyblue": [135, 206, 235], - "slateblue": [106, 90, 205], - "slategray": [112, 128, 144], - "slategrey": [112, 128, 144], - "snow": [255, 250, 250], - "springgreen": [0, 255, 127], - "steelblue": [70, 130, 180], - "tan": [210, 180, 140], - "teal": [0, 128, 128], - "thistle": [216, 191, 216], - "tomato": [255, 99, 71], - "turquoise": [64, 224, 208], - "violet": [238, 130, 238], - "wheat": [245, 222, 179], - "white": [255, 255, 255], - "whitesmoke": [245, 245, 245], - "yellow": [255, 255, 0], - "yellowgreen": [154, 205, 50] -}; +'use strict' + +module.exports = { + "aliceblue": [240, 248, 255], + "antiquewhite": [250, 235, 215], + "aqua": [0, 255, 255], + "aquamarine": [127, 255, 212], + "azure": [240, 255, 255], + "beige": [245, 245, 220], + "bisque": [255, 228, 196], + "black": [0, 0, 0], + "blanchedalmond": [255, 235, 205], + "blue": [0, 0, 255], + "blueviolet": [138, 43, 226], + "brown": [165, 42, 42], + "burlywood": [222, 184, 135], + "cadetblue": [95, 158, 160], + "chartreuse": [127, 255, 0], + "chocolate": [210, 105, 30], + "coral": [255, 127, 80], + "cornflowerblue": [100, 149, 237], + "cornsilk": [255, 248, 220], + "crimson": [220, 20, 60], + "cyan": [0, 255, 255], + "darkblue": [0, 0, 139], + "darkcyan": [0, 139, 139], + "darkgoldenrod": [184, 134, 11], + "darkgray": [169, 169, 169], + "darkgreen": [0, 100, 0], + "darkgrey": [169, 169, 169], + "darkkhaki": [189, 183, 107], + "darkmagenta": [139, 0, 139], + "darkolivegreen": [85, 107, 47], + "darkorange": [255, 140, 0], + "darkorchid": [153, 50, 204], + "darkred": [139, 0, 0], + "darksalmon": [233, 150, 122], + "darkseagreen": [143, 188, 143], + "darkslateblue": [72, 61, 139], + "darkslategray": [47, 79, 79], + "darkslategrey": [47, 79, 79], + "darkturquoise": [0, 206, 209], + "darkviolet": [148, 0, 211], + "deeppink": [255, 20, 147], + "deepskyblue": [0, 191, 255], + "dimgray": [105, 105, 105], + "dimgrey": [105, 105, 105], + "dodgerblue": [30, 144, 255], + "firebrick": [178, 34, 34], + "floralwhite": [255, 250, 240], + "forestgreen": [34, 139, 34], + "fuchsia": [255, 0, 255], + "gainsboro": [220, 220, 220], + "ghostwhite": [248, 248, 255], + "gold": [255, 215, 0], + "goldenrod": [218, 165, 32], + "gray": [128, 128, 128], + "green": [0, 128, 0], + "greenyellow": [173, 255, 47], + "grey": [128, 128, 128], + "honeydew": [240, 255, 240], + "hotpink": [255, 105, 180], + "indianred": [205, 92, 92], + "indigo": [75, 0, 130], + "ivory": [255, 255, 240], + "khaki": [240, 230, 140], + "lavender": [230, 230, 250], + "lavenderblush": [255, 240, 245], + "lawngreen": [124, 252, 0], + "lemonchiffon": [255, 250, 205], + "lightblue": [173, 216, 230], + "lightcoral": [240, 128, 128], + "lightcyan": [224, 255, 255], + "lightgoldenrodyellow": [250, 250, 210], + "lightgray": [211, 211, 211], + "lightgreen": [144, 238, 144], + "lightgrey": [211, 211, 211], + "lightpink": [255, 182, 193], + "lightsalmon": [255, 160, 122], + "lightseagreen": [32, 178, 170], + "lightskyblue": [135, 206, 250], + "lightslategray": [119, 136, 153], + "lightslategrey": [119, 136, 153], + "lightsteelblue": [176, 196, 222], + "lightyellow": [255, 255, 224], + "lime": [0, 255, 0], + "limegreen": [50, 205, 50], + "linen": [250, 240, 230], + "magenta": [255, 0, 255], + "maroon": [128, 0, 0], + "mediumaquamarine": [102, 205, 170], + "mediumblue": [0, 0, 205], + "mediumorchid": [186, 85, 211], + "mediumpurple": [147, 112, 219], + "mediumseagreen": [60, 179, 113], + "mediumslateblue": [123, 104, 238], + "mediumspringgreen": [0, 250, 154], + "mediumturquoise": [72, 209, 204], + "mediumvioletred": [199, 21, 133], + "midnightblue": [25, 25, 112], + "mintcream": [245, 255, 250], + "mistyrose": [255, 228, 225], + "moccasin": [255, 228, 181], + "navajowhite": [255, 222, 173], + "navy": [0, 0, 128], + "oldlace": [253, 245, 230], + "olive": [128, 128, 0], + "olivedrab": [107, 142, 35], + "orange": [255, 165, 0], + "orangered": [255, 69, 0], + "orchid": [218, 112, 214], + "palegoldenrod": [238, 232, 170], + "palegreen": [152, 251, 152], + "paleturquoise": [175, 238, 238], + "palevioletred": [219, 112, 147], + "papayawhip": [255, 239, 213], + "peachpuff": [255, 218, 185], + "peru": [205, 133, 63], + "pink": [255, 192, 203], + "plum": [221, 160, 221], + "powderblue": [176, 224, 230], + "purple": [128, 0, 128], + "rebeccapurple": [102, 51, 153], + "red": [255, 0, 0], + "rosybrown": [188, 143, 143], + "royalblue": [65, 105, 225], + "saddlebrown": [139, 69, 19], + "salmon": [250, 128, 114], + "sandybrown": [244, 164, 96], + "seagreen": [46, 139, 87], + "seashell": [255, 245, 238], + "sienna": [160, 82, 45], + "silver": [192, 192, 192], + "skyblue": [135, 206, 235], + "slateblue": [106, 90, 205], + "slategray": [112, 128, 144], + "slategrey": [112, 128, 144], + "snow": [255, 250, 250], + "springgreen": [0, 255, 127], + "steelblue": [70, 130, 180], + "tan": [210, 180, 140], + "teal": [0, 128, 128], + "thistle": [216, 191, 216], + "tomato": [255, 99, 71], + "turquoise": [64, 224, 208], + "violet": [238, 130, 238], + "wheat": [245, 222, 179], + "white": [255, 255, 255], + "whitesmoke": [245, 245, 245], + "yellow": [255, 255, 0], + "yellowgreen": [154, 205, 50] +}; diff --git a/node_modules/color-name/package.json b/node_modules/color-name/package.json index 7acc902..782dd82 100644 --- a/node_modules/color-name/package.json +++ b/node_modules/color-name/package.json @@ -1,28 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" -} +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" +} diff --git a/node_modules/dateformat/.npmignore b/node_modules/dateformat/.npmignore index efab07f..249c66e 100644 --- a/node_modules/dateformat/.npmignore +++ b/node_modules/dateformat/.npmignore @@ -1,2 +1,2 @@ -test -.travis.yml +test +.travis.yml diff --git a/node_modules/dateformat/.vs/ProjectSettings.json b/node_modules/dateformat/.vs/ProjectSettings.json index f8b4888..866f1e1 100644 --- a/node_modules/dateformat/.vs/ProjectSettings.json +++ b/node_modules/dateformat/.vs/ProjectSettings.json @@ -1,3 +1,3 @@ -{ - "CurrentProjectSetting": null +{ + "CurrentProjectSetting": null } \ No newline at end of file diff --git a/node_modules/dateformat/.vs/config/applicationhost.config b/node_modules/dateformat/.vs/config/applicationhost.config index 4b9bf47..5d4c0ab 100644 --- a/node_modules/dateformat/.vs/config/applicationhost.config +++ b/node_modules/dateformat/.vs/config/applicationhost.config @@ -1,1031 +1,1031 @@ - - - - - - - -
-
-
-
-
-
-
-
- - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
- -
-
-
-
-
- -
-
-
- -
-
- -
-
- -
-
-
- - -
-
-
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/node_modules/dateformat/LICENSE b/node_modules/dateformat/LICENSE index 57d44e2..1044d2f 100644 --- a/node_modules/dateformat/LICENSE +++ b/node_modules/dateformat/LICENSE @@ -1,20 +1,20 @@ -(c) 2007-2009 Steven Levithan - -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. +(c) 2007-2009 Steven Levithan + +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. diff --git a/node_modules/dateformat/Readme.md b/node_modules/dateformat/Readme.md index f16f789..41d8ffc 100644 --- a/node_modules/dateformat/Readme.md +++ b/node_modules/dateformat/Readme.md @@ -1,134 +1,134 @@ -# dateformat - -A node.js package for Steven Levithan's excellent [dateFormat()][dateformat] function. - -[![Build Status](https://travis-ci.org/felixge/node-dateformat.svg)](https://travis-ci.org/felixge/node-dateformat) - -## Modifications - -* Removed the `Date.prototype.format` method. Sorry folks, but extending native prototypes is for suckers. -* Added a `module.exports = dateFormat;` statement at the bottom -* Added the placeholder `N` to get the ISO 8601 numeric representation of the day of the week - -## Installation - -```bash -$ npm install dateformat -$ dateformat --help -``` - -## Usage - -As taken from Steven's post, modified to match the Modifications listed above: -```js -var dateFormat = require('dateformat'); -var now = new Date(); - -// Basic usage -dateFormat(now, "dddd, mmmm dS, yyyy, h:MM:ss TT"); -// Saturday, June 9th, 2007, 5:46:21 PM - -// You can use one of several named masks -dateFormat(now, "isoDateTime"); -// 2007-06-09T17:46:21 - -// ...Or add your own -dateFormat.masks.hammerTime = 'HH:MM! "Can\'t touch this!"'; -dateFormat(now, "hammerTime"); -// 17:46! Can't touch this! - -// You can also provide the date as a string -dateFormat("Jun 9 2007", "fullDate"); -// Saturday, June 9, 2007 - -// Note that if you don't include the mask argument, -// dateFormat.masks.default is used -dateFormat(now); -// Sat Jun 09 2007 17:46:21 - -// And if you don't include the date argument, -// the current date and time is used -dateFormat(); -// Sat Jun 09 2007 17:46:22 - -// You can also skip the date argument (as long as your mask doesn't -// contain any numbers), in which case the current date/time is used -dateFormat("longTime"); -// 5:46:22 PM EST - -// And finally, you can convert local time to UTC time. Simply pass in -// true as an additional argument (no argument skipping allowed in this case): -dateFormat(now, "longTime", true); -// 10:46:21 PM UTC - -// ...Or add the prefix "UTC:" or "GMT:" to your mask. -dateFormat(now, "UTC:h:MM:ss TT Z"); -// 10:46:21 PM UTC - -// You can also get the ISO 8601 week of the year: -dateFormat(now, "W"); -// 42 - -// and also get the ISO 8601 numeric representation of the day of the week: -dateFormat(now,"N"); -// 6 -``` - -### Mask options - -Mask | Description ----- | ----------- -`d` | Day of the month as digits; no leading zero for single-digit days. -`dd` | Day of the month as digits; leading zero for single-digit days. -`ddd` | Day of the week as a three-letter abbreviation. -`dddd` | Day of the week as its full name. -`m` | Month as digits; no leading zero for single-digit months. -`mm` | Month as digits; leading zero for single-digit months. -`mmm` | Month as a three-letter abbreviation. -`mmmm` | Month as its full name. -`yy` | Year as last two digits; leading zero for years less than 10. -`yyyy` | Year represented by four digits. -`h` | Hours; no leading zero for single-digit hours (12-hour clock). -`hh` | Hours; leading zero for single-digit hours (12-hour clock). -`H` | Hours; no leading zero for single-digit hours (24-hour clock). -`HH` | Hours; leading zero for single-digit hours (24-hour clock). -`M` | Minutes; no leading zero for single-digit minutes. -`MM` | Minutes; leading zero for single-digit minutes. -`N` | ISO 8601 numeric representation of the day of the week. -`o` | GMT/UTC timezone offset, e.g. -0500 or +0230. -`s` | Seconds; no leading zero for single-digit seconds. -`ss` | Seconds; leading zero for single-digit seconds. -`S` | The date's ordinal suffix (st, nd, rd, or th). Works well with `d`. -`l` | Milliseconds; gives 3 digits. -`L` | Milliseconds; gives 2 digits. -`t` | Lowercase, single-character time marker string: a or p. -`tt` | Lowercase, two-character time marker string: am or pm. -`T` | Uppercase, single-character time marker string: A or P. -`TT` | Uppercase, two-character time marker string: AM or PM. -`W` | ISO 8601 week number of the year, e.g. 42 -`Z` | US timezone abbreviation, e.g. EST or MDT. With non-US timezones or in the -`'...'`, `"..."` | Literal character sequence. Surrounding quotes are removed. -`UTC:` | Must be the first four characters of the mask. Converts the date from local time to UTC/GMT/Zulu time before applying the mask. The "UTC:" prefix is removed. - -### Named Formats - -Name | Mask | Example ----- | ---- | ------- -`default` | `ddd mmm dd yyyy HH:MM:ss` | Sat Jun 09 2007 17:46:21 -`shortDate` | `m/d/yy` | 6/9/07 -`mediumDate` | `mmm d, yyyy` | Jun 9, 2007 -`longDate` | `mmmm d, yyyy` | June 9, 2007 -`fullDate` | `dddd, mmmm d, yyyy` | Saturday, June 9, 2007 -`shortTime` | `h:MM TT` | 5:46 PM -`mediumTime` | `h:MM:ss TT` | 5:46:21 PM -`longTime` | `h:MM:ss TT Z` | 5:46:21 PM EST -`isoDate` | `yyyy-mm-dd` | 2007-06-09 -`isoTime` | `HH:MM:ss` | 17:46:21 -`isoDateTime` | `yyyy-mm-dd'T'HH:MM:ss` | 2007-06-09T17:46:21 -`isoUtcDateTime` | `UTC:yyyy-mm-dd'T'HH:MM:ss'Z'` | 2007-06-09T22:46:21Z -## License - -(c) 2007-2009 Steven Levithan [stevenlevithan.com][stevenlevithan], MIT license. - -[dateformat]: http://blog.stevenlevithan.com/archives/date-time-format -[stevenlevithan]: http://stevenlevithan.com/ +# dateformat + +A node.js package for Steven Levithan's excellent [dateFormat()][dateformat] function. + +[![Build Status](https://travis-ci.org/felixge/node-dateformat.svg)](https://travis-ci.org/felixge/node-dateformat) + +## Modifications + +* Removed the `Date.prototype.format` method. Sorry folks, but extending native prototypes is for suckers. +* Added a `module.exports = dateFormat;` statement at the bottom +* Added the placeholder `N` to get the ISO 8601 numeric representation of the day of the week + +## Installation + +```bash +$ npm install dateformat +$ dateformat --help +``` + +## Usage + +As taken from Steven's post, modified to match the Modifications listed above: +```js +var dateFormat = require('dateformat'); +var now = new Date(); + +// Basic usage +dateFormat(now, "dddd, mmmm dS, yyyy, h:MM:ss TT"); +// Saturday, June 9th, 2007, 5:46:21 PM + +// You can use one of several named masks +dateFormat(now, "isoDateTime"); +// 2007-06-09T17:46:21 + +// ...Or add your own +dateFormat.masks.hammerTime = 'HH:MM! "Can\'t touch this!"'; +dateFormat(now, "hammerTime"); +// 17:46! Can't touch this! + +// You can also provide the date as a string +dateFormat("Jun 9 2007", "fullDate"); +// Saturday, June 9, 2007 + +// Note that if you don't include the mask argument, +// dateFormat.masks.default is used +dateFormat(now); +// Sat Jun 09 2007 17:46:21 + +// And if you don't include the date argument, +// the current date and time is used +dateFormat(); +// Sat Jun 09 2007 17:46:22 + +// You can also skip the date argument (as long as your mask doesn't +// contain any numbers), in which case the current date/time is used +dateFormat("longTime"); +// 5:46:22 PM EST + +// And finally, you can convert local time to UTC time. Simply pass in +// true as an additional argument (no argument skipping allowed in this case): +dateFormat(now, "longTime", true); +// 10:46:21 PM UTC + +// ...Or add the prefix "UTC:" or "GMT:" to your mask. +dateFormat(now, "UTC:h:MM:ss TT Z"); +// 10:46:21 PM UTC + +// You can also get the ISO 8601 week of the year: +dateFormat(now, "W"); +// 42 + +// and also get the ISO 8601 numeric representation of the day of the week: +dateFormat(now,"N"); +// 6 +``` + +### Mask options + +Mask | Description +---- | ----------- +`d` | Day of the month as digits; no leading zero for single-digit days. +`dd` | Day of the month as digits; leading zero for single-digit days. +`ddd` | Day of the week as a three-letter abbreviation. +`dddd` | Day of the week as its full name. +`m` | Month as digits; no leading zero for single-digit months. +`mm` | Month as digits; leading zero for single-digit months. +`mmm` | Month as a three-letter abbreviation. +`mmmm` | Month as its full name. +`yy` | Year as last two digits; leading zero for years less than 10. +`yyyy` | Year represented by four digits. +`h` | Hours; no leading zero for single-digit hours (12-hour clock). +`hh` | Hours; leading zero for single-digit hours (12-hour clock). +`H` | Hours; no leading zero for single-digit hours (24-hour clock). +`HH` | Hours; leading zero for single-digit hours (24-hour clock). +`M` | Minutes; no leading zero for single-digit minutes. +`MM` | Minutes; leading zero for single-digit minutes. +`N` | ISO 8601 numeric representation of the day of the week. +`o` | GMT/UTC timezone offset, e.g. -0500 or +0230. +`s` | Seconds; no leading zero for single-digit seconds. +`ss` | Seconds; leading zero for single-digit seconds. +`S` | The date's ordinal suffix (st, nd, rd, or th). Works well with `d`. +`l` | Milliseconds; gives 3 digits. +`L` | Milliseconds; gives 2 digits. +`t` | Lowercase, single-character time marker string: a or p. +`tt` | Lowercase, two-character time marker string: am or pm. +`T` | Uppercase, single-character time marker string: A or P. +`TT` | Uppercase, two-character time marker string: AM or PM. +`W` | ISO 8601 week number of the year, e.g. 42 +`Z` | US timezone abbreviation, e.g. EST or MDT. With non-US timezones or in the +`'...'`, `"..."` | Literal character sequence. Surrounding quotes are removed. +`UTC:` | Must be the first four characters of the mask. Converts the date from local time to UTC/GMT/Zulu time before applying the mask. The "UTC:" prefix is removed. + +### Named Formats + +Name | Mask | Example +---- | ---- | ------- +`default` | `ddd mmm dd yyyy HH:MM:ss` | Sat Jun 09 2007 17:46:21 +`shortDate` | `m/d/yy` | 6/9/07 +`mediumDate` | `mmm d, yyyy` | Jun 9, 2007 +`longDate` | `mmmm d, yyyy` | June 9, 2007 +`fullDate` | `dddd, mmmm d, yyyy` | Saturday, June 9, 2007 +`shortTime` | `h:MM TT` | 5:46 PM +`mediumTime` | `h:MM:ss TT` | 5:46:21 PM +`longTime` | `h:MM:ss TT Z` | 5:46:21 PM EST +`isoDate` | `yyyy-mm-dd` | 2007-06-09 +`isoTime` | `HH:MM:ss` | 17:46:21 +`isoDateTime` | `yyyy-mm-dd'T'HH:MM:ss` | 2007-06-09T17:46:21 +`isoUtcDateTime` | `UTC:yyyy-mm-dd'T'HH:MM:ss'Z'` | 2007-06-09T22:46:21Z +## License + +(c) 2007-2009 Steven Levithan [stevenlevithan.com][stevenlevithan], MIT license. + +[dateformat]: http://blog.stevenlevithan.com/archives/date-time-format +[stevenlevithan]: http://stevenlevithan.com/ diff --git a/node_modules/dateformat/lib/dateformat.js b/node_modules/dateformat/lib/dateformat.js index 77cfb1f..d2ac1eb 100644 --- a/node_modules/dateformat/lib/dateformat.js +++ b/node_modules/dateformat/lib/dateformat.js @@ -1,226 +1,226 @@ -/* - * Date Format 1.2.3 - * (c) 2007-2009 Steven Levithan - * MIT license - * - * Includes enhancements by Scott Trenda - * and Kris Kowal - * - * Accepts a date, a mask, or a date and a mask. - * Returns a formatted version of the given date. - * The date defaults to the current date/time. - * The mask defaults to dateFormat.masks.default. - */ - -(function(global) { - 'use strict'; - - var dateFormat = (function() { - var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; - var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; - var timezoneClip = /[^-+\dA-Z]/g; - - // Regexes and supporting functions are cached through closure - return function (date, mask, utc, gmt) { - - // You can't provide utc if you skip other args (use the 'UTC:' mask prefix) - if (arguments.length === 1 && kindOf(date) === 'string' && !/\d/.test(date)) { - mask = date; - date = undefined; - } - - date = date || new Date; - - if(!(date instanceof Date)) { - date = new Date(date); - } - - if (isNaN(date)) { - throw TypeError('Invalid date'); - } - - mask = String(dateFormat.masks[mask] || mask || dateFormat.masks['default']); - - // Allow setting the utc/gmt argument via the mask - var maskSlice = mask.slice(0, 4); - if (maskSlice === 'UTC:' || maskSlice === 'GMT:') { - mask = mask.slice(4); - utc = true; - if (maskSlice === 'GMT:') { - gmt = true; - } - } - - var _ = utc ? 'getUTC' : 'get'; - var d = date[_ + 'Date'](); - var D = date[_ + 'Day'](); - var m = date[_ + 'Month'](); - var y = date[_ + 'FullYear'](); - var H = date[_ + 'Hours'](); - var M = date[_ + 'Minutes'](); - var s = date[_ + 'Seconds'](); - var L = date[_ + 'Milliseconds'](); - var o = utc ? 0 : date.getTimezoneOffset(); - var W = getWeek(date); - var N = getDayOfWeek(date); - var flags = { - d: d, - dd: pad(d), - ddd: dateFormat.i18n.dayNames[D], - dddd: dateFormat.i18n.dayNames[D + 7], - m: m + 1, - mm: pad(m + 1), - mmm: dateFormat.i18n.monthNames[m], - mmmm: dateFormat.i18n.monthNames[m + 12], - yy: String(y).slice(2), - yyyy: y, - h: H % 12 || 12, - hh: pad(H % 12 || 12), - H: H, - HH: pad(H), - M: M, - MM: pad(M), - s: s, - ss: pad(s), - l: pad(L, 3), - L: pad(Math.round(L / 10)), - t: H < 12 ? 'a' : 'p', - tt: H < 12 ? 'am' : 'pm', - T: H < 12 ? 'A' : 'P', - TT: H < 12 ? 'AM' : 'PM', - Z: gmt ? 'GMT' : utc ? 'UTC' : (String(date).match(timezone) || ['']).pop().replace(timezoneClip, ''), - o: (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), - S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], - W: W, - N: N - }; - - return mask.replace(token, function (match) { - if (match in flags) { - return flags[match]; - } - return match.slice(1, match.length - 1); - }); - }; - })(); - - dateFormat.masks = { - 'default': 'ddd mmm dd yyyy HH:MM:ss', - 'shortDate': 'm/d/yy', - 'mediumDate': 'mmm d, yyyy', - 'longDate': 'mmmm d, yyyy', - 'fullDate': 'dddd, mmmm d, yyyy', - 'shortTime': 'h:MM TT', - 'mediumTime': 'h:MM:ss TT', - 'longTime': 'h:MM:ss TT Z', - 'isoDate': 'yyyy-mm-dd', - 'isoTime': 'HH:MM:ss', - 'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso', - 'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'', - 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z' - }; - - // Internationalization strings - dateFormat.i18n = { - dayNames: [ - 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', - 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' - ], - monthNames: [ - 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', - 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' - ] - }; - -function pad(val, len) { - val = String(val); - len = len || 2; - while (val.length < len) { - val = '0' + val; - } - return val; -} - -/** - * Get the ISO 8601 week number - * Based on comments from - * http://techblog.procurios.nl/k/n618/news/view/33796/14863/Calculate-ISO-8601-week-and-year-in-javascript.html - * - * @param {Object} `date` - * @return {Number} - */ -function getWeek(date) { - // Remove time components of date - var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); - - // Change date to Thursday same week - targetThursday.setDate(targetThursday.getDate() - ((targetThursday.getDay() + 6) % 7) + 3); - - // Take January 4th as it is always in week 1 (see ISO 8601) - var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); - - // Change date to Thursday same week - firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3); - - // Check if daylight-saving-time-switch occurred and correct for it - var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); - targetThursday.setHours(targetThursday.getHours() - ds); - - // Number of weeks between target Thursday and first Thursday - var weekDiff = (targetThursday - firstThursday) / (86400000*7); - return 1 + Math.floor(weekDiff); -} - -/** - * Get ISO-8601 numeric representation of the day of the week - * 1 (for Monday) through 7 (for Sunday) - * - * @param {Object} `date` - * @return {Number} - */ -function getDayOfWeek(date) { - var dow = date.getDay(); - if(dow === 0) { - dow = 7; - } - return dow; -} - -/** - * kind-of shortcut - * @param {*} val - * @return {String} - */ -function kindOf(val) { - if (val === null) { - return 'null'; - } - - if (val === undefined) { - return 'undefined'; - } - - if (typeof val !== 'object') { - return typeof val; - } - - if (Array.isArray(val)) { - return 'array'; - } - - return {}.toString.call(val) - .slice(8, -1).toLowerCase(); -}; - - - - if (typeof define === 'function' && define.amd) { - define(function () { - return dateFormat; - }); - } else if (typeof exports === 'object') { - module.exports = dateFormat; - } else { - global.dateFormat = dateFormat; - } -})(this); +/* + * Date Format 1.2.3 + * (c) 2007-2009 Steven Levithan + * MIT license + * + * Includes enhancements by Scott Trenda + * and Kris Kowal + * + * Accepts a date, a mask, or a date and a mask. + * Returns a formatted version of the given date. + * The date defaults to the current date/time. + * The mask defaults to dateFormat.masks.default. + */ + +(function(global) { + 'use strict'; + + var dateFormat = (function() { + var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g; + var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; + var timezoneClip = /[^-+\dA-Z]/g; + + // Regexes and supporting functions are cached through closure + return function (date, mask, utc, gmt) { + + // You can't provide utc if you skip other args (use the 'UTC:' mask prefix) + if (arguments.length === 1 && kindOf(date) === 'string' && !/\d/.test(date)) { + mask = date; + date = undefined; + } + + date = date || new Date; + + if(!(date instanceof Date)) { + date = new Date(date); + } + + if (isNaN(date)) { + throw TypeError('Invalid date'); + } + + mask = String(dateFormat.masks[mask] || mask || dateFormat.masks['default']); + + // Allow setting the utc/gmt argument via the mask + var maskSlice = mask.slice(0, 4); + if (maskSlice === 'UTC:' || maskSlice === 'GMT:') { + mask = mask.slice(4); + utc = true; + if (maskSlice === 'GMT:') { + gmt = true; + } + } + + var _ = utc ? 'getUTC' : 'get'; + var d = date[_ + 'Date'](); + var D = date[_ + 'Day'](); + var m = date[_ + 'Month'](); + var y = date[_ + 'FullYear'](); + var H = date[_ + 'Hours'](); + var M = date[_ + 'Minutes'](); + var s = date[_ + 'Seconds'](); + var L = date[_ + 'Milliseconds'](); + var o = utc ? 0 : date.getTimezoneOffset(); + var W = getWeek(date); + var N = getDayOfWeek(date); + var flags = { + d: d, + dd: pad(d), + ddd: dateFormat.i18n.dayNames[D], + dddd: dateFormat.i18n.dayNames[D + 7], + m: m + 1, + mm: pad(m + 1), + mmm: dateFormat.i18n.monthNames[m], + mmmm: dateFormat.i18n.monthNames[m + 12], + yy: String(y).slice(2), + yyyy: y, + h: H % 12 || 12, + hh: pad(H % 12 || 12), + H: H, + HH: pad(H), + M: M, + MM: pad(M), + s: s, + ss: pad(s), + l: pad(L, 3), + L: pad(Math.round(L / 10)), + t: H < 12 ? 'a' : 'p', + tt: H < 12 ? 'am' : 'pm', + T: H < 12 ? 'A' : 'P', + TT: H < 12 ? 'AM' : 'PM', + Z: gmt ? 'GMT' : utc ? 'UTC' : (String(date).match(timezone) || ['']).pop().replace(timezoneClip, ''), + o: (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), + S: ['th', 'st', 'nd', 'rd'][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], + W: W, + N: N + }; + + return mask.replace(token, function (match) { + if (match in flags) { + return flags[match]; + } + return match.slice(1, match.length - 1); + }); + }; + })(); + + dateFormat.masks = { + 'default': 'ddd mmm dd yyyy HH:MM:ss', + 'shortDate': 'm/d/yy', + 'mediumDate': 'mmm d, yyyy', + 'longDate': 'mmmm d, yyyy', + 'fullDate': 'dddd, mmmm d, yyyy', + 'shortTime': 'h:MM TT', + 'mediumTime': 'h:MM:ss TT', + 'longTime': 'h:MM:ss TT Z', + 'isoDate': 'yyyy-mm-dd', + 'isoTime': 'HH:MM:ss', + 'isoDateTime': 'yyyy-mm-dd\'T\'HH:MM:sso', + 'isoUtcDateTime': 'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\'', + 'expiresHeaderFormat': 'ddd, dd mmm yyyy HH:MM:ss Z' + }; + + // Internationalization strings + dateFormat.i18n = { + dayNames: [ + 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', + 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' + ], + monthNames: [ + 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', + 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' + ] + }; + +function pad(val, len) { + val = String(val); + len = len || 2; + while (val.length < len) { + val = '0' + val; + } + return val; +} + +/** + * Get the ISO 8601 week number + * Based on comments from + * http://techblog.procurios.nl/k/n618/news/view/33796/14863/Calculate-ISO-8601-week-and-year-in-javascript.html + * + * @param {Object} `date` + * @return {Number} + */ +function getWeek(date) { + // Remove time components of date + var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); + + // Change date to Thursday same week + targetThursday.setDate(targetThursday.getDate() - ((targetThursday.getDay() + 6) % 7) + 3); + + // Take January 4th as it is always in week 1 (see ISO 8601) + var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); + + // Change date to Thursday same week + firstThursday.setDate(firstThursday.getDate() - ((firstThursday.getDay() + 6) % 7) + 3); + + // Check if daylight-saving-time-switch occurred and correct for it + var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); + targetThursday.setHours(targetThursday.getHours() - ds); + + // Number of weeks between target Thursday and first Thursday + var weekDiff = (targetThursday - firstThursday) / (86400000*7); + return 1 + Math.floor(weekDiff); +} + +/** + * Get ISO-8601 numeric representation of the day of the week + * 1 (for Monday) through 7 (for Sunday) + * + * @param {Object} `date` + * @return {Number} + */ +function getDayOfWeek(date) { + var dow = date.getDay(); + if(dow === 0) { + dow = 7; + } + return dow; +} + +/** + * kind-of shortcut + * @param {*} val + * @return {String} + */ +function kindOf(val) { + if (val === null) { + return 'null'; + } + + if (val === undefined) { + return 'undefined'; + } + + if (typeof val !== 'object') { + return typeof val; + } + + if (Array.isArray(val)) { + return 'array'; + } + + return {}.toString.call(val) + .slice(8, -1).toLowerCase(); +}; + + + + if (typeof define === 'function' && define.amd) { + define(function () { + return dateFormat; + }); + } else if (typeof exports === 'object') { + module.exports = dateFormat; + } else { + global.dateFormat = dateFormat; + } +})(this); diff --git a/node_modules/dayjs/plugin/arraySupport.d.ts b/node_modules/dayjs/plugin/arraySupport.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/dayjs/plugin/objectSupport.d.ts b/node_modules/dayjs/plugin/objectSupport.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver b/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver deleted file mode 100644 index 62e2968..0000000 --- a/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../../../semver/bin/semver.js" "$@" - ret=$? -else - node "$basedir/../../../semver/bin/semver.js" "$@" - ret=$? -fi -exit $ret diff --git a/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver b/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver new file mode 120000 index 0000000..c3277a7 --- /dev/null +++ b/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver @@ -0,0 +1 @@ +../../../semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver.cmd b/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver.cmd deleted file mode 100644 index 9fdcaa0..0000000 --- a/node_modules/eslint-config-airbnb-base/node_modules/.bin/semver.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\..\..\semver\bin\semver.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\..\..\semver\bin\semver.js" %* -) \ No newline at end of file diff --git a/node_modules/eslint-config-airbnb-base/whitespace-async.js b/node_modules/eslint-config-airbnb-base/whitespace-async.js old mode 100644 new mode 100755 diff --git a/node_modules/eslint-config-airbnb/whitespace-async.js b/node_modules/eslint-config-airbnb/whitespace-async.js old mode 100644 new mode 100755 diff --git a/node_modules/eslint/bin/eslint.js b/node_modules/eslint/bin/eslint.js old mode 100644 new mode 100755 diff --git a/node_modules/esrecurse/package.json b/node_modules/esrecurse/package.json old mode 100644 new mode 100755 diff --git a/node_modules/flat-cache/changelog.md b/node_modules/flat-cache/changelog.md index 0137a02..1ad0fdf 100644 --- a/node_modules/flat-cache/changelog.md +++ b/node_modules/flat-cache/changelog.md @@ -34,10 +34,10 @@ - **Other changes** - Replace write with combination of mkdir and writeFile ([#49](https://github.com/royriojas/flat-cache/issues/49)) - [ef48276]( https://github.com/royriojas/flat-cache/commit/ef48276 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 08/11/2020 00:17:15 - Node v10 introduced a great "recursive" option for mkdir which allows to - get rid from mkdirp package and easily rewrite "write" package usage - with two function calls. - + Node v10 introduced a great "recursive" option for mkdir which allows to + get rid from mkdirp package and easily rewrite "write" package usage + with two function calls. + https://nodejs.org/api/fs.html#fs_fs_mkdir_path_options_callback - Added a testcase for clearAll ([#48](https://github.com/royriojas/flat-cache/issues/48)) - [45b51ca]( https://github.com/royriojas/flat-cache/commit/45b51ca ), [Aaron Chen](https://github.com/Aaron Chen), 21/05/2020 08:40:03 @@ -82,9 +82,9 @@ - Less strint version check ([#44](https://github.com/royriojas/flat-cache/issues/44)) - [92aca1c]( https://github.com/royriojas/flat-cache/commit/92aca1c ), [Wojciech Maj](https://github.com/Wojciech Maj), 13/11/2019 16:18:25 - * Use ^ version matching for production dependencies - - * Run npm audit fix + * Use ^ version matching for production dependencies + + * Run npm audit fix - **Bug Fixes** - update dependencies and use eslint directly - [73fbed2]( https://github.com/royriojas/flat-cache/commit/73fbed2 ), [yumetodo](https://github.com/yumetodo), 18/03/2020 01:17:27 @@ -109,21 +109,21 @@ - Change JSON parser from circular-json to flatted & 1 more changes ([#37](https://github.com/royriojas/flat-cache/issues/37)) - [745e65a]( https://github.com/royriojas/flat-cache/commit/745e65a ), [Andy Chen](https://github.com/Andy Chen), 08/01/2019 16:17:20 - * Change JSON parser from circular-json to flatted & 1 more changes - - * Change JSON parser from circular-json - * Audited 2 vulnerabilities - - * Update package.json - - * Update Engine require - - * There's a bunch of dependencies in this pkg requires node >=4, so I changed it to 4 - - * Remove and add node versions - - * I have seen this pkg is not available with node 0.12 so I removed it - * I have added a popular used LTS version of node - 10 + * Change JSON parser from circular-json to flatted & 1 more changes + + * Change JSON parser from circular-json + * Audited 2 vulnerabilities + + * Update package.json + + * Update Engine require + + * There's a bunch of dependencies in this pkg requires node >=4, so I changed it to 4 + + * Remove and add node versions + + * I have seen this pkg is not available with node 0.12 so I removed it + * I have added a popular used LTS version of node - 10 ## v1.3.4 - **Refactoring** @@ -138,17 +138,17 @@ - **Other changes** - Removed the need for del ([#33](https://github.com/royriojas/flat-cache/issues/33)) - [c429012]( https://github.com/royriojas/flat-cache/commit/c429012 ), [S. Gilroy](https://github.com/S. Gilroy), 13/11/2018 13:56:37 - * Removed the need for del - - Removed the need for del as newer versions have broken backwards - compatibility. del mainly uses rimraf for deleting folders - and files, replaceing it with rimraf only is a minimal change. - - * Disable glob on rimraf calls - - * Added glob disable to wrong call - - * Wrapped rimraf to simplify solution + * Removed the need for del + + Removed the need for del as newer versions have broken backwards + compatibility. del mainly uses rimraf for deleting folders + and files, replaceing it with rimraf only is a minimal change. + + * Disable glob on rimraf calls + + * Added glob disable to wrong call + + * Wrapped rimraf to simplify solution ## v1.3.2 - **Refactoring** @@ -177,17 +177,17 @@ - **Other changes** - Added #all method ([#16](https://github.com/royriojas/flat-cache/issues/16)) - [12293be]( https://github.com/royriojas/flat-cache/commit/12293be ), [Ozair Patel](https://github.com/Ozair Patel), 25/09/2017 14:46:38 - * Added #all method - - * Added #all method test - - * Updated readme - - * Added yarn.lock - - * Added more keys for #all test - - * Beautified file + * Added #all method + + * Added #all method test + + * Updated readme + + * Added yarn.lock + + * Added more keys for #all test + + * Beautified file - fix changelog title style ([#14](https://github.com/royriojas/flat-cache/issues/14)) - [af8338a]( https://github.com/royriojas/flat-cache/commit/af8338a ), [前端小武](https://github.com/前端小武), 19/12/2016 20:34:48 @@ -196,13 +196,13 @@ - **Bug Fixes** - Do not crash if cache file is invalid JSON. ([#13](https://github.com/royriojas/flat-cache/issues/13)) - [87beaa6]( https://github.com/royriojas/flat-cache/commit/87beaa6 ), [Roy Riojas](https://github.com/Roy Riojas), 19/12/2016 18:03:35 - Fixes #12 - - Not sure under which situations a cache file might exist that does - not contain a valid JSON structure, but just in case to cover - the possibility of this happening a try catch block has been added - - If the cache is somehow not valid the cache will be discarded an a + Fixes #12 + + Not sure under which situations a cache file might exist that does + not contain a valid JSON structure, but just in case to cover + the possibility of this happening a try catch block has been added + + If the cache is somehow not valid the cache will be discarded an a a new cache will be stored instead - **Other changes** - Added travis ci support for modern node versions ([#11](https://github.com/royriojas/flat-cache/issues/11)) - [1c2b1f7]( https://github.com/royriojas/flat-cache/commit/1c2b1f7 ), [Amila Welihinda](https://github.com/Amila Welihinda), 10/11/2016 23:47:52 @@ -210,8 +210,8 @@ - Bumping `circular-son` version ([#10](https://github.com/royriojas/flat-cache/issues/10)) - [4d5e861]( https://github.com/royriojas/flat-cache/commit/4d5e861 ), [Andrea Giammarchi](https://github.com/Andrea Giammarchi), 02/08/2016 07:13:52 - As mentioned in https://github.com/WebReflection/circular-json/issues/25 `circular-json` wan't rightly implementing the license field. - + As mentioned in https://github.com/WebReflection/circular-json/issues/25 `circular-json` wan't rightly implementing the license field. + Latest version bump changed only that bit so that ESLint should now be happy. ## v1.2.1 - **Bug Fixes** diff --git a/node_modules/is-class-hotfix/.editorconfig b/node_modules/is-class-hotfix/.editorconfig old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/.gitattributes b/node_modules/is-class-hotfix/.gitattributes old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/CHANGELOG.md b/node_modules/is-class-hotfix/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/LICENSE.md b/node_modules/is-class-hotfix/LICENSE.md old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/README.md b/node_modules/is-class-hotfix/README.md old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/bower.json b/node_modules/is-class-hotfix/bower.json old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/is-class.js b/node_modules/is-class-hotfix/is-class.js old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/package.json b/node_modules/is-class-hotfix/package.json old mode 100644 new mode 100755 diff --git a/node_modules/is-class-hotfix/test/is-class.js b/node_modules/is-class-hotfix/test/is-class.js old mode 100644 new mode 100755 diff --git a/node_modules/js-yaml/bin/js-yaml.js b/node_modules/js-yaml/bin/js-yaml.js old mode 100644 new mode 100755 diff --git a/node_modules/jstoxml/dist.sh b/node_modules/jstoxml/dist.sh old mode 100644 new mode 100755 diff --git a/node_modules/mime/cli.js b/node_modules/mime/cli.js old mode 100644 new mode 100755 diff --git a/node_modules/mkdirp/bin/cmd.js b/node_modules/mkdirp/bin/cmd.js old mode 100644 new mode 100755 diff --git a/node_modules/os-name/cli.js b/node_modules/os-name/cli.js old mode 100644 new mode 100755 diff --git a/node_modules/osx-release/cli.js b/node_modules/osx-release/cli.js old mode 100644 new mode 100755 diff --git a/node_modules/queue-microtask/LICENSE b/node_modules/queue-microtask/LICENSE old mode 100644 new mode 100755 diff --git a/node_modules/rimraf/bin.js b/node_modules/rimraf/bin.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/LICENSE b/node_modules/uri-js/LICENSE old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/README.md b/node_modules/uri-js/README.md old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/es5/uri.all.d.ts b/node_modules/uri-js/dist/es5/uri.all.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/es5/uri.all.js b/node_modules/uri-js/dist/es5/uri.all.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/es5/uri.all.js.map b/node_modules/uri-js/dist/es5/uri.all.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/es5/uri.all.min.d.ts b/node_modules/uri-js/dist/es5/uri.all.min.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/es5/uri.all.min.js b/node_modules/uri-js/dist/es5/uri.all.min.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/es5/uri.all.min.js.map b/node_modules/uri-js/dist/es5/uri.all.min.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/index.d.ts b/node_modules/uri-js/dist/esnext/index.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/index.js b/node_modules/uri-js/dist/esnext/index.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/index.js.map b/node_modules/uri-js/dist/esnext/index.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.d.ts b/node_modules/uri-js/dist/esnext/regexps-iri.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.js b/node_modules/uri-js/dist/esnext/regexps-iri.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.js.map b/node_modules/uri-js/dist/esnext/regexps-iri.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.d.ts b/node_modules/uri-js/dist/esnext/regexps-uri.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.js b/node_modules/uri-js/dist/esnext/regexps-uri.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.js.map b/node_modules/uri-js/dist/esnext/regexps-uri.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/http.d.ts b/node_modules/uri-js/dist/esnext/schemes/http.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/http.js b/node_modules/uri-js/dist/esnext/schemes/http.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/http.js.map b/node_modules/uri-js/dist/esnext/schemes/http.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/https.d.ts b/node_modules/uri-js/dist/esnext/schemes/https.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/https.js b/node_modules/uri-js/dist/esnext/schemes/https.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/https.js.map b/node_modules/uri-js/dist/esnext/schemes/https.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts b/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.js b/node_modules/uri-js/dist/esnext/schemes/mailto.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.js.map b/node_modules/uri-js/dist/esnext/schemes/mailto.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.d.ts b/node_modules/uri-js/dist/esnext/schemes/urn.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.js b/node_modules/uri-js/dist/esnext/schemes/urn.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.js.map b/node_modules/uri-js/dist/esnext/schemes/urn.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/ws.d.ts b/node_modules/uri-js/dist/esnext/schemes/ws.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/ws.js b/node_modules/uri-js/dist/esnext/schemes/ws.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/ws.js.map b/node_modules/uri-js/dist/esnext/schemes/ws.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/wss.d.ts b/node_modules/uri-js/dist/esnext/schemes/wss.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/wss.js b/node_modules/uri-js/dist/esnext/schemes/wss.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/schemes/wss.js.map b/node_modules/uri-js/dist/esnext/schemes/wss.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/uri.d.ts b/node_modules/uri-js/dist/esnext/uri.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/uri.js b/node_modules/uri-js/dist/esnext/uri.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/uri.js.map b/node_modules/uri-js/dist/esnext/uri.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/util.d.ts b/node_modules/uri-js/dist/esnext/util.d.ts old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/util.js b/node_modules/uri-js/dist/esnext/util.js old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/dist/esnext/util.js.map b/node_modules/uri-js/dist/esnext/util.js.map old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/package.json b/node_modules/uri-js/package.json old mode 100644 new mode 100755 diff --git a/node_modules/uri-js/yarn.lock b/node_modules/uri-js/yarn.lock old mode 100644 new mode 100755 diff --git a/node_modules/utility/index.d.ts b/node_modules/utility/index.d.ts index cd569da..47011b0 100644 --- a/node_modules/utility/index.d.ts +++ b/node_modules/utility/index.d.ts @@ -1,592 +1,592 @@ -export = utility; -export as namespace utility; - - -// --------------------------------- -/** - * @description Types definition by github@ddzy - * @see https://github.com/node-modules/utility - */ -// ------------------------------------ - - -declare namespace utility { - - /** - * ---------------0_0---------------- - * @description Defines For Array - * @see https://github.com/node-modules/utility - * ---------------0^0---------------- - */ - - - /** - * Static object define - */ - type ObjStatic = { [key: string]: any }; - - - /** - * Array random slice with items count. - * @param {Array} arr - * @param {Number} num, number of sub items. - * @return {Array} - */ - function randomSlice( - arr: any[], - num?: number, - ): any[]; - - /** - * Remove one exists element from an array - * @param {Array} arr - * @param {Number} index - remove element index - * @return {Array} the array instance - */ - function spliceOne( - arr: any[], - index: number, - ): any[]; - - - /** - * --------------------0_0---------------- - * @description Defines For Crypto - * @see https://github.com/node-modules/utility#md5 - * --------------0^0------------------ - */ - - - /** - * hash - * - * @param {String} method hash method, e.g.: 'md5', 'sha1' - * @param {String|Buffer|Object} s - * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. - * @return {String} md5 hash string - * @public - */ - function hash( - method: 'md5' | 'sha1', - s: string | Buffer | Object, - format?: 'hex' | 'base64', - ): string; - - /** - * md5 hash - * - * @param {String|Buffer|Object} s - * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. - * @return {String} md5 hash string - * @public - */ - function md5( - s: string | Buffer | Object, - format?: 'hex' | 'base64', - ): string; - - /** - * sha1 hash - * - * @param {String|Buffer|Object} s - * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. - * @return {String} sha1 hash string - * @public - */ - function sha1( - s: string | Buffer | Object, - format?: 'hex' | 'base64', - ): string; - - /** - * sha256 hash - * - * @param {String|Buffer|Object} s - * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. - * @return {String} sha256 hash string - * @public - */ - function sha256( - s: string | Buffer | Object, - format?: 'hex' | 'base64', - ): string; - - /** - * HMAC algorithm. - * - * Equal bash: - * - * ```bash - * $ echo -n "$data" | openssl dgst -binary -$algorithm -hmac "$key" | openssl $encoding - * ``` - * - * @param {String} algorithm, dependent on the available algorithms supported by the version of OpenSSL on the platform. - * Examples are 'sha1', 'md5', 'sha256', 'sha512', etc. - * On recent releases, `openssl list-message-digest-algorithms` will display the available digest algorithms. - * @param {String} key, the hmac key to be used. - * @param {String|Buffer} data, content string. - * @param {String} [encoding='base64'] - * @return {String} digest string. - */ - function hmac( - algorithm: string, - key: string, - data: string | Buffer, - encoding?: 'base64' | string, - ): string; - - /** - * Base64 encode string. - * - * @param {String|Buffer} s - * @param {Boolean} [urlsafe=false] Encode string s using a URL-safe alphabet, - * which substitutes - instead of + and _ instead of / in the standard Base64 alphabet. - * @return {String} base64 encode format string. - */ - function base64encode( - s: string | Buffer, - urlsafe?: boolean, - ): string; - - /** - * Base64 string decode. - * - * @param {String} encode, base64 encoding string. - * @param {Boolean} [urlsafe=false] Decode string s using a URL-safe alphabet, - * which substitutes - instead of + and _ instead of / in the standard Base64 alphabet. - * @param {encoding} [encoding=utf8] if encoding = buffer, will return Buffer instance - * @return {String|Buffer} plain text. - */ - function base64decode( - encode: string, - urlsafe?: boolean, - encoding?: 'utf8' | 'buffer', - ): string | Buffer; - - - /** - * ----------------0_0----------------- - * @description Defines For Date - * @see https://github.com/node-modules/utility#date-utils - * ---------------0^0------------------ - */ - - - interface IYYYYMMDDHHmmssStaticOptions { - dateSep?: string, - timeSep?: string, - } - interface IDateStructStaticReturns { - YYYYMMDD: number, - H: number, - } - - /** - * Access log format date. format: `moment().format('DD/MMM/YYYY:HH:mm:ss ZZ')` - * - * @return {String} - */ - function accessLogDate(d: Date): string; - - /** - * Normal log format date. format: `moment().format('YYYY-MM-DD HH:mm:ss.SSS')` - * - * @return {String} - */ - function logDate( - d: string | Date, - msSep?: string, - ): string; - - /** - * `moment().format('YYYY-MM-DD HH:mm:ss')` format date string. - * - * @return {String} - */ - function YYYYMMDDHHmmss( - d: Date | string, - options?: IYYYYMMDDHHmmssStaticOptions, - ): string; - - /** - * `moment().format('YYYY-MM-DD')` format date string. - * - * @return {String} - */ - function YYYYMMDD( - d: string | Date, - sep?: string, - ): string; - - /** - * return datetime struct. - * - * @return {Object} date - * - {Number} YYYYMMDD, 20130401 - * - {Number} H, 0, 1, 9, 12, 23 - */ - function datestruct( - now?: Date, - ): IDateStructStaticReturns; - - /** - * Get Unix's timestamp in seconds. - * @return {Number} - */ - function timestamp( - t?: string | number, - ): number | Date; - - - /** - * ---------------0_0------------------- - * @description Defines For Function Method - * @see https://github.com/node-modules/utility#others - * ---------------0^0-------------------- - */ - - - /** - * A empty function. - * - * @return {Function} - * @public - */ - function noop(): () => any; - - /** - * Get a function parameter's names. - * - * @param {Function} func - * @param {Boolean} [useCache], default is true - * @return {Array} names - */ - function getParamNames( - func: (...args: any[]) => any, - cache?: boolean, - ): string[]; - - - /** - * ----------------0_0----------------------- - * @description Defines For JSON methods - * @see https://github.com/node-modules/utility#json - * -----------------0^0----------------------- - */ - - - interface IJSONStaticOptions { - space?: number | string, - replacer?: ( - key: string, - value: any, - ) => any, - } - - function strictJSONParse( - str: string, - ): ObjStatic; - - function readJSONSync( - filepath: string, - ): ObjStatic; - - function writeJSONSync( - filepath: string, - str: string | ObjStatic, - options?: IJSONStaticOptions, - ): void; - - function readJSON( - filepath: string, - ): Promise; - - function writeJSON( - filepath: string, - str: string | ObjStatic, - options?: IJSONStaticOptions, - ): Promise; - - function mkdir( - dir: string, - ): Promise; - - - /** - * ------------------0_0------------------------ - * @description Defines For Number Methods - * @see https://github.com/node-modules/utility#number-utils - * --------------------0^0---------------------- - */ - - - /** - * CONSTANTS STATIC - */ - const MAX_SAFE_INTEGER: number; - const MIN_SAFE_INTEGER: number; - const MAX_SAFE_INTEGER_STR: string; - const MAX_SAFE_INTEGER_STR_LENGTH: number; - - /** - * Detect a number string can safe convert to Javascript Number. - * - * @param {String} s number format string, like `"123"`, `"-1000123123123123123123"` - * @return {Boolean} - */ - function isSafeNumberString( - s: string, - ): boolean; - - /** - * Convert string to Number if string in safe Number scope. - * - * @param {String} s number format string. - * @return {Number|String} success will return Number, otherise return the original string. - */ - function toSafeNumber( - s: string | number, - ): number | string; - - /** - * Produces a random integer between the inclusive `lower` and `upper` bounds. - * - * @param {Number} lower The lower bound. - * @param {Number} upper The upper bound. - * @return {Number} Returns the random number. - */ - function random( - lower?: number, - upper?: number, - ): number; - - - /** - * ------------------0_0-------------------------- - * @description Defines For Object Methods - * @see https://github.com/node-modules/utility#objectassign - * -------------------0^0------------------------ - */ - - - /** - * High performance assign before node6 - * @param {Object} target - target object - * @param {Object | Array} objects - object assign from - * @return {Object} - return target object - */ - function assign( - target: ObjStatic, - objects: ObjStatic | any[], - ): ObjStatic; - - function has( - obj: ObjStatic, - prop: string, - ): boolean; - - function getOwnEnumerables( - obj: ObjStatic, - ignoreNull?: boolean, - ): string[]; - - /** - * generate a real map object(clean object), no constructor, no __proto__ - * @param {Object} [obj] - init object, optional - * @return {Object} - */ - function map( - obj?: ObjStatic, - ): ObjStatic; - - - /** - * -----------------0_0--------------------------- - * @description Defines For Optimize Methods - * @see https://github.com/node-modules/utility#argumentstoarray - * -----------------0^0------------------------ - */ - - interface ITryStaticReturns { - error: Error | undefined, - value: any, - } - - const UNSTABLE_METHOD: { - /** - * optimize try catch - * @param {Function} fn - * @return {Object} - * - {Error} error - * - {Mix} value - */ - try: ( - fn: (...args: any[]) => any, - ) => ITryStaticReturns, - }; - - /** - * avoid if (a && a.b && a.b.c) - * @param {Object} obj - * @param {...String} keys - * @return {Object} - */ - function dig( - obj: ObjStatic, - ...args: any[], - ): any; - - /** - * optimize arguments to array - * @param {Arguments} args - * @return {Array} - */ - function argumentsToArray( - ...args: any[], - ): any[]; - - - /** - * -------------------0_0--------------------- - * @description Defines For Polyfill Methods - * @see https://github.com/node-modules/utility#timers - * -------------------0^0------------------- - */ - - - function setImmediate( - callback: (...args: any[]) => void, - ...args: any[], - ): NodeJS.Immediate; - function setImmediate( - fn: (...args: any[]) => any, - ...args: any[], - ): void; - - - /** - * ------------------0_0-------------------- - * @description Defines For String Methods - * @see https://github.com/node-modules/utility#others - * -------------------0^0--------------------- - */ - - - interface IReplaceInvalidHttpHeaderCharReturns { - val: string, - invalid: boolean, - } - - function randomString( - length?: number, - charSet?: string | string[], - ): string; - - /** - * split string to array - * @param {String} str - * @param {String} [sep] default is ',' - * @return {Array} - */ - function split( - str: string, - sep?: string, - ): string[]; - - /** - * always optimized - */ - function splitAlwaysOptimized( - ...args: any[], - ): string[]; - - /** - * Replace string - * - * @param {String} str - * @param {String|RegExp} substr - * @param {String|Function} newSubstr - * @return {String} - */ - function replace( - str: string, - substr: string | RegExp, - newSubstr: string | ((...args: any[]) => any), - ): string; - - /** - * Replace invalid http header characters with replacement - * - * @param {String} val - * @param {String|Function} replacement - can be `function(char)` - * @return {Object} - */ - function replaceInvalidHttpHeaderChar( - val: string, - replacement?: string | ((...args: any[]) => any) - ): IReplaceInvalidHttpHeaderCharReturns; - - /** - * Detect invalid http header characters in a string - * - * @param {String} val - * @return {Boolean} - */ - function includesInvalidHttpHeaderChar( - val: string, - ): boolean; - - - /** - * ------------------0_0---------------------- - * @description Defines For Web Methods - * @see https://github.com/node-modules/utility#decode-and-encode - * ------------------0^0------------------------ - */ - - - /** - * Escape the given string of `html`. - * - * @param {String} html - * @return {String} - * @public - */ - function escape( - test: string, - ): string; - - /** - * Unescape the given string from html - * @param {String} html - * @param {String} type - * @return {String} - * @public - */ - function unescape( - html: string, - type?: string, - ): string | ObjStatic; - - /** - * Safe encodeURIComponent, won't throw any error. - * If `encodeURIComponent` error happen, just return the original value. - * - * @param {String} text - * @return {String} URL encode string. - */ - function encodeURIComponent( - text: string, - ): string; - - /** - * Safe decodeURIComponent, won't throw any error. - * If `decodeURIComponent` error happen, just return the original value. - * - * @param {String} encodeText - * @return {String} URL decode original string. - */ - function decodeURIComponent( - encodeText: string, - ): string; -} +export = utility; +export as namespace utility; + + +// --------------------------------- +/** + * @description Types definition by github@ddzy + * @see https://github.com/node-modules/utility + */ +// ------------------------------------ + + +declare namespace utility { + + /** + * ---------------0_0---------------- + * @description Defines For Array + * @see https://github.com/node-modules/utility + * ---------------0^0---------------- + */ + + + /** + * Static object define + */ + type ObjStatic = { [key: string]: any }; + + + /** + * Array random slice with items count. + * @param {Array} arr + * @param {Number} num, number of sub items. + * @return {Array} + */ + function randomSlice( + arr: any[], + num?: number, + ): any[]; + + /** + * Remove one exists element from an array + * @param {Array} arr + * @param {Number} index - remove element index + * @return {Array} the array instance + */ + function spliceOne( + arr: any[], + index: number, + ): any[]; + + + /** + * --------------------0_0---------------- + * @description Defines For Crypto + * @see https://github.com/node-modules/utility#md5 + * --------------0^0------------------ + */ + + + /** + * hash + * + * @param {String} method hash method, e.g.: 'md5', 'sha1' + * @param {String|Buffer|Object} s + * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. + * @return {String} md5 hash string + * @public + */ + function hash( + method: 'md5' | 'sha1', + s: string | Buffer | Object, + format?: 'hex' | 'base64', + ): string; + + /** + * md5 hash + * + * @param {String|Buffer|Object} s + * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. + * @return {String} md5 hash string + * @public + */ + function md5( + s: string | Buffer | Object, + format?: 'hex' | 'base64', + ): string; + + /** + * sha1 hash + * + * @param {String|Buffer|Object} s + * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. + * @return {String} sha1 hash string + * @public + */ + function sha1( + s: string | Buffer | Object, + format?: 'hex' | 'base64', + ): string; + + /** + * sha256 hash + * + * @param {String|Buffer|Object} s + * @param {String} [format] output string format, could be 'hex' or 'base64'. default is 'hex'. + * @return {String} sha256 hash string + * @public + */ + function sha256( + s: string | Buffer | Object, + format?: 'hex' | 'base64', + ): string; + + /** + * HMAC algorithm. + * + * Equal bash: + * + * ```bash + * $ echo -n "$data" | openssl dgst -binary -$algorithm -hmac "$key" | openssl $encoding + * ``` + * + * @param {String} algorithm, dependent on the available algorithms supported by the version of OpenSSL on the platform. + * Examples are 'sha1', 'md5', 'sha256', 'sha512', etc. + * On recent releases, `openssl list-message-digest-algorithms` will display the available digest algorithms. + * @param {String} key, the hmac key to be used. + * @param {String|Buffer} data, content string. + * @param {String} [encoding='base64'] + * @return {String} digest string. + */ + function hmac( + algorithm: string, + key: string, + data: string | Buffer, + encoding?: 'base64' | string, + ): string; + + /** + * Base64 encode string. + * + * @param {String|Buffer} s + * @param {Boolean} [urlsafe=false] Encode string s using a URL-safe alphabet, + * which substitutes - instead of + and _ instead of / in the standard Base64 alphabet. + * @return {String} base64 encode format string. + */ + function base64encode( + s: string | Buffer, + urlsafe?: boolean, + ): string; + + /** + * Base64 string decode. + * + * @param {String} encode, base64 encoding string. + * @param {Boolean} [urlsafe=false] Decode string s using a URL-safe alphabet, + * which substitutes - instead of + and _ instead of / in the standard Base64 alphabet. + * @param {encoding} [encoding=utf8] if encoding = buffer, will return Buffer instance + * @return {String|Buffer} plain text. + */ + function base64decode( + encode: string, + urlsafe?: boolean, + encoding?: 'utf8' | 'buffer', + ): string | Buffer; + + + /** + * ----------------0_0----------------- + * @description Defines For Date + * @see https://github.com/node-modules/utility#date-utils + * ---------------0^0------------------ + */ + + + interface IYYYYMMDDHHmmssStaticOptions { + dateSep?: string, + timeSep?: string, + } + interface IDateStructStaticReturns { + YYYYMMDD: number, + H: number, + } + + /** + * Access log format date. format: `moment().format('DD/MMM/YYYY:HH:mm:ss ZZ')` + * + * @return {String} + */ + function accessLogDate(d: Date): string; + + /** + * Normal log format date. format: `moment().format('YYYY-MM-DD HH:mm:ss.SSS')` + * + * @return {String} + */ + function logDate( + d: string | Date, + msSep?: string, + ): string; + + /** + * `moment().format('YYYY-MM-DD HH:mm:ss')` format date string. + * + * @return {String} + */ + function YYYYMMDDHHmmss( + d: Date | string, + options?: IYYYYMMDDHHmmssStaticOptions, + ): string; + + /** + * `moment().format('YYYY-MM-DD')` format date string. + * + * @return {String} + */ + function YYYYMMDD( + d: string | Date, + sep?: string, + ): string; + + /** + * return datetime struct. + * + * @return {Object} date + * - {Number} YYYYMMDD, 20130401 + * - {Number} H, 0, 1, 9, 12, 23 + */ + function datestruct( + now?: Date, + ): IDateStructStaticReturns; + + /** + * Get Unix's timestamp in seconds. + * @return {Number} + */ + function timestamp( + t?: string | number, + ): number | Date; + + + /** + * ---------------0_0------------------- + * @description Defines For Function Method + * @see https://github.com/node-modules/utility#others + * ---------------0^0-------------------- + */ + + + /** + * A empty function. + * + * @return {Function} + * @public + */ + function noop(): () => any; + + /** + * Get a function parameter's names. + * + * @param {Function} func + * @param {Boolean} [useCache], default is true + * @return {Array} names + */ + function getParamNames( + func: (...args: any[]) => any, + cache?: boolean, + ): string[]; + + + /** + * ----------------0_0----------------------- + * @description Defines For JSON methods + * @see https://github.com/node-modules/utility#json + * -----------------0^0----------------------- + */ + + + interface IJSONStaticOptions { + space?: number | string, + replacer?: ( + key: string, + value: any, + ) => any, + } + + function strictJSONParse( + str: string, + ): ObjStatic; + + function readJSONSync( + filepath: string, + ): ObjStatic; + + function writeJSONSync( + filepath: string, + str: string | ObjStatic, + options?: IJSONStaticOptions, + ): void; + + function readJSON( + filepath: string, + ): Promise; + + function writeJSON( + filepath: string, + str: string | ObjStatic, + options?: IJSONStaticOptions, + ): Promise; + + function mkdir( + dir: string, + ): Promise; + + + /** + * ------------------0_0------------------------ + * @description Defines For Number Methods + * @see https://github.com/node-modules/utility#number-utils + * --------------------0^0---------------------- + */ + + + /** + * CONSTANTS STATIC + */ + const MAX_SAFE_INTEGER: number; + const MIN_SAFE_INTEGER: number; + const MAX_SAFE_INTEGER_STR: string; + const MAX_SAFE_INTEGER_STR_LENGTH: number; + + /** + * Detect a number string can safe convert to Javascript Number. + * + * @param {String} s number format string, like `"123"`, `"-1000123123123123123123"` + * @return {Boolean} + */ + function isSafeNumberString( + s: string, + ): boolean; + + /** + * Convert string to Number if string in safe Number scope. + * + * @param {String} s number format string. + * @return {Number|String} success will return Number, otherise return the original string. + */ + function toSafeNumber( + s: string | number, + ): number | string; + + /** + * Produces a random integer between the inclusive `lower` and `upper` bounds. + * + * @param {Number} lower The lower bound. + * @param {Number} upper The upper bound. + * @return {Number} Returns the random number. + */ + function random( + lower?: number, + upper?: number, + ): number; + + + /** + * ------------------0_0-------------------------- + * @description Defines For Object Methods + * @see https://github.com/node-modules/utility#objectassign + * -------------------0^0------------------------ + */ + + + /** + * High performance assign before node6 + * @param {Object} target - target object + * @param {Object | Array} objects - object assign from + * @return {Object} - return target object + */ + function assign( + target: ObjStatic, + objects: ObjStatic | any[], + ): ObjStatic; + + function has( + obj: ObjStatic, + prop: string, + ): boolean; + + function getOwnEnumerables( + obj: ObjStatic, + ignoreNull?: boolean, + ): string[]; + + /** + * generate a real map object(clean object), no constructor, no __proto__ + * @param {Object} [obj] - init object, optional + * @return {Object} + */ + function map( + obj?: ObjStatic, + ): ObjStatic; + + + /** + * -----------------0_0--------------------------- + * @description Defines For Optimize Methods + * @see https://github.com/node-modules/utility#argumentstoarray + * -----------------0^0------------------------ + */ + + interface ITryStaticReturns { + error: Error | undefined, + value: any, + } + + const UNSTABLE_METHOD: { + /** + * optimize try catch + * @param {Function} fn + * @return {Object} + * - {Error} error + * - {Mix} value + */ + try: ( + fn: (...args: any[]) => any, + ) => ITryStaticReturns, + }; + + /** + * avoid if (a && a.b && a.b.c) + * @param {Object} obj + * @param {...String} keys + * @return {Object} + */ + function dig( + obj: ObjStatic, + ...args: any[], + ): any; + + /** + * optimize arguments to array + * @param {Arguments} args + * @return {Array} + */ + function argumentsToArray( + ...args: any[], + ): any[]; + + + /** + * -------------------0_0--------------------- + * @description Defines For Polyfill Methods + * @see https://github.com/node-modules/utility#timers + * -------------------0^0------------------- + */ + + + function setImmediate( + callback: (...args: any[]) => void, + ...args: any[], + ): NodeJS.Immediate; + function setImmediate( + fn: (...args: any[]) => any, + ...args: any[], + ): void; + + + /** + * ------------------0_0-------------------- + * @description Defines For String Methods + * @see https://github.com/node-modules/utility#others + * -------------------0^0--------------------- + */ + + + interface IReplaceInvalidHttpHeaderCharReturns { + val: string, + invalid: boolean, + } + + function randomString( + length?: number, + charSet?: string | string[], + ): string; + + /** + * split string to array + * @param {String} str + * @param {String} [sep] default is ',' + * @return {Array} + */ + function split( + str: string, + sep?: string, + ): string[]; + + /** + * always optimized + */ + function splitAlwaysOptimized( + ...args: any[], + ): string[]; + + /** + * Replace string + * + * @param {String} str + * @param {String|RegExp} substr + * @param {String|Function} newSubstr + * @return {String} + */ + function replace( + str: string, + substr: string | RegExp, + newSubstr: string | ((...args: any[]) => any), + ): string; + + /** + * Replace invalid http header characters with replacement + * + * @param {String} val + * @param {String|Function} replacement - can be `function(char)` + * @return {Object} + */ + function replaceInvalidHttpHeaderChar( + val: string, + replacement?: string | ((...args: any[]) => any) + ): IReplaceInvalidHttpHeaderCharReturns; + + /** + * Detect invalid http header characters in a string + * + * @param {String} val + * @return {Boolean} + */ + function includesInvalidHttpHeaderChar( + val: string, + ): boolean; + + + /** + * ------------------0_0---------------------- + * @description Defines For Web Methods + * @see https://github.com/node-modules/utility#decode-and-encode + * ------------------0^0------------------------ + */ + + + /** + * Escape the given string of `html`. + * + * @param {String} html + * @return {String} + * @public + */ + function escape( + test: string, + ): string; + + /** + * Unescape the given string from html + * @param {String} html + * @param {String} type + * @return {String} + * @public + */ + function unescape( + html: string, + type?: string, + ): string | ObjStatic; + + /** + * Safe encodeURIComponent, won't throw any error. + * If `encodeURIComponent` error happen, just return the original value. + * + * @param {String} text + * @return {String} URL encode string. + */ + function encodeURIComponent( + text: string, + ): string; + + /** + * Safe decodeURIComponent, won't throw any error. + * If `decodeURIComponent` error happen, just return the original value. + * + * @param {String} encodeText + * @return {String} URL decode original string. + */ + function decodeURIComponent( + encodeText: string, + ): string; +} diff --git a/node_modules/which/bin/node-which b/node_modules/which/bin/node-which old mode 100644 new mode 100755 diff --git a/node_modules/xmlbuilder/LICENSE b/node_modules/xmlbuilder/LICENSE index e7cbac9..9fb9700 100644 --- a/node_modules/xmlbuilder/LICENSE +++ b/node_modules/xmlbuilder/LICENSE @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2013 Ozgur Ozcitak - -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. +The MIT License (MIT) + +Copyright (c) 2013 Ozgur Ozcitak + +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. diff --git a/node_modules/xmlbuilder/README.md b/node_modules/xmlbuilder/README.md index efcb4b1..1a96edb 100644 --- a/node_modules/xmlbuilder/README.md +++ b/node_modules/xmlbuilder/README.md @@ -1,86 +1,86 @@ -# xmlbuilder-js - -An XML builder for [node.js](https://nodejs.org/) similar to -[java-xmlbuilder](https://github.com/jmurty/java-xmlbuilder). - -[![License](http://img.shields.io/npm/l/xmlbuilder.svg?style=flat-square)](http://opensource.org/licenses/MIT) -[![NPM Version](http://img.shields.io/npm/v/xmlbuilder.svg?style=flat-square)](https://npmjs.com/package/xmlbuilder) -[![NPM Downloads](https://img.shields.io/npm/dm/xmlbuilder.svg?style=flat-square)](https://npmjs.com/package/xmlbuilder) - -[![Travis Build Status](http://img.shields.io/travis/oozcitak/xmlbuilder-js.svg?style=flat-square)](http://travis-ci.org/oozcitak/xmlbuilder-js) -[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/bf7odb20hj77isry?svg=true)](https://ci.appveyor.com/project/oozcitak/xmlbuilder-js) -[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/xmlbuilder-js.svg?style=flat-square)](https://david-dm.org/oozcitak/xmlbuilder-js) -[![Code Coverage](https://img.shields.io/coveralls/oozcitak/xmlbuilder-js.svg?style=flat-square)](https://coveralls.io/github/oozcitak/xmlbuilder-js) - -### Installation: - -``` sh -npm install xmlbuilder -``` - -### Usage: - -``` js -var builder = require('xmlbuilder'); -var xml = builder.create('root') - .ele('xmlbuilder') - .ele('repo', {'type': 'git'}, 'git://github.com/oozcitak/xmlbuilder-js.git') - .end({ pretty: true}); - -console.log(xml); -``` - -will result in: - -``` xml - - - - git://github.com/oozcitak/xmlbuilder-js.git - - -``` - -It is also possible to convert objects into nodes: - -``` js -builder.create({ - root: { - xmlbuilder: { - repo: { - '@type': 'git', // attributes start with @ - '#text': 'git://github.com/oozcitak/xmlbuilder-js.git' // text node - } - } - } -}); -``` - -If you need to do some processing: - -``` js -var root = builder.create('squares'); -root.com('f(x) = x^2'); -for(var i = 1; i <= 5; i++) -{ - var item = root.ele('data'); - item.att('x', i); - item.att('y', i * i); -} -``` - -This will result in: - -``` xml - - - - - - - - - -``` - -See the [wiki](https://github.com/oozcitak/xmlbuilder-js/wiki) for details and [examples](https://github.com/oozcitak/xmlbuilder-js/wiki/Examples) for more complex examples. +# xmlbuilder-js + +An XML builder for [node.js](https://nodejs.org/) similar to +[java-xmlbuilder](https://github.com/jmurty/java-xmlbuilder). + +[![License](http://img.shields.io/npm/l/xmlbuilder.svg?style=flat-square)](http://opensource.org/licenses/MIT) +[![NPM Version](http://img.shields.io/npm/v/xmlbuilder.svg?style=flat-square)](https://npmjs.com/package/xmlbuilder) +[![NPM Downloads](https://img.shields.io/npm/dm/xmlbuilder.svg?style=flat-square)](https://npmjs.com/package/xmlbuilder) + +[![Travis Build Status](http://img.shields.io/travis/oozcitak/xmlbuilder-js.svg?style=flat-square)](http://travis-ci.org/oozcitak/xmlbuilder-js) +[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/bf7odb20hj77isry?svg=true)](https://ci.appveyor.com/project/oozcitak/xmlbuilder-js) +[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/xmlbuilder-js.svg?style=flat-square)](https://david-dm.org/oozcitak/xmlbuilder-js) +[![Code Coverage](https://img.shields.io/coveralls/oozcitak/xmlbuilder-js.svg?style=flat-square)](https://coveralls.io/github/oozcitak/xmlbuilder-js) + +### Installation: + +``` sh +npm install xmlbuilder +``` + +### Usage: + +``` js +var builder = require('xmlbuilder'); +var xml = builder.create('root') + .ele('xmlbuilder') + .ele('repo', {'type': 'git'}, 'git://github.com/oozcitak/xmlbuilder-js.git') + .end({ pretty: true}); + +console.log(xml); +``` + +will result in: + +``` xml + + + + git://github.com/oozcitak/xmlbuilder-js.git + + +``` + +It is also possible to convert objects into nodes: + +``` js +builder.create({ + root: { + xmlbuilder: { + repo: { + '@type': 'git', // attributes start with @ + '#text': 'git://github.com/oozcitak/xmlbuilder-js.git' // text node + } + } + } +}); +``` + +If you need to do some processing: + +``` js +var root = builder.create('squares'); +root.com('f(x) = x^2'); +for(var i = 1; i <= 5; i++) +{ + var item = root.ele('data'); + item.att('x', i); + item.att('y', i * i); +} +``` + +This will result in: + +``` xml + + + + + + + + + +``` + +See the [wiki](https://github.com/oozcitak/xmlbuilder-js/wiki) for details and [examples](https://github.com/oozcitak/xmlbuilder-js/wiki/Examples) for more complex examples. diff --git a/node_modules/xmlbuilder/appveyor.yml b/node_modules/xmlbuilder/appveyor.yml index 39a2628..9604b78 100644 --- a/node_modules/xmlbuilder/appveyor.yml +++ b/node_modules/xmlbuilder/appveyor.yml @@ -1,20 +1,20 @@ -environment: - matrix: - - nodejs_version: "4" - - nodejs_version: "5" - - nodejs_version: "6" - - nodejs_version: "8" - - nodejs_version: "10" - - nodejs_version: "" # latest - -install: - - ps: "Install-Product node $env:nodejs_version" - - "npm install" - -test_script: - - "node --version" - - "npm --version" - - "npm test" - -build: off - +environment: + matrix: + - nodejs_version: "4" + - nodejs_version: "5" + - nodejs_version: "6" + - nodejs_version: "8" + - nodejs_version: "10" + - nodejs_version: "" # latest + +install: + - ps: "Install-Product node $env:nodejs_version" + - "npm install" + +test_script: + - "node --version" + - "npm --version" + - "npm test" + +build: off + diff --git a/pages/home/component/enterprise.vue b/pages/home/component/enterprise.vue index db7912a..a1bb917 100644 --- a/pages/home/component/enterprise.vue +++ b/pages/home/component/enterprise.vue @@ -42,8 +42,8 @@ - {{items.employAuthenticationPerson.name?items.employAuthenticationPerson.name:items.hanHaiMember.nickName}} - {{items.sex_dictText}}-{{items.nation?items.nation:"未知"}} + {{items.employResume.name?items.employResume.name:items.hanHaiMember.nickName}} + {{items.employResume.sex==1?"男":"女"}}-{{items.employResume.nation?items.employResume.nation:"未知"}} diff --git a/pages/home/index.vue b/pages/home/index.vue index 70675ea..d0e1dd8 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -71,6 +71,7 @@ rolelist, industryList, getSysText, + querySeekList, getNotice, noticeList, queryConfigList @@ -233,7 +234,7 @@ }) }, onRolelist(){ - rolelist({ + querySeekList({ pageNo:this.rpageNo, pageSize:this.rpageSize }).then(response=>{ diff --git a/pages_subpack/enterprise/index.vue b/pages_subpack/enterprise/index.vue index 84a24a6..f78aa95 100644 --- a/pages_subpack/enterprise/index.vue +++ b/pages_subpack/enterprise/index.vue @@ -45,7 +45,7 @@ - + {{form.id?'保存':'提交审核'}} @@ -83,7 +83,7 @@