├── README.md
├── client-api
├── app.js
├── app.json
├── app.wxss
├── config.js
├── image
│ ├── green_tri.png
│ ├── icon64_appwx_logo.png
│ ├── icon_API.png
│ ├── icon_API_HL.png
│ ├── icon_component.png
│ ├── icon_component_HL.png
│ ├── icon_foot.png
│ ├── index.png
│ ├── location.png
│ ├── pause.png
│ ├── play.png
│ ├── plus.png
│ ├── record.png
│ ├── stop.png
│ ├── tabbar.png
│ ├── trash.png
│ ├── wechat.png
│ └── wechatHL.png
├── page
│ ├── API
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ ├── index.wxss
│ │ ├── pages
│ │ │ ├── Device
│ │ │ │ ├── accelerometer
│ │ │ │ │ ├── on-accelerometer-change.js
│ │ │ │ │ ├── on-accelerometer-change.json
│ │ │ │ │ ├── on-accelerometer-change.wxml
│ │ │ │ │ └── on-accelerometer-change.wxss
│ │ │ │ ├── compass
│ │ │ │ │ ├── compass.png
│ │ │ │ │ ├── on-compass-change.js
│ │ │ │ │ ├── on-compass-change.json
│ │ │ │ │ ├── on-compass-change.wxml
│ │ │ │ │ └── on-compass-change.wxss
│ │ │ │ ├── getNetworkType
│ │ │ │ │ ├── get-network-type.js
│ │ │ │ │ ├── get-network-type.json
│ │ │ │ │ ├── get-network-type.wxml
│ │ │ │ │ └── get-network-type.wxss
│ │ │ │ ├── getSystemInfo
│ │ │ │ │ ├── get-system-info.js
│ │ │ │ │ ├── get-system-info.json
│ │ │ │ │ ├── get-system-info.wxml
│ │ │ │ │ └── get-system-info.wxss
│ │ │ │ ├── makePhoneCall
│ │ │ │ │ ├── make-phone-call.js
│ │ │ │ │ ├── make-phone-call.json
│ │ │ │ │ ├── make-phone-call.wxml
│ │ │ │ │ └── make-phone-call.wxss
│ │ │ │ └── scanCode
│ │ │ │ │ ├── scan-code.js
│ │ │ │ │ ├── scan-code.json
│ │ │ │ │ ├── scan-code.wxml
│ │ │ │ │ └── scan-code.wxss
│ │ │ ├── File
│ │ │ │ ├── demo.pdf
│ │ │ │ ├── file.js
│ │ │ │ ├── file.json
│ │ │ │ ├── file.wxml
│ │ │ │ └── file.wxss
│ │ │ ├── Interface
│ │ │ │ ├── actionSheet
│ │ │ │ │ ├── action-sheet.js
│ │ │ │ │ ├── action-sheet.json
│ │ │ │ │ ├── action-sheet.wxml
│ │ │ │ │ └── action-sheet.wxss
│ │ │ │ ├── animation
│ │ │ │ │ ├── animation.js
│ │ │ │ │ ├── animation.json
│ │ │ │ │ ├── animation.wxml
│ │ │ │ │ └── animation.wxss
│ │ │ │ ├── canvas
│ │ │ │ │ ├── canvas.js
│ │ │ │ │ ├── canvas.json
│ │ │ │ │ ├── canvas.wxml
│ │ │ │ │ ├── canvas.wxss
│ │ │ │ │ └── example.js
│ │ │ │ ├── modal
│ │ │ │ │ ├── modal.js
│ │ │ │ │ ├── modal.json
│ │ │ │ │ └── modal.wxml
│ │ │ │ ├── navigationBar
│ │ │ │ │ ├── navigation-bar-loading.js
│ │ │ │ │ ├── navigation-bar-loading.json
│ │ │ │ │ ├── navigation-bar-loading.wxml
│ │ │ │ │ └── navigation-bar-loading.wxss
│ │ │ │ ├── navigator
│ │ │ │ │ ├── navigator.js
│ │ │ │ │ ├── navigator.json
│ │ │ │ │ ├── navigator.wxml
│ │ │ │ │ └── navigator.wxss
│ │ │ │ ├── pullDownRefresh
│ │ │ │ │ ├── pull-down-refresh.js
│ │ │ │ │ ├── pull-down-refresh.json
│ │ │ │ │ ├── pull-down-refresh.wxml
│ │ │ │ │ └── pull-down-refresh.wxss
│ │ │ │ ├── scrollPage
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.json
│ │ │ │ │ └── index.wxml
│ │ │ │ ├── tabBar
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── index.wxml
│ │ │ │ └── toast
│ │ │ │ │ ├── toast.js
│ │ │ │ │ ├── toast.json
│ │ │ │ │ └── toast.wxml
│ │ │ ├── Location
│ │ │ │ ├── chooseLocation
│ │ │ │ │ ├── choose-location.js
│ │ │ │ │ ├── choose-location.json
│ │ │ │ │ ├── choose-location.wxml
│ │ │ │ │ └── choose-location.wxss
│ │ │ │ ├── getLocation
│ │ │ │ │ ├── get-location.js
│ │ │ │ │ ├── get-location.json
│ │ │ │ │ ├── get-location.wxml
│ │ │ │ │ └── get-location.wxss
│ │ │ │ ├── mapManager
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── index.wxml
│ │ │ │ └── openLocation
│ │ │ │ │ ├── open-location.js
│ │ │ │ │ ├── open-location.json
│ │ │ │ │ ├── open-location.wxml
│ │ │ │ │ └── open-location.wxss
│ │ │ ├── Media
│ │ │ │ ├── backgroundAudio
│ │ │ │ │ ├── background-audio.js
│ │ │ │ │ ├── background-audio.json
│ │ │ │ │ ├── background-audio.wxml
│ │ │ │ │ └── background-audio.wxss
│ │ │ │ ├── image
│ │ │ │ │ ├── image.js
│ │ │ │ │ ├── image.json
│ │ │ │ │ ├── image.wxml
│ │ │ │ │ └── image.wxss
│ │ │ │ ├── video
│ │ │ │ │ ├── video.js
│ │ │ │ │ ├── video.json
│ │ │ │ │ ├── video.wxml
│ │ │ │ │ └── video.wxss
│ │ │ │ ├── videoManager
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── index.wxml
│ │ │ │ └── voice
│ │ │ │ │ ├── voice.js
│ │ │ │ │ ├── voice.json
│ │ │ │ │ ├── voice.wxml
│ │ │ │ │ └── voice.wxss
│ │ │ ├── Network
│ │ │ │ ├── downloadFile
│ │ │ │ │ ├── download-file.js
│ │ │ │ │ ├── download-file.json
│ │ │ │ │ ├── download-file.wxml
│ │ │ │ │ └── download-file.wxss
│ │ │ │ ├── request
│ │ │ │ │ ├── request.js
│ │ │ │ │ ├── request.json
│ │ │ │ │ ├── request.wxml
│ │ │ │ │ └── request.wxss
│ │ │ │ ├── uploadFile
│ │ │ │ │ ├── upload-file.js
│ │ │ │ │ ├── upload-file.json
│ │ │ │ │ ├── upload-file.wxml
│ │ │ │ │ └── upload-file.wxss
│ │ │ │ └── websocket
│ │ │ │ │ ├── web-socket.js
│ │ │ │ │ ├── web-socket.json
│ │ │ │ │ ├── web-socket.wxml
│ │ │ │ │ └── web-socket.wxss
│ │ │ └── Storage
│ │ │ │ ├── storage.js
│ │ │ │ ├── storage.json
│ │ │ │ ├── storage.wxml
│ │ │ │ └── storage.wxss
│ │ └── resources
│ │ │ └── kind
│ │ │ ├── api.png
│ │ │ ├── device.png
│ │ │ ├── feedback.png
│ │ │ ├── file.png
│ │ │ ├── interface.png
│ │ │ ├── location.png
│ │ │ ├── logo.png
│ │ │ ├── media.png
│ │ │ ├── network.png
│ │ │ ├── page.png
│ │ │ └── storage.png
│ └── common
│ │ ├── index.wxss
│ │ └── lib
│ │ └── weui.wxss
├── project.config.json
└── util
│ └── util.js
└── server-api
├── request_server
├── app.js
├── bin
│ └── www
├── modules
│ └── fileFunc.js
├── node_modules
│ ├── .bin
│ │ ├── acorn
│ │ ├── cleancss
│ │ ├── jade
│ │ ├── mime
│ │ ├── mkdirp
│ │ └── uglifyjs
│ ├── accepts
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── acorn-globals
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── acorn
│ │ ├── .editorconfig
│ │ ├── .gitattributes
│ │ ├── .npmignore
│ │ ├── .tern-project
│ │ ├── .travis.yml
│ │ ├── AUTHORS
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bin
│ │ │ ├── acorn
│ │ │ ├── build-acorn.js
│ │ │ ├── generate-identifier-regex.js
│ │ │ └── update_authors.sh
│ │ ├── dist
│ │ │ ├── .keep
│ │ │ ├── acorn.js
│ │ │ ├── acorn_loose.js
│ │ │ └── walk.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── bin
│ │ │ └── acorn.js
│ │ │ ├── expression.js
│ │ │ ├── identifier.js
│ │ │ ├── index.js
│ │ │ ├── location.js
│ │ │ ├── locutil.js
│ │ │ ├── loose
│ │ │ ├── acorn_loose.js
│ │ │ ├── expression.js
│ │ │ ├── index.js
│ │ │ ├── parseutil.js
│ │ │ ├── state.js
│ │ │ ├── statement.js
│ │ │ └── tokenize.js
│ │ │ ├── lval.js
│ │ │ ├── node.js
│ │ │ ├── options.js
│ │ │ ├── parseutil.js
│ │ │ ├── state.js
│ │ │ ├── statement.js
│ │ │ ├── tokencontext.js
│ │ │ ├── tokenize.js
│ │ │ ├── tokentype.js
│ │ │ ├── util.js
│ │ │ ├── walk
│ │ │ └── index.js
│ │ │ └── whitespace.js
│ ├── align-text
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── amdefine
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── amdefine.js
│ │ ├── intercept.js
│ │ └── package.json
│ ├── array-flatten
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── array-flatten.js
│ │ └── package.json
│ ├── asap
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── asap.js
│ │ └── package.json
│ ├── basic-auth
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── body-parser
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── read.js
│ │ │ └── types
│ │ │ │ ├── json.js
│ │ │ │ ├── raw.js
│ │ │ │ ├── text.js
│ │ │ │ └── urlencoded.js
│ │ └── package.json
│ ├── bytes
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── camelcase
│ │ ├── index.js
│ │ ├── license
│ │ ├── package.json
│ │ └── readme.md
│ ├── center-align
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── utils.js
│ ├── character-parser
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── clean-css
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bin
│ │ │ └── cleancss
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── clean.js
│ │ │ ├── colors
│ │ │ │ ├── hex-name-shortener.js
│ │ │ │ ├── hsl.js
│ │ │ │ └── rgb.js
│ │ │ ├── imports
│ │ │ │ └── inliner.js
│ │ │ ├── properties
│ │ │ │ ├── break-up.js
│ │ │ │ ├── can-override.js
│ │ │ │ ├── clone.js
│ │ │ │ ├── compactable.js
│ │ │ │ ├── every-combination.js
│ │ │ │ ├── has-inherit.js
│ │ │ │ ├── invalid-property-error.js
│ │ │ │ ├── optimizer.js
│ │ │ │ ├── override-compactor.js
│ │ │ │ ├── populate-components.js
│ │ │ │ ├── remove-unused.js
│ │ │ │ ├── restore-from-optimizing.js
│ │ │ │ ├── restore.js
│ │ │ │ ├── shorthand-compactor.js
│ │ │ │ ├── validator.js
│ │ │ │ ├── vendor-prefixes.js
│ │ │ │ └── wrap-for-optimizing.js
│ │ │ ├── selectors
│ │ │ │ ├── advanced.js
│ │ │ │ ├── clean-up.js
│ │ │ │ ├── extractor.js
│ │ │ │ ├── is-special.js
│ │ │ │ ├── merge-adjacent.js
│ │ │ │ ├── merge-media-queries.js
│ │ │ │ ├── merge-non-adjacent-by-body.js
│ │ │ │ ├── merge-non-adjacent-by-selector.js
│ │ │ │ ├── reduce-non-adjacent.js
│ │ │ │ ├── remove-duplicate-media-queries.js
│ │ │ │ ├── remove-duplicates.js
│ │ │ │ ├── reorderable.js
│ │ │ │ ├── restructure.js
│ │ │ │ └── simple.js
│ │ │ ├── source-maps
│ │ │ │ └── track.js
│ │ │ ├── stringifier
│ │ │ │ ├── helpers.js
│ │ │ │ ├── one-time.js
│ │ │ │ ├── simple.js
│ │ │ │ └── source-maps.js
│ │ │ ├── text
│ │ │ │ ├── comments-processor.js
│ │ │ │ ├── escape-store.js
│ │ │ │ ├── expressions-processor.js
│ │ │ │ ├── free-text-processor.js
│ │ │ │ └── urls-processor.js
│ │ │ ├── tokenizer
│ │ │ │ ├── extract-properties.js
│ │ │ │ ├── extract-selectors.js
│ │ │ │ └── tokenize.js
│ │ │ ├── urls
│ │ │ │ ├── rebase.js
│ │ │ │ ├── reduce.js
│ │ │ │ └── rewrite.js
│ │ │ └── utils
│ │ │ │ ├── clone-array.js
│ │ │ │ ├── compatibility.js
│ │ │ │ ├── input-source-map-tracker.js
│ │ │ │ ├── object.js
│ │ │ │ ├── quote-scanner.js
│ │ │ │ ├── source-reader.js
│ │ │ │ ├── source-tracker.js
│ │ │ │ └── split.js
│ │ ├── node_modules
│ │ │ └── commander
│ │ │ │ ├── History.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── Readme.md
│ │ │ │ ├── index.js
│ │ │ │ └── package.json
│ │ └── package.json
│ ├── cliui
│ │ ├── .coveralls.yml
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ └── wordwrap
│ │ │ │ ├── .npmignore
│ │ │ │ ├── README.markdown
│ │ │ │ ├── example
│ │ │ │ ├── center.js
│ │ │ │ └── meat.js
│ │ │ │ ├── index.js
│ │ │ │ ├── package.json
│ │ │ │ └── test
│ │ │ │ ├── break.js
│ │ │ │ ├── idleness.txt
│ │ │ │ └── wrap.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── cliui.js
│ ├── commander
│ │ ├── History.md
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── connect-timeout
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── constantinople
│ │ ├── .gitattributes
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── content-disposition
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── content-type
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── cookie-parser
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── cookie-signature
│ │ ├── .npmignore
│ │ ├── History.md
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── cookie
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── core-util-is
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── float.patch
│ │ ├── lib
│ │ │ └── util.js
│ │ ├── package.json
│ │ └── test.js
│ ├── css-parse
│ │ ├── .npmignore
│ │ ├── History.md
│ │ ├── Makefile
│ │ ├── Readme.md
│ │ ├── component.json
│ │ ├── index.js
│ │ └── package.json
│ ├── css-stringify
│ │ ├── .npmignore
│ │ ├── History.md
│ │ ├── Makefile
│ │ ├── Readme.md
│ │ ├── component.json
│ │ ├── index.js
│ │ └── package.json
│ ├── css
│ │ ├── .npmignore
│ │ ├── History.md
│ │ ├── Makefile
│ │ ├── Readme.md
│ │ ├── benchmark.js
│ │ ├── component.json
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test.js
│ ├── debug
│ │ ├── .coveralls.yml
│ │ ├── .eslintrc
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── component.json
│ │ ├── karma.conf.js
│ │ ├── node.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── browser.js
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── inspector-log.js
│ │ │ └── node.js
│ ├── decamelize
│ │ ├── index.js
│ │ ├── license
│ │ ├── package.json
│ │ └── readme.md
│ ├── depd
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── browser
│ │ │ │ └── index.js
│ │ │ └── compat
│ │ │ │ ├── callsite-tostring.js
│ │ │ │ ├── event-listener-count.js
│ │ │ │ └── index.js
│ │ └── package.json
│ ├── destroy
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── ee-first
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── encodeurl
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── escape-html
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── etag
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── express
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── application.js
│ │ │ ├── express.js
│ │ │ ├── middleware
│ │ │ │ ├── init.js
│ │ │ │ └── query.js
│ │ │ ├── request.js
│ │ │ ├── response.js
│ │ │ ├── router
│ │ │ │ ├── index.js
│ │ │ │ ├── layer.js
│ │ │ │ └── route.js
│ │ │ ├── utils.js
│ │ │ └── view.js
│ │ └── package.json
│ ├── finalhandler
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── formidable
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── file.js
│ │ │ ├── incoming_form.js
│ │ │ ├── index.js
│ │ │ ├── json_parser.js
│ │ │ ├── multipart_parser.js
│ │ │ ├── octet_parser.js
│ │ │ └── querystring_parser.js
│ │ ├── package.json
│ │ └── yarn.lock
│ ├── forwarded
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── fresh
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── graceful-readlink
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── http-errors
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ ├── depd
│ │ │ │ ├── History.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── Readme.md
│ │ │ │ ├── index.js
│ │ │ │ ├── lib
│ │ │ │ │ ├── browser
│ │ │ │ │ │ └── index.js
│ │ │ │ │ └── compat
│ │ │ │ │ │ ├── callsite-tostring.js
│ │ │ │ │ │ ├── event-listener-count.js
│ │ │ │ │ │ └── index.js
│ │ │ │ └── package.json
│ │ │ └── setprototypeof
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── index.js
│ │ │ │ └── package.json
│ │ └── package.json
│ ├── iconv-lite
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── Changelog.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── encodings
│ │ │ ├── dbcs-codec.js
│ │ │ ├── dbcs-data.js
│ │ │ ├── index.js
│ │ │ ├── internal.js
│ │ │ ├── sbcs-codec.js
│ │ │ ├── sbcs-data-generated.js
│ │ │ ├── sbcs-data.js
│ │ │ ├── tables
│ │ │ │ ├── big5-added.json
│ │ │ │ ├── cp936.json
│ │ │ │ ├── cp949.json
│ │ │ │ ├── cp950.json
│ │ │ │ ├── eucjp.json
│ │ │ │ ├── gb18030-ranges.json
│ │ │ │ ├── gbk-added.json
│ │ │ │ └── shiftjis.json
│ │ │ ├── utf16.js
│ │ │ └── utf7.js
│ │ ├── lib
│ │ │ ├── bom-handling.js
│ │ │ ├── extend-node.js
│ │ │ ├── index.d.ts
│ │ │ ├── index.js
│ │ │ └── streams.js
│ │ └── package.json
│ ├── inherits
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── inherits.js
│ │ ├── inherits_browser.js
│ │ └── package.json
│ ├── ipaddr.js
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── Cakefile
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bower.json
│ │ ├── ipaddr.min.js
│ │ ├── lib
│ │ │ ├── ipaddr.js
│ │ │ └── ipaddr.js.d.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ └── ipaddr.coffee
│ │ └── test
│ │ │ └── ipaddr.test.coffee
│ ├── is-buffer
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── basic.js
│ ├── is-promise
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── index.js
│ │ ├── package.json
│ │ └── readme.md
│ ├── isarray
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── component.json
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test.js
│ ├── jade
│ │ ├── .npmignore
│ │ ├── .release.json
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── Readme_zh-cn.md
│ │ ├── bin
│ │ │ └── jade.js
│ │ ├── block-code.html
│ │ ├── component.json
│ │ ├── jade.js
│ │ ├── lib
│ │ │ ├── compiler.js
│ │ │ ├── doctypes.js
│ │ │ ├── filters-client.js
│ │ │ ├── filters.js
│ │ │ ├── index.js
│ │ │ ├── inline-tags.js
│ │ │ ├── lexer.js
│ │ │ ├── nodes
│ │ │ │ ├── attrs.js
│ │ │ │ ├── block-comment.js
│ │ │ │ ├── block.js
│ │ │ │ ├── case.js
│ │ │ │ ├── code.js
│ │ │ │ ├── comment.js
│ │ │ │ ├── doctype.js
│ │ │ │ ├── each.js
│ │ │ │ ├── filter.js
│ │ │ │ ├── index.js
│ │ │ │ ├── literal.js
│ │ │ │ ├── mixin-block.js
│ │ │ │ ├── mixin.js
│ │ │ │ ├── node.js
│ │ │ │ ├── tag.js
│ │ │ │ └── text.js
│ │ │ ├── parser.js
│ │ │ ├── runtime.js
│ │ │ └── utils.js
│ │ ├── package.json
│ │ ├── release.js
│ │ └── runtime.js
│ ├── jstransformer
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── kind-of
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── lazy-cache
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── longest
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── media-typer
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── merge-descriptors
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── methods
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── mime-db
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── db.json
│ │ ├── index.js
│ │ └── package.json
│ ├── mime-types
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── mime
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── build
│ │ │ ├── build.js
│ │ │ └── test.js
│ │ ├── cli.js
│ │ ├── mime.js
│ │ ├── package.json
│ │ └── types.json
│ ├── minimist
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── example
│ │ │ └── parse.js
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── dash.js
│ │ │ ├── default_bool.js
│ │ │ ├── dotted.js
│ │ │ ├── long.js
│ │ │ ├── parse.js
│ │ │ ├── parse_modified.js
│ │ │ ├── short.js
│ │ │ └── whitespace.js
│ ├── mkdirp
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── bin
│ │ │ ├── cmd.js
│ │ │ └── usage.txt
│ │ ├── examples
│ │ │ └── pow.js
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── chmod.js
│ │ │ ├── clobber.js
│ │ │ ├── mkdirp.js
│ │ │ ├── opts_fs.js
│ │ │ ├── opts_fs_sync.js
│ │ │ ├── perm.js
│ │ │ ├── perm_sync.js
│ │ │ ├── race.js
│ │ │ ├── rel.js
│ │ │ ├── return.js
│ │ │ ├── return_sync.js
│ │ │ ├── root.js
│ │ │ ├── sync.js
│ │ │ ├── umask.js
│ │ │ └── umask_sync.js
│ ├── morgan
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── ms
│ │ ├── index.js
│ │ ├── license.md
│ │ ├── package.json
│ │ └── readme.md
│ ├── negotiator
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── charset.js
│ │ │ ├── encoding.js
│ │ │ ├── language.js
│ │ │ └── mediaType.js
│ │ └── package.json
│ ├── on-finished
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── on-headers
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── optimist
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── example
│ │ │ ├── bool.js
│ │ │ ├── boolean_double.js
│ │ │ ├── boolean_single.js
│ │ │ ├── default_hash.js
│ │ │ ├── default_singles.js
│ │ │ ├── divide.js
│ │ │ ├── line_count.js
│ │ │ ├── line_count_options.js
│ │ │ ├── line_count_wrap.js
│ │ │ ├── nonopt.js
│ │ │ ├── reflect.js
│ │ │ ├── short.js
│ │ │ ├── string.js
│ │ │ ├── usage-options.js
│ │ │ └── xup.js
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── _.js
│ │ │ ├── _
│ │ │ ├── argv.js
│ │ │ └── bin.js
│ │ │ ├── parse.js
│ │ │ └── usage.js
│ ├── parseurl
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── path-to-regexp
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── process-nextick-args
│ │ ├── index.js
│ │ ├── license.md
│ │ ├── package.json
│ │ └── readme.md
│ ├── progress-stream
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── http.js
│ │ │ └── request.js
│ ├── promise
│ │ ├── .jshintrc
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── core.js
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── core.js
│ │ │ ├── done.js
│ │ │ ├── es6-extensions.js
│ │ │ └── node-extensions.js
│ │ ├── package.json
│ │ ├── polyfill-done.js
│ │ └── polyfill.js
│ ├── proxy-addr
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── qs
│ │ ├── .editorconfig
│ │ ├── .eslintignore
│ │ ├── .eslintrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── dist
│ │ │ └── qs.js
│ │ ├── lib
│ │ │ ├── formats.js
│ │ │ ├── index.js
│ │ │ ├── parse.js
│ │ │ ├── stringify.js
│ │ │ └── utils.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── .eslintrc
│ │ │ ├── index.js
│ │ │ ├── parse.js
│ │ │ ├── stringify.js
│ │ │ └── utils.js
│ ├── range-parser
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── raw-body
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── package.json
│ ├── readable-stream
│ │ ├── .travis.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── GOVERNANCE.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── doc
│ │ │ └── wg-meetings
│ │ │ │ └── 2015-01-30.md
│ │ ├── duplex-browser.js
│ │ ├── duplex.js
│ │ ├── lib
│ │ │ ├── _stream_duplex.js
│ │ │ ├── _stream_passthrough.js
│ │ │ ├── _stream_readable.js
│ │ │ ├── _stream_transform.js
│ │ │ ├── _stream_writable.js
│ │ │ └── internal
│ │ │ │ └── streams
│ │ │ │ ├── BufferList.js
│ │ │ │ ├── destroy.js
│ │ │ │ ├── stream-browser.js
│ │ │ │ └── stream.js
│ │ ├── package.json
│ │ ├── passthrough.js
│ │ ├── readable-browser.js
│ │ ├── readable.js
│ │ ├── transform.js
│ │ ├── writable-browser.js
│ │ └── writable.js
│ ├── repeat-string
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── right-align
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── safe-buffer
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test.js
│ ├── send
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── serve-static
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── setprototypeof
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── package.json
│ ├── source-map
│ │ ├── README.md
│ │ ├── build
│ │ │ ├── assert-shim.js
│ │ │ ├── mini-require.js
│ │ │ ├── prefix-source-map.jsm
│ │ │ ├── prefix-utils.jsm
│ │ │ ├── suffix-browser.js
│ │ │ ├── suffix-source-map.jsm
│ │ │ ├── suffix-utils.jsm
│ │ │ ├── test-prefix.js
│ │ │ └── test-suffix.js
│ │ ├── lib
│ │ │ ├── source-map.js
│ │ │ └── source-map
│ │ │ │ ├── array-set.js
│ │ │ │ ├── base64-vlq.js
│ │ │ │ ├── base64.js
│ │ │ │ ├── binary-search.js
│ │ │ │ ├── mapping-list.js
│ │ │ │ ├── quick-sort.js
│ │ │ │ ├── source-map-consumer.js
│ │ │ │ ├── source-map-generator.js
│ │ │ │ ├── source-node.js
│ │ │ │ └── util.js
│ │ └── package.json
│ ├── speedometer
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── statuses
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── codes.json
│ │ ├── index.js
│ │ └── package.json
│ ├── string_decoder
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ └── string_decoder.js
│ │ └── package.json
│ ├── through2
│ │ ├── .npmignore
│ │ ├── LICENSE.html
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── package.json
│ │ └── through2.js
│ ├── transformers
│ │ ├── .npmignore
│ │ ├── README.md
│ │ ├── history.md
│ │ ├── lib
│ │ │ ├── shared.js
│ │ │ └── transformers.js
│ │ ├── node_modules
│ │ │ ├── .bin
│ │ │ │ └── uglifyjs
│ │ │ ├── is-promise
│ │ │ │ ├── .npmignore
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── LICENSE
│ │ │ │ ├── index.js
│ │ │ │ ├── package.json
│ │ │ │ └── readme.md
│ │ │ ├── promise
│ │ │ │ ├── .npmignore
│ │ │ │ ├── Readme.md
│ │ │ │ ├── index.js
│ │ │ │ └── package.json
│ │ │ ├── source-map
│ │ │ │ ├── .npmignore
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── Makefile.dryice.js
│ │ │ │ ├── README.md
│ │ │ │ ├── build
│ │ │ │ │ ├── assert-shim.js
│ │ │ │ │ ├── mini-require.js
│ │ │ │ │ ├── prefix-source-map.jsm
│ │ │ │ │ ├── prefix-utils.jsm
│ │ │ │ │ ├── suffix-browser.js
│ │ │ │ │ ├── suffix-source-map.jsm
│ │ │ │ │ ├── suffix-utils.jsm
│ │ │ │ │ ├── test-prefix.js
│ │ │ │ │ └── test-suffix.js
│ │ │ │ ├── lib
│ │ │ │ │ ├── source-map.js
│ │ │ │ │ └── source-map
│ │ │ │ │ │ ├── array-set.js
│ │ │ │ │ │ ├── base64-vlq.js
│ │ │ │ │ │ ├── base64.js
│ │ │ │ │ │ ├── binary-search.js
│ │ │ │ │ │ ├── mapping-list.js
│ │ │ │ │ │ ├── source-map-consumer.js
│ │ │ │ │ │ ├── source-map-generator.js
│ │ │ │ │ │ ├── source-node.js
│ │ │ │ │ │ └── util.js
│ │ │ │ ├── package.json
│ │ │ │ └── test
│ │ │ │ │ ├── run-tests.js
│ │ │ │ │ └── source-map
│ │ │ │ │ ├── test-api.js
│ │ │ │ │ ├── test-array-set.js
│ │ │ │ │ ├── test-base64-vlq.js
│ │ │ │ │ ├── test-base64.js
│ │ │ │ │ ├── test-binary-search.js
│ │ │ │ │ ├── test-dog-fooding.js
│ │ │ │ │ ├── test-source-map-consumer.js
│ │ │ │ │ ├── test-source-map-generator.js
│ │ │ │ │ ├── test-source-node.js
│ │ │ │ │ ├── test-util.js
│ │ │ │ │ └── util.js
│ │ │ └── uglify-js
│ │ │ │ ├── .npmignore
│ │ │ │ ├── README.md
│ │ │ │ ├── bin
│ │ │ │ └── uglifyjs
│ │ │ │ ├── lib
│ │ │ │ ├── ast.js
│ │ │ │ ├── compress.js
│ │ │ │ ├── mozilla-ast.js
│ │ │ │ ├── output.js
│ │ │ │ ├── parse.js
│ │ │ │ ├── scope.js
│ │ │ │ ├── sourcemap.js
│ │ │ │ ├── transform.js
│ │ │ │ └── utils.js
│ │ │ │ ├── package.json
│ │ │ │ ├── test
│ │ │ │ ├── compress
│ │ │ │ │ ├── arrays.js
│ │ │ │ │ ├── blocks.js
│ │ │ │ │ ├── conditionals.js
│ │ │ │ │ ├── dead-code.js
│ │ │ │ │ ├── debugger.js
│ │ │ │ │ ├── drop-unused.js
│ │ │ │ │ ├── issue-105.js
│ │ │ │ │ ├── issue-12.js
│ │ │ │ │ ├── issue-22.js
│ │ │ │ │ ├── issue-44.js
│ │ │ │ │ ├── issue-59.js
│ │ │ │ │ ├── labels.js
│ │ │ │ │ ├── loops.js
│ │ │ │ │ ├── properties.js
│ │ │ │ │ ├── sequences.js
│ │ │ │ │ └── switch.js
│ │ │ │ └── run-tests.js
│ │ │ │ └── tools
│ │ │ │ └── node.js
│ │ └── package.json
│ ├── type-is
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── uglify-js
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bin
│ │ │ ├── extract-props.js
│ │ │ └── uglifyjs
│ │ ├── lib
│ │ │ ├── ast.js
│ │ │ ├── compress.js
│ │ │ ├── mozilla-ast.js
│ │ │ ├── output.js
│ │ │ ├── parse.js
│ │ │ ├── propmangle.js
│ │ │ ├── scope.js
│ │ │ ├── sourcemap.js
│ │ │ ├── transform.js
│ │ │ └── utils.js
│ │ ├── node_modules
│ │ │ └── source-map
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── dist
│ │ │ │ ├── source-map.debug.js
│ │ │ │ ├── source-map.js
│ │ │ │ ├── source-map.min.js
│ │ │ │ └── source-map.min.js.map
│ │ │ │ ├── lib
│ │ │ │ ├── array-set.js
│ │ │ │ ├── base64-vlq.js
│ │ │ │ ├── base64.js
│ │ │ │ ├── binary-search.js
│ │ │ │ ├── mapping-list.js
│ │ │ │ ├── quick-sort.js
│ │ │ │ ├── source-map-consumer.js
│ │ │ │ ├── source-map-generator.js
│ │ │ │ ├── source-node.js
│ │ │ │ └── util.js
│ │ │ │ ├── package.json
│ │ │ │ └── source-map.js
│ │ ├── package.json
│ │ └── tools
│ │ │ ├── domprops.json
│ │ │ ├── exports.js
│ │ │ ├── node.js
│ │ │ └── props.html
│ ├── uglify-to-browserify
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── unpipe
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── util-deprecate
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── browser.js
│ │ ├── node.js
│ │ └── package.json
│ ├── utils-merge
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── vary
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── void-elements
│ │ ├── .gitattributes
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── pre-publish.js
│ │ └── test
│ │ │ └── index.js
│ ├── window-size
│ │ ├── LICENSE-MIT
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── with
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ ├── .bin
│ │ │ │ └── acorn
│ │ │ └── acorn
│ │ │ │ ├── .editorconfig
│ │ │ │ ├── .gitattributes
│ │ │ │ ├── .npmignore
│ │ │ │ ├── .tern-project
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── AUTHORS
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── bin
│ │ │ │ ├── acorn
│ │ │ │ ├── build-acorn.js
│ │ │ │ ├── generate-identifier-regex.js
│ │ │ │ ├── prepublish.sh
│ │ │ │ ├── update_authors.sh
│ │ │ │ └── without_eval
│ │ │ │ ├── dist
│ │ │ │ ├── .keep
│ │ │ │ ├── acorn.js
│ │ │ │ ├── acorn_csp.js
│ │ │ │ ├── acorn_loose.js
│ │ │ │ └── walk.js
│ │ │ │ ├── package.json
│ │ │ │ └── src
│ │ │ │ ├── expression.js
│ │ │ │ ├── identifier.js
│ │ │ │ ├── index.js
│ │ │ │ ├── location.js
│ │ │ │ ├── loose
│ │ │ │ ├── acorn_loose.js
│ │ │ │ ├── expression.js
│ │ │ │ ├── index.js
│ │ │ │ ├── parseutil.js
│ │ │ │ ├── state.js
│ │ │ │ ├── statement.js
│ │ │ │ └── tokenize.js
│ │ │ │ ├── lval.js
│ │ │ │ ├── node.js
│ │ │ │ ├── options.js
│ │ │ │ ├── parseutil.js
│ │ │ │ ├── state.js
│ │ │ │ ├── statement.js
│ │ │ │ ├── tokencontext.js
│ │ │ │ ├── tokenize.js
│ │ │ │ ├── tokentype.js
│ │ │ │ ├── util.js
│ │ │ │ ├── walk
│ │ │ │ └── index.js
│ │ │ │ └── whitespace.js
│ │ └── package.json
│ ├── wordwrap
│ │ ├── LICENSE
│ │ ├── README.markdown
│ │ ├── example
│ │ │ ├── center.js
│ │ │ └── meat.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── break.js
│ │ │ ├── idleness.txt
│ │ │ └── wrap.js
│ ├── xtend
│ │ ├── .jshintrc
│ │ ├── .npmignore
│ │ ├── LICENCE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── immutable.js
│ │ ├── mutable.js
│ │ ├── package.json
│ │ └── test.js
│ └── yargs
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── completion.sh.hbs
│ │ ├── index.js
│ │ ├── lib
│ │ ├── completion.js
│ │ ├── parser.js
│ │ ├── usage.js
│ │ └── validation.js
│ │ └── package.json
├── package.json
├── public
│ └── upload
│ │ ├── wx2c2fa13181238b3e.o6zAJs8HWgA1U6A7-_fC3em1Vahw.KSITlE7OIebo66ff706b1e19c06f46f026d0589cc265.jpeg
│ │ └── wx2c2fa13181238b3e.o6zAJs8HWgA1U6A7-_fC3em1Vahw.Mc2ZPKke8aAA66ff706b1e19c06f46f026d0589cc265.jpeg
└── routes
│ ├── index.js
│ ├── upload.js
│ └── users.js
└── websocket_server
└── index.js
/client-api/app.js:
--------------------------------------------------------------------------------
1 | App({
2 | onLaunch: function () {
3 | console.log('App Launch')
4 | },
5 | onShow: function () {
6 | console.log('App Show')
7 | },
8 | onHide: function () {
9 | console.log('App Hide');
10 | },
11 | globalData: {
12 | }
13 | })
14 |
--------------------------------------------------------------------------------
/client-api/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 小程序配置文件
3 | */
4 |
5 |
6 | var config = {
7 |
8 | // 测试的请求地址,用于测试会话
9 | requestUrl: `http://127.0.0.1:3003/request`,
10 |
11 | // 测试的信道服务接口
12 | tunnelUrl: `ws://127.0.0.1:3306`,
13 |
14 | // 上传文件接口
15 | uploadFileUrl: `http://127.0.0.1:3003/upload`,
16 |
17 | // 下载文件接口
18 | downloadFileUrl: `https://11.url.cn/now/h5/img/red_62ae947.png`
19 | };
20 |
21 | module.exports = config
22 |
--------------------------------------------------------------------------------
/client-api/image/green_tri.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/green_tri.png
--------------------------------------------------------------------------------
/client-api/image/icon64_appwx_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/icon64_appwx_logo.png
--------------------------------------------------------------------------------
/client-api/image/icon_API.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/icon_API.png
--------------------------------------------------------------------------------
/client-api/image/icon_API_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/icon_API_HL.png
--------------------------------------------------------------------------------
/client-api/image/icon_component.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/icon_component.png
--------------------------------------------------------------------------------
/client-api/image/icon_component_HL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/icon_component_HL.png
--------------------------------------------------------------------------------
/client-api/image/icon_foot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/icon_foot.png
--------------------------------------------------------------------------------
/client-api/image/index.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/index.png
--------------------------------------------------------------------------------
/client-api/image/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/location.png
--------------------------------------------------------------------------------
/client-api/image/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/pause.png
--------------------------------------------------------------------------------
/client-api/image/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/play.png
--------------------------------------------------------------------------------
/client-api/image/plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/plus.png
--------------------------------------------------------------------------------
/client-api/image/record.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/record.png
--------------------------------------------------------------------------------
/client-api/image/stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/stop.png
--------------------------------------------------------------------------------
/client-api/image/tabbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/tabbar.png
--------------------------------------------------------------------------------
/client-api/image/trash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/trash.png
--------------------------------------------------------------------------------
/client-api/image/wechat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/wechat.png
--------------------------------------------------------------------------------
/client-api/image/wechatHL.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/image/wechatHL.png
--------------------------------------------------------------------------------
/client-api/page/API/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "小程序接口能力展示"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/index.wxss:
--------------------------------------------------------------------------------
1 | @import "../common/index.wxss";
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/accelerometer/on-accelerometer-change.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "监听重力感应数据"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/accelerometer/on-accelerometer-change.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 倾斜手机即可移动下方小球
10 |
11 |
12 |
13 |
14 |
15 | X: {{x}}
16 | Y: {{y}}
17 | Z: {{z}}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/accelerometer/on-accelerometer-change.wxss:
--------------------------------------------------------------------------------
1 | .page-body-xyz {
2 | display: flex;
3 | justify-content: space-between;
4 | width: 700rpx;
5 | margin-top: 90rpx;
6 | box-sizing: border-box;
7 | text-align: center;
8 | }
9 | .page-body-canvas {
10 | margin-top: 30rpx;
11 | width: 302px;
12 | height: 302px;
13 | position: relative;
14 | }
15 | .page-body-ball {
16 | position: absolute;
17 | top: 0;
18 | left: 0;
19 | width: 302px;
20 | height: 302px;
21 | }
22 | .page-body-title {
23 | margin-bottom: 0;
24 | font-size: 32rpx;
25 | width: 250rpx;
26 | }
27 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/compass/compass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/pages/Device/compass/compass.png
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/compass/on-compass-change.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {
3 | direction: 0
4 | },
5 | onReady: function () {
6 | var that = this
7 | wx.onCompassChange(function (res) {
8 | that.setData({
9 | direction: parseInt(res.direction)
10 | })
11 | })
12 | }
13 | })
14 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/compass/on-compass-change.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "监听罗盘数据"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/compass/on-compass-change.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 旋转手机即可获取方位信息
5 |
6 |
7 |
8 |
9 | {{direction}}
10 | o
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/compass/on-compass-change.wxss:
--------------------------------------------------------------------------------
1 | .direction {
2 | position: relative;
3 | margin-top: 70rpx;
4 | display: flex;
5 | width: 540rpx;
6 | height: 540rpx;
7 | align-items: center;
8 | justify-content: center;
9 | }
10 | .direction-value {
11 | position: relative;
12 | font-size: 200rpx;
13 | color: #353535;
14 | line-height: 1;
15 | z-index: 1;
16 | }
17 | .direction-degree {
18 | position: absolute;
19 | top: 0;
20 | right: -40rpx;
21 | font-size: 60rpx;
22 | }
23 | .bg-compass{
24 | position: absolute;
25 | top: 0;
26 | left: 0;
27 | width: 540rpx;
28 | height: 540rpx;
29 | transition: .1s;
30 | }
31 | .bg-compass-line{
32 | position: absolute;
33 | left: 267rpx;
34 | top: -10rpx;
35 | width: 6rpx;
36 | height: 56rpx;
37 | background-color: #1AAD19;
38 | border-radius: 999rpx;
39 | z-index: 1;
40 | }
41 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getNetworkType/get-network-type.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {
3 | hasNetworkType: false
4 | },
5 | onLoad() {
6 | // 监听网络变化
7 | wx.onNetworkStatusChange((res) => {
8 | console.log('网络变化', res);
9 | })
10 | },
11 | getNetworkType: function () {
12 | var that = this
13 | wx.getNetworkType({
14 | success: function (res) {
15 | console.log(res)
16 | that.setData({
17 | hasNetworkType: true,
18 | networkType: res.subtype || res.networkType
19 | })
20 | }
21 | })
22 | },
23 | clear: function () {
24 | this.setData({
25 | hasNetworkType: false,
26 | networkType: ''
27 | })
28 | }
29 | })
30 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getNetworkType/get-network-type.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "获取手机网络状态"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getNetworkType/get-network-type.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 网络状态
11 |
12 | 未获取
13 | 点击绿色按钮可获取网络状态
14 |
15 |
16 | {{networkType}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getNetworkType/get-network-type.wxss:
--------------------------------------------------------------------------------
1 | .page-body-info {
2 | height: 200rpx;
3 | }
4 | .page-body-text-network-type {
5 | font-size: 80rpx;
6 | font-family: -apple-system-font,Helvetica Neue,Helvetica,sans-serif;
7 | }
8 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getSystemInfo/get-system-info.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {
3 | systemInfo: {}
4 | },
5 | getSystemInfo: function () {
6 | var that = this
7 | wx.getSystemInfo({
8 | success: function (res) {
9 | console.log('手机设备信息', res);
10 | that.setData({
11 | systemInfo: res
12 | });
13 | }
14 | })
15 | }
16 | })
17 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getSystemInfo/get-system-info.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "获取手机系统信息"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/getSystemInfo/get-system-info.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../../common/lib/weui.wxss";
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/makePhoneCall/make-phone-call.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {
3 | disabled: true
4 | },
5 | bindInput: function(e) {
6 | this.inputValue = e.detail.value
7 |
8 | if (this.inputValue.length > 0) {
9 | this.setData({
10 | disabled: false
11 | })
12 | } else {
13 | this.setData({
14 | disabled: true
15 | })
16 | }
17 | },
18 | makePhoneCall: function () {
19 | var that = this
20 | wx.makePhoneCall({
21 | phoneNumber: this.inputValue,
22 | success: function () {
23 | console.log("成功拨打电话")
24 | }
25 | })
26 | }
27 | })
28 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/makePhoneCall/make-phone-call.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "打电话"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/makePhoneCall/make-phone-call.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 请在下方输入电话号码
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/makePhoneCall/make-phone-call.wxss:
--------------------------------------------------------------------------------
1 | .page-section{
2 | width: auto;
3 | margin: 30rpx;
4 | padding: 44rpx 60rpx 60rpx;
5 | background-color: #fff;
6 | font-size: 28rpx;
7 | }
8 | .desc{
9 | margin-bottom: 20rpx;
10 | }
11 | .input{
12 | height: 119rpx;
13 | line-height: 119rpx;
14 | font-size: 78rpx;
15 | border-bottom: 1rpx solid #E2E2E2;
16 | }
17 | .btn-area{
18 | padding: 0;
19 | }
20 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/scanCode/scan-code.js:
--------------------------------------------------------------------------------
1 | Page({
2 | data: {
3 | result: ''
4 | },
5 | scanCode: function () {
6 | var that = this
7 | wx.scanCode({
8 | success: function (res) {
9 | that.setData({
10 | result: res.result
11 | })
12 | },
13 | fail: function (res) {
14 | }
15 | })
16 | }
17 | })
18 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/scanCode/scan-code.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "扫码"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/scanCode/scan-code.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 扫码结果
4 |
5 |
6 | {{result}}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Device/scanCode/scan-code.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../../common/lib/weui.wxss";
2 |
3 | .weui-cell__bd{
4 | min-height: 48rpx;
5 | word-break: break-all;
6 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/File/demo.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/pages/File/demo.pdf
--------------------------------------------------------------------------------
/client-api/page/API/pages/File/file.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "文件"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/File/file.wxss:
--------------------------------------------------------------------------------
1 | .image {
2 | width: 100%;
3 | height: 360rpx;
4 | }
5 | .page-body-info {
6 | display: flex;
7 | box-sizing: border-box;
8 | padding: 30rpx;
9 | height: 420rpx;
10 | border-top: 1rpx solid #D9D9D9;
11 | border-bottom: 1rpx solid #D9D9D9;
12 | align-items: center;
13 | justify-content: center;
14 | }
15 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/actionSheet/action-sheet.js:
--------------------------------------------------------------------------------
1 | Page({
2 | actionSheetTap: function () {
3 | wx.showActionSheet({
4 | itemList: ['item1', 'item2', 'item3', 'item4'],
5 | success: function (e) {
6 | console.log(e.tapIndex)
7 | },
8 | fail: function(e) {
9 | console.log(e,'取消');
10 | }
11 | })
12 | }
13 | })
14 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/actionSheet/action-sheet.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "操作菜单"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/actionSheet/action-sheet.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/actionSheet/action-sheet.wxss:
--------------------------------------------------------------------------------
1 | /*
2 | .cancel {
3 | color: white;
4 | background: #303F9F;
5 | }
6 | .item {
7 | color: black;
8 | background: #C5CAE9;
9 | }*/
10 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/animation/animation.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "动画"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/animation/animation.wxss:
--------------------------------------------------------------------------------
1 | .animation-element-wrapper {
2 | display: flex;
3 | width: 100%;
4 | padding-top: 150rpx;
5 | padding-bottom: 150rpx;
6 | justify-content: center;
7 | overflow: hidden;
8 | background-color: #ffffff;
9 | }
10 | .animation-element {
11 | width: 200rpx;
12 | height: 200rpx;
13 | background-color: #1AAD19;
14 | }
15 | .animation-buttons {
16 | padding: 30rpx 50rpx 10rpx;
17 | width: 100%;
18 | height: 360rpx;
19 | box-sizing: border-box;
20 | }
21 | .animation-button {
22 | float: left;
23 | line-height: 2;
24 | width: 300rpx;
25 | margin: 15rpx 12rpx;
26 | }
27 |
28 | .animation-button-reset {
29 | width: 620rpx;
30 | }
31 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/canvas/canvas.js:
--------------------------------------------------------------------------------
1 | var example = require('./example.js')
2 |
3 | Page({
4 | onLoad: function () {
5 | this.context = wx.createContext()
6 |
7 | var methods = Object.keys(example)
8 | this.setData({
9 | methods: methods
10 | })
11 |
12 | var that = this
13 | methods.forEach(function (method) {
14 | that[method] = function () {
15 | example[method](that.context)
16 | var actions = that.context.getActions()
17 |
18 | wx.drawCanvas({
19 | canvasId: 'canvas',
20 | actions: actions
21 | })
22 | }
23 | })
24 | },
25 | toTempFilePath: function () {
26 | wx.canvasToTempFilePath({
27 | canvasId: 'canvas',
28 | success: function (res) {
29 | console.log(res)
30 | },
31 | fail: function (res) {
32 | console.log(res)
33 | }
34 | })
35 | }
36 | })
37 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/canvas/canvas.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "创建画布"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/canvas/canvas.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/canvas/canvas.wxss:
--------------------------------------------------------------------------------
1 | .canvas-element-wrapper {
2 | display: block;
3 | margin-bottom: 100rpx;
4 | }
5 | .canvas-element {
6 | width: 100%;
7 | height: 500rpx;
8 | background-color: #ffffff;
9 | }
10 | .canvas-buttons {
11 | padding: 30rpx 50rpx 10rpx;
12 | width: 100%;
13 | height: 360rpx;
14 | box-sizing: border-box;
15 | }
16 | .canvas-button {
17 | float: left;
18 | line-height: 2;
19 | width: 300rpx;
20 | margin: 15rpx 12rpx;
21 | }
22 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/modal/modal.js:
--------------------------------------------------------------------------------
1 | Page({
2 | modalTap: function(e) {
3 | wx.showModal({
4 | title: "弹窗标题",
5 | content: "弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内",
6 | showCancel: false,
7 | confirmText: "确定"
8 | })
9 | },
10 | noTitlemodalTap: function(e) {
11 | wx.showModal({
12 | content: "弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内",
13 | confirmText: "确定",
14 | cancelText: "取消",
15 | success: function(res) {
16 | console.log(res,'>>');
17 | }
18 | })
19 | }
20 | })
21 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/modal/modal.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "模态弹窗"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/modal/modal.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigationBar/navigation-bar-loading.js:
--------------------------------------------------------------------------------
1 | Page({
2 | showNavigationBarLoading: function () {
3 | wx.showNavigationBarLoading()
4 | },
5 | hideNavigationBarLoading: function () {
6 | wx.hideNavigationBarLoading()
7 | },
8 | setNavigationBarTitle: function () {
9 | wx.setNavigationBarTitle({
10 | title: '这是设置后的标题'
11 | });
12 | },
13 | setNavigationBarColor: function () {
14 | wx.setNavigationBarColor({
15 | frontColor: '#ffffff',
16 | backgroundColor: '#f28500',
17 | animation: {
18 | duration: 500,
19 | timingFunc: 'linear'
20 | }
21 | })
22 | }
23 | })
24 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigationBar/navigation-bar-loading.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "标题栏加载动画"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigationBar/navigation-bar-loading.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigationBar/navigation-bar-loading.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/pages/Interface/navigationBar/navigation-bar-loading.wxss
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigator/navigator.js:
--------------------------------------------------------------------------------
1 | Page({
2 | navigateTo: function () {
3 | wx.navigateTo({
4 | url: './navigator',
5 | complete: function() {
6 | console.log('打开页面后当前页面栈', getCurrentPages());
7 | }
8 | });
9 | setTimeout(() => {
10 | console.log('打开页面后当前页面栈123', getCurrentPages());
11 | }, 1000);
12 | },
13 | navigateBack: function () {
14 | wx.navigateBack();
15 | setTimeout(() => {
16 | console.log('返回后当前页面栈', getCurrentPages());
17 | }, 1000);
18 | },
19 | redirectTo: function () {
20 | wx.redirectTo({
21 | url: './navigator'
22 | });
23 | setTimeout(() => {
24 | console.log('返回后当前页面栈456', getCurrentPages());
25 | }, 1000);
26 | }
27 | })
28 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigator/navigator.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "页面跳转"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigator/navigator.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/navigator/navigator.wxss:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/pages/Interface/navigator/navigator.wxss
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/pullDownRefresh/pull-down-refresh.js:
--------------------------------------------------------------------------------
1 | Page({
2 | onPullDownRefresh: function () {
3 | wx.showToast({
4 | title: 'loading...',
5 | icon: 'loading'
6 | })
7 | console.log('onPullDownRefresh', new Date())
8 | },
9 | stopPullDownRefresh: function () {
10 | wx.stopPullDownRefresh({
11 | complete: function (res) {
12 | wx.hideToast()
13 | console.log(res, new Date())
14 | }
15 | })
16 | }
17 | })
18 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/pullDownRefresh/pull-down-refresh.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "下拉刷新",
3 | "enablePullDownRefresh": true
4 | }
5 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/pullDownRefresh/pull-down-refresh.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 下滑页面即可刷新
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/pullDownRefresh/pull-down-refresh.wxss:
--------------------------------------------------------------------------------
1 | .page-body-info {
2 | background-color: transparent;
3 | }
4 | .btn-area{
5 | margin-top: 300rpx;
6 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/scrollPage/index.js:
--------------------------------------------------------------------------------
1 | Page({
2 | onShow() {
3 | wx.pageScrollTo({
4 | scrollTop: 30,
5 | duration: 1200
6 | });
7 | }
8 | })
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/scrollPage/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "disableScroll": true
3 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/tabBar/index.js:
--------------------------------------------------------------------------------
1 | Page({
2 | hideTabBar() {
3 | wx.hideTabBar({
4 | animation: true
5 | });
6 | },
7 | showTabBar() {
8 | wx.showTabBar({
9 | animation: true
10 | });
11 | },
12 | setFirstTab() {
13 | wx.setTabBarBadge({
14 | index: 0,
15 | text: 'abc'
16 | })
17 | },
18 | setSecondTab() {
19 | wx.showTabBarRedDot({
20 | index: 1
21 | })
22 | }
23 | })
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/tabBar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/toast/toast.js:
--------------------------------------------------------------------------------
1 | Page({
2 | toast1Tap: function () {
3 | wx.showToast({
4 | title: "默认"
5 | })
6 | },
7 | toast2Tap: function () {
8 | wx.showToast({
9 | title: "duration 3000",
10 | duration: 3000
11 | })
12 | },
13 | toast3Tap: function () {
14 | wx.showToast({
15 | title: "loading",
16 | icon: "loading",
17 | duration: 5000
18 | })
19 | },
20 | hideToast: function () {
21 | wx.hideToast()
22 | }
23 | })
24 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/toast/toast.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "消息提示框"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Interface/toast/toast.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/chooseLocation/choose-location.js:
--------------------------------------------------------------------------------
1 | var util = require('../../../../../util/util.js');
2 |
3 | var formatLocation = util.formatLocation
4 |
5 | Page({
6 | data: {
7 | hasLocation: false,
8 | },
9 | chooseLocation: function () {
10 | var that = this
11 | wx.chooseLocation({
12 | success: function (res) {
13 | console.log(res)
14 | that.setData({
15 | hasLocation: true,
16 | location: formatLocation(res.longitude, res.latitude),
17 | locationAddress: res.address
18 | })
19 | }
20 | })
21 | },
22 | clear: function () {
23 | this.setData({
24 | hasLocation: false
25 | })
26 | }
27 | })
28 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/chooseLocation/choose-location.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "使用原生地图选择位置"
3 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/chooseLocation/choose-location.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 当前位置信息
6 |
7 | 未选择位置
8 |
9 |
10 | {{locationAddress}}
11 |
12 | E: {{location.longitude[0]}}°{{location.longitude[1]}}′
13 | N: {{location.latitude[0]}}°{{location.latitude[1]}}′
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/chooseLocation/choose-location.wxss:
--------------------------------------------------------------------------------
1 | .page-body-info{
2 | padding-bottom: 0;
3 | height: 440rpx;
4 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/getLocation/get-location.js:
--------------------------------------------------------------------------------
1 | var util = require('../../../../../util/util.js')
2 | var formatLocation = util.formatLocation
3 |
4 | Page({
5 | data: {
6 | hasLocation: false,
7 | },
8 | getLocation: function () {
9 | var that = this
10 | wx.getLocation({
11 | success: function (res) {
12 | console.log(res)
13 | that.setData({
14 | hasLocation: true,
15 | location: formatLocation(res.longitude, res.latitude)
16 | })
17 | }
18 | })
19 | },
20 | clear: function () {
21 | this.setData({
22 | hasLocation: false
23 | })
24 | }
25 | })
26 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/getLocation/get-location.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "获取位置"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/getLocation/get-location.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 当前位置经纬度
6 |
7 | 未获取
8 |
9 |
10 |
11 | E: {{location.longitude[0]}}°{{location.longitude[1]}}′
12 | N: {{location.latitude[0]}}°{{location.latitude[1]}}′
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/getLocation/get-location.wxss:
--------------------------------------------------------------------------------
1 | .page-body-info {
2 | height: 250rpx;
3 | }
4 | .page-body-text-small {
5 | font-size: 24rpx;
6 | color: #000;
7 | margin-bottom: 100rpx;
8 | }
9 | .page-body-text-location {
10 | display: flex;
11 | font-size: 50rpx;
12 | }
13 | .page-body-text-location text {
14 | margin: 10rpx;
15 | }
16 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/mapManager/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/openLocation/open-location.js:
--------------------------------------------------------------------------------
1 | Page({
2 | onHide: function () {
3 | console.log('page hide');
4 | },
5 | onShow: function () {
6 | console.log('page show');
7 | },
8 | openLocation: function (e) {
9 | console.log(e)
10 | var value = e.detail.value
11 | console.log(value)
12 | wx.openLocation({
13 | longitude: Number(value.longitude),
14 | latitude: Number(value.latitude),
15 | name: value.name,
16 | address: value.address
17 | })
18 | }
19 | })
20 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/openLocation/open-location.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "查看位置"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Location/openLocation/open-location.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../../common/lib/weui.wxss";
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/backgroundAudio/background-audio.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "背景音乐"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/backgroundAudio/background-audio.wxss:
--------------------------------------------------------------------------------
1 | image {
2 | width: 150rpx;
3 | height: 150rpx;
4 | }
5 |
6 | .page-body-wrapper {
7 | margin-top: 0;
8 | }
9 | .page-body-info {
10 | padding-bottom: 50rpx;
11 | }
12 | .time-big {
13 | font-size: 60rpx;
14 | margin: 20rpx;
15 | }
16 | .slider {
17 | width: 650rpx;
18 | }
19 | .play-time {
20 | font-size: 28rpx;
21 | width: 700rpx;
22 | padding: 20rpx 0;
23 | display: flex;
24 | justify-content: space-between;
25 | box-sizing: border-box;
26 | }
27 | .page-body-buttons {
28 | display: flex;
29 | justify-content: space-around;
30 | margin-top: 100rpx;
31 | }
32 | .page-body-button {
33 | width: 250rpx;
34 | text-align: center;
35 | }
36 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/image/image.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "图片"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/image/image.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../../common/lib/weui.wxss";
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/video/video.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "拍摄/选择视频"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/video/video.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../../common/lib/weui.wxss";
2 |
3 | .page-body-info {
4 | display: flex;
5 | margin-top: 40rpx;
6 | padding: 0;
7 | height: 360rpx;
8 | border-top: 1rpx solid #D9D9D9;
9 | border-bottom: 1rpx solid #D9D9D9;
10 | align-items: center;
11 | justify-content: center;
12 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/voice/voice.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "录音"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Media/voice/voice.wxss:
--------------------------------------------------------------------------------
1 | image {
2 | width: 150rpx;
3 | height: 150rpx;
4 | }
5 |
6 | .page-body-wrapper {
7 | justify-content: space-between;
8 | flex-grow: 1;
9 | margin-bottom: 300rpx;
10 | }
11 | .page-body-time {
12 | display: flex;
13 | flex-direction: column;
14 | align-items: center;
15 | }
16 | .time-big {
17 | font-size: 60rpx;
18 | margin: 20rpx;
19 | }
20 | .time-small {
21 | font-size: 30rpx;
22 | }
23 |
24 | .page-body-buttons {
25 | margin-top: 60rpx;
26 | display: flex;
27 | justify-content: space-around;
28 | }
29 | .page-body-button {
30 | width: 250rpx;
31 | text-align: center;
32 | }
33 | .button-stop-record {
34 | width: 110rpx;
35 | height: 110rpx;
36 | border: 20rpx solid #fff;
37 | background-color: #f55c23;
38 | border-radius: 130rpx;
39 | margin: 0 auto;
40 | }
41 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/downloadFile/download-file.js:
--------------------------------------------------------------------------------
1 | const downloadFileUrl = require('../../../../../config').downloadFileUrl
2 |
3 | Page({
4 | downloadImage: function() {
5 | var self = this
6 |
7 | var downloadTask = wx.downloadFile({
8 | url: downloadFileUrl,
9 | success: function(res) {
10 | console.log('downloadFile success, res is', res)
11 |
12 | self.setData({
13 | imageSrc: res.tempFilePath
14 | })
15 | },
16 | fail: function({errMsg}) {
17 | console.log('downloadFile fail, err is:', errMsg)
18 | }
19 | });
20 | downloadTask.onProgressUpdate((res) => {
21 | console.log('下载进度', res.progress)
22 | console.log('已经下载的数据长度', res.totalBytesWritten)
23 | console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite)
24 | })
25 | }
26 | })
27 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/downloadFile/download-file.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "下载文件"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/downloadFile/download-file.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | 点击按钮下载服务端示例图片
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/downloadFile/download-file.wxss:
--------------------------------------------------------------------------------
1 | .page-body image {
2 | width: 600rpx;
3 | height: 600rpx;
4 |
5 | margin: 0 75rpx;
6 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/request/request.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "网络请求"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/request/request.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{responseText}}
4 |
5 |
6 | 点击向服务器发起请求
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/request/request.wxss:
--------------------------------------------------------------------------------
1 | .page-res-text {
2 | text-align: center;
3 | font-size: 14px;
4 | }
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/uploadFile/upload-file.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "上传文件"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/uploadFile/upload-file.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | 选择图片
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/uploadFile/upload-file.wxss:
--------------------------------------------------------------------------------
1 | .image {
2 | width: 100%;
3 | height: 360rpx;
4 | }
5 | .page-body-info {
6 | display: flex;
7 | box-sizing: border-box;
8 | padding: 30rpx;
9 | height: 420rpx;
10 | border-top: 1rpx solid #D9D9D9;
11 | border-bottom: 1rpx solid #D9D9D9;
12 | align-items: center;
13 | justify-content: center;
14 | }
15 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/websocket/web-socket.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "Web Socket"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/websocket/web-socket.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Socket状态
7 |
8 |
9 |
10 |
11 |
12 | 消息
13 |
14 | Hello, 小程序!
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Network/websocket/web-socket.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../../common/lib/weui.wxss";
--------------------------------------------------------------------------------
/client-api/page/API/pages/Storage/storage.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "数据存储"
3 | }
4 |
--------------------------------------------------------------------------------
/client-api/page/API/pages/Storage/storage.wxss:
--------------------------------------------------------------------------------
1 | @import "../../../common/lib/weui.wxss";
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/api.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/device.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/device.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/feedback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/feedback.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/file.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/interface.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/interface.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/location.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/location.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/logo.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/media.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/media.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/network.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/network.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/page.png
--------------------------------------------------------------------------------
/client-api/page/API/resources/kind/storage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/client-api/page/API/resources/kind/storage.png
--------------------------------------------------------------------------------
/server-api/request_server/app.js:
--------------------------------------------------------------------------------
1 | var createError = require('http-errors');
2 | var express = require('express');
3 | var path = require('path');
4 | var cookieParser = require('cookie-parser');
5 | var logger = require('morgan');
6 | var indexRouter = require('./routes/index');
7 | var usersRouter = require('./routes/users');
8 | var uploadRouter = require('./routes/upload');
9 |
10 | var app = express();
11 |
12 | // view engine setup
13 | app.use(express.json());
14 | app.use(express.urlencoded({ extended: false }));
15 | app.use(cookieParser());
16 |
17 | app.use('/request', indexRouter);
18 | app.use('/users', usersRouter);
19 | app.use('/upload', uploadRouter);
20 | // catch 404 and forward to error handler
21 | app.use(function(req, res, next) {
22 | next(createError(404));
23 | });
24 |
25 | module.exports = app;
26 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/.bin/acorn:
--------------------------------------------------------------------------------
1 | ../acorn/bin/acorn
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/.bin/cleancss:
--------------------------------------------------------------------------------
1 | ../clean-css/bin/cleancss
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/.bin/jade:
--------------------------------------------------------------------------------
1 | ../jade/bin/jade.js
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/.bin/mime:
--------------------------------------------------------------------------------
1 | ../mime/cli.js
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/.bin/mkdirp:
--------------------------------------------------------------------------------
1 | ../mkdirp/bin/cmd.js
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/.bin/uglifyjs:
--------------------------------------------------------------------------------
1 | ../uglify-js/bin/uglifyjs
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | insert_final_newline = true
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/.gitattributes:
--------------------------------------------------------------------------------
1 | * text eol=lf
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/.npmignore:
--------------------------------------------------------------------------------
1 | /.tern-port
2 | /test
3 | /local
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/.tern-project:
--------------------------------------------------------------------------------
1 | {
2 | "plugins": {
3 | "node": true,
4 | "es_modules": true
5 | }
6 | }
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | sudo: false
3 | node_js:
4 | - '0.10'
5 | - '0.12'
6 | - '4'
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/AUTHORS:
--------------------------------------------------------------------------------
1 | List of Acorn contributors. Updated before every release.
2 |
3 | Adrian Rakovsky
4 | Alistair Braidwood
5 | Andres Suarez
6 | Aparajita Fishman
7 | Arian Stolwijk
8 | Artem Govorov
9 | Brandon Mills
10 | Charles Hughes
11 | Conrad Irwin
12 | David Bonnet
13 | ForbesLindesay
14 | Forbes Lindesay
15 | Gilad Peleg
16 | impinball
17 | Ingvar Stepanyan
18 | Jesse McCarthy
19 | Jiaxing Wang
20 | Joel Kemp
21 | Johannes Herr
22 | Jürg Lehni
23 | keeyipchan
24 | Kevin Kwok
25 | krator
26 | Marijn Haverbeke
27 | Martin Carlberg
28 | Mathias Bynens
29 | Mathieu 'p01' Henri
30 | Max Schaefer
31 | Max Zerzouri
32 | Mihai Bazon
33 | Mike Rennie
34 | Nick Fitzgerald
35 | Oskar Schöldström
36 | Paul Harper
37 | Peter Rust
38 | PlNG
39 | r-e-d
40 | Rich Harris
41 | Sebastian McKenzie
42 | Timothy Gu
43 | zsjforcn
44 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/bin/update_authors.sh:
--------------------------------------------------------------------------------
1 | # Combine existing list of authors with everyone known in git, sort, add header.
2 | tail --lines=+3 AUTHORS > AUTHORS.tmp
3 | git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp
4 | echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
5 | sort -u AUTHORS.tmp >> AUTHORS
6 | rm -f AUTHORS.tmp
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/dist/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/node_modules/acorn/dist/.keep
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/src/location.js:
--------------------------------------------------------------------------------
1 | import {Parser} from "./state"
2 | import {Position, getLineInfo} from "./locutil"
3 |
4 | const pp = Parser.prototype
5 |
6 | // This function is used to raise exceptions on parse errors. It
7 | // takes an offset integer (into the current `input`) to indicate
8 | // the location of the error, attaches the position to the end
9 | // of the error message, and then raises a `SyntaxError` with that
10 | // message.
11 |
12 | pp.raise = function(pos, message) {
13 | let loc = getLineInfo(this.input, pos)
14 | message += " (" + loc.line + ":" + loc.column + ")"
15 | let err = new SyntaxError(message)
16 | err.pos = pos; err.loc = loc; err.raisedAt = this.pos
17 | throw err
18 | }
19 |
20 | pp.curPosition = function() {
21 | if (this.options.locations) {
22 | return new Position(this.curLine, this.pos - this.lineStart)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/src/loose/acorn_loose.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/node_modules/acorn/src/loose/acorn_loose.js
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/src/loose/parseutil.js:
--------------------------------------------------------------------------------
1 | export function isDummy(node) { return node.name == "✖" }
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/src/util.js:
--------------------------------------------------------------------------------
1 | export function isArray(obj) {
2 | return Object.prototype.toString.call(obj) === "[object Array]"
3 | }
4 |
5 | // Checks if an object has a property.
6 |
7 | export function has(obj, propName) {
8 | return Object.prototype.hasOwnProperty.call(obj, propName)
9 | }
10 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/acorn/src/whitespace.js:
--------------------------------------------------------------------------------
1 | // Matches a whole line break (where CRLF is considered a single
2 | // line break). Used to count lines.
3 |
4 | export const lineBreak = /\r\n?|\n|\u2028|\u2029/
5 | export const lineBreakG = new RegExp(lineBreak.source, "g")
6 |
7 | export function isNewLine(code) {
8 | return code === 10 || code === 13 || code === 0x2028 || code == 0x2029
9 | }
10 |
11 | export const nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/
12 |
13 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/camelcase/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = function () {
3 | var str = [].map.call(arguments, function (str) {
4 | return str.trim();
5 | }).filter(function (str) {
6 | return str.length;
7 | }).join('-');
8 |
9 | if (!str.length) {
10 | return '';
11 | }
12 |
13 | if (str.length === 1 || !(/[_.\- ]+/).test(str) ) {
14 | if (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) {
15 | return str;
16 | }
17 |
18 | return str.toLowerCase();
19 | }
20 |
21 | return str
22 | .replace(/^[_.\- ]+/, '')
23 | .toLowerCase()
24 | .replace(/[_.\- ]+(\w|$)/g, function (m, p1) {
25 | return p1.toUpperCase();
26 | });
27 | };
28 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/center-align/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * center-align
3 | *
4 | * Copycenter (c) 2015, Jon Schlinkert.
5 | * Licensed under the MIT License.
6 | */
7 |
8 | 'use strict';
9 |
10 | var utils = require('./utils');
11 |
12 | module.exports = function centerAlign(val) {
13 | return utils.align(val, function (len, longest) {
14 | return Math.floor((longest - len) / 2);
15 | });
16 | };
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/center-align/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Lazily-required module dependencies (makes the application
5 | * faster)
6 | */
7 |
8 | var utils = require('lazy-cache')(require);
9 |
10 | /**
11 | * Temporarily re-assign `require` to trick browserify and
12 | * webpack into reconizing lazy dependencies.
13 | *
14 | * This tiny bit of ugliness has the huge dual advantage of
15 | * only loading modules that are actually called at some
16 | * point in the lifecycle of the application, whilst also
17 | * allowing browserify and webpack to find modules that
18 | * are depended on but never actually called.
19 | */
20 |
21 | var fn = require;
22 | require = utils;
23 |
24 | /**
25 | * Lazily required module dependencies
26 | */
27 |
28 | require('align-text', 'align');
29 |
30 | /**
31 | * Restore `require`
32 | */
33 |
34 | require = fn;
35 |
36 | /**
37 | * Expose `utils` modules
38 | */
39 |
40 | module.exports = utils;
41 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/character-parser/.npmignore:
--------------------------------------------------------------------------------
1 | test/
2 | .travis.yml
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/clean');
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/colors/rgb.js:
--------------------------------------------------------------------------------
1 | function RGB(red, green, blue) {
2 | this.red = red;
3 | this.green = green;
4 | this.blue = blue;
5 | }
6 |
7 | RGB.prototype.toHex = function () {
8 | var red = Math.max(0, Math.min(~~this.red, 255));
9 | var green = Math.max(0, Math.min(~~this.green, 255));
10 | var blue = Math.max(0, Math.min(~~this.blue, 255));
11 |
12 | // Credit: Asen http://jsbin.com/UPUmaGOc/2/edit?js,console
13 | return '#' + ('00000' + (red << 16 | green << 8 | blue).toString(16)).slice(-6);
14 | };
15 |
16 | module.exports = RGB;
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/properties/clone.js:
--------------------------------------------------------------------------------
1 | var wrapSingle = require('./wrap-for-optimizing').single;
2 |
3 | function deep(property) {
4 | var cloned = shallow(property);
5 | for (var i = property.components.length - 1; i >= 0; i--) {
6 | var component = shallow(property.components[i]);
7 | component.value = property.components[i].value.slice(0);
8 | cloned.components.unshift(component);
9 | }
10 |
11 | cloned.dirty = true;
12 | cloned.value = property.value.slice(0);
13 |
14 | return cloned;
15 | }
16 |
17 | function shallow(property) {
18 | var cloned = wrapSingle([[property.name, property.important, property.hack]]);
19 | cloned.unused = false;
20 | return cloned;
21 | }
22 |
23 | module.exports = {
24 | deep: deep,
25 | shallow: shallow
26 | };
27 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/properties/every-combination.js:
--------------------------------------------------------------------------------
1 | var shallowClone = require('./clone').shallow;
2 |
3 | var MULTIPLEX_SEPARATOR = ',';
4 |
5 | function everyCombination(fn, left, right, validator) {
6 | var samePositon = !left.shorthand && !right.shorthand && !left.multiplex && !right.multiplex;
7 | var _left = shallowClone(left);
8 | var _right = shallowClone(right);
9 |
10 | for (var i = 0, l = left.value.length; i < l; i++) {
11 | for (var j = 0, m = right.value.length; j < m; j++) {
12 | if (left.value[i][0] == MULTIPLEX_SEPARATOR || right.value[j][0] == MULTIPLEX_SEPARATOR)
13 | continue;
14 |
15 | if (samePositon && i != j)
16 | continue;
17 |
18 | _left.value = [left.value[i]];
19 | _right.value = [right.value[j]];
20 | if (!fn(_left, _right, validator))
21 | return false;
22 | }
23 | }
24 |
25 | return true;
26 | }
27 |
28 | module.exports = everyCombination;
29 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/properties/has-inherit.js:
--------------------------------------------------------------------------------
1 | function hasInherit(property) {
2 | for (var i = property.value.length - 1; i >= 0; i--) {
3 | if (property.value[i][0] == 'inherit')
4 | return true;
5 | }
6 |
7 | return false;
8 | }
9 |
10 | module.exports = hasInherit;
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/properties/invalid-property-error.js:
--------------------------------------------------------------------------------
1 | function InvalidPropertyError(message) {
2 | this.name = 'InvalidPropertyError';
3 | this.message = message;
4 | this.stack = (new Error()).stack;
5 | }
6 |
7 | InvalidPropertyError.prototype = Object.create(Error.prototype);
8 | InvalidPropertyError.prototype.constructor = InvalidPropertyError;
9 |
10 | module.exports = InvalidPropertyError;
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/properties/remove-unused.js:
--------------------------------------------------------------------------------
1 | function removeUnused(properties) {
2 | for (var i = properties.length - 1; i >= 0; i--) {
3 | var property = properties[i];
4 |
5 | if (property.unused)
6 | property.all.splice(property.position, 1);
7 | }
8 | }
9 |
10 | module.exports = removeUnused;
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/properties/vendor-prefixes.js:
--------------------------------------------------------------------------------
1 | var VENDOR_PREFIX_PATTERN = /$\-moz\-|\-ms\-|\-o\-|\-webkit\-/;
2 |
3 | function prefixesIn(tokens) {
4 | var prefixes = [];
5 |
6 | for (var i = 0, l = tokens.length; i < l; i++) {
7 | var token = tokens[i];
8 |
9 | for (var j = 0, m = token.value.length; j < m; j++) {
10 | var match = VENDOR_PREFIX_PATTERN.exec(token.value[j][0]);
11 |
12 | if (match && prefixes.indexOf(match[0]) == -1)
13 | prefixes.push(match[0]);
14 | }
15 | }
16 |
17 | return prefixes;
18 | }
19 |
20 | function same(left, right) {
21 | return prefixesIn(left).sort().join(',') == prefixesIn(right).sort().join(',');
22 | }
23 |
24 | module.exports = {
25 | same: same
26 | };
27 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/selectors/is-special.js:
--------------------------------------------------------------------------------
1 | function isSpecial(options, selector) {
2 | return options.compatibility.selectors.special.test(selector);
3 | }
4 |
5 | module.exports = isSpecial;
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js:
--------------------------------------------------------------------------------
1 | var stringifyAll = require('../stringifier/one-time').all;
2 |
3 | function removeDuplicateMediaQueries(tokens) {
4 | var candidates = {};
5 |
6 | for (var i = 0, l = tokens.length; i < l; i++) {
7 | var token = tokens[i];
8 | if (token[0] != 'block')
9 | continue;
10 |
11 | var key = token[1][0] + '%' + stringifyAll(token[2]);
12 | var candidate = candidates[key];
13 |
14 | if (candidate)
15 | candidate[2] = [];
16 |
17 | candidates[key] = token;
18 | }
19 | }
20 |
21 | module.exports = removeDuplicateMediaQueries;
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/stringifier/simple.js:
--------------------------------------------------------------------------------
1 | var all = require('./helpers').all;
2 |
3 | function store(token, context) {
4 | context.output.push(typeof token == 'string' ? token : token[0]);
5 | }
6 |
7 | function stringify(tokens, options, restoreCallback) {
8 | var context = {
9 | keepBreaks: options.keepBreaks,
10 | output: [],
11 | spaceAfterClosingBrace: options.compatibility.properties.spaceAfterClosingBrace,
12 | store: store
13 | };
14 |
15 | all(tokens, context, false);
16 |
17 | return {
18 | styles: restoreCallback(context.output.join('')).trim()
19 | };
20 | }
21 |
22 | module.exports = stringify;
23 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/tokenizer/extract-selectors.js:
--------------------------------------------------------------------------------
1 | var split = require('../utils/split');
2 |
3 | function extractSelectors(string, context) {
4 | var list = [];
5 | var metadata;
6 | var selectors = split(string, ',');
7 |
8 | for (var i = 0, l = selectors.length; i < l; i++) {
9 | metadata = context.track(selectors[i], true, i);
10 | context.track(',');
11 | list.push([selectors[i].trim()].concat(metadata));
12 | }
13 |
14 | return list;
15 | }
16 |
17 | module.exports = extractSelectors;
18 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/urls/rebase.js:
--------------------------------------------------------------------------------
1 | var path = require('path');
2 |
3 | var rewriteUrls = require('./rewrite');
4 |
5 | function rebaseUrls(data, context) {
6 | var rebaseOpts = {
7 | absolute: context.options.explicitRoot,
8 | relative: !context.options.explicitRoot && context.options.explicitTarget,
9 | fromBase: context.options.relativeTo
10 | };
11 |
12 | if (!rebaseOpts.absolute && !rebaseOpts.relative)
13 | return data;
14 |
15 | if (rebaseOpts.absolute && context.options.explicitTarget)
16 | context.warnings.push('Both \'root\' and output file given so rebasing URLs as absolute paths');
17 |
18 | if (rebaseOpts.absolute)
19 | rebaseOpts.toBase = path.resolve(context.options.root);
20 |
21 | if (rebaseOpts.relative)
22 | rebaseOpts.toBase = path.resolve(context.options.target);
23 |
24 | if (!rebaseOpts.fromBase || !rebaseOpts.toBase)
25 | return data;
26 |
27 | return rewriteUrls(data, rebaseOpts, context);
28 | }
29 |
30 | module.exports = rebaseUrls;
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/utils/clone-array.js:
--------------------------------------------------------------------------------
1 | function cloneArray(array) {
2 | var cloned = array.slice(0);
3 |
4 | for (var i = 0, l = cloned.length; i < l; i++) {
5 | if (Array.isArray(cloned[i]))
6 | cloned[i] = cloneArray(cloned[i]);
7 | }
8 |
9 | return cloned;
10 | }
11 |
12 | module.exports = cloneArray;
13 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/utils/object.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | override: function (source1, source2) {
3 | var target = {};
4 | for (var key1 in source1)
5 | target[key1] = source1[key1];
6 | for (var key2 in source2)
7 | target[key2] = source2[key2];
8 |
9 | return target;
10 | }
11 | };
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/clean-css/lib/utils/source-tracker.js:
--------------------------------------------------------------------------------
1 | function SourceTracker() {
2 | this.sources = [];
3 | }
4 |
5 | SourceTracker.prototype.store = function (filename, data) {
6 | this.sources.push(filename);
7 |
8 | return '__ESCAPED_SOURCE_CLEAN_CSS' + (this.sources.length - 1) + '__' +
9 | data +
10 | '__ESCAPED_SOURCE_END_CLEAN_CSS__';
11 | };
12 |
13 | SourceTracker.prototype.nextStart = function (data) {
14 | var next = /__ESCAPED_SOURCE_CLEAN_CSS(\d+)__/.exec(data);
15 |
16 | return next ?
17 | { index: next.index, filename: this.sources[~~next[1]] } :
18 | null;
19 | };
20 |
21 | SourceTracker.prototype.nextEnd = function (data) {
22 | return /__ESCAPED_SOURCE_END_CLEAN_CSS__/g.exec(data);
23 | };
24 |
25 | SourceTracker.prototype.removeAll = function (data) {
26 | return data
27 | .replace(/__ESCAPED_SOURCE_CLEAN_CSS\d+__/g, '')
28 | .replace(/__ESCAPED_SOURCE_END_CLEAN_CSS__/g, '');
29 | };
30 |
31 | module.exports = SourceTracker;
32 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: NiRhyj91Z2vtgob6XdEAqs83rzNnbMZUu
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/.npmignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | - "0.11"
5 | - "0.12"
6 | - "iojs"
7 | after_script: "NODE_ENV=test YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha --require patched-blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js"
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Contributors
2 |
3 | Permission to use, copy, modify, and/or distribute this software
4 | for any purpose with or without fee is hereby granted, provided
5 | that the above copyright notice and this permission notice
6 | appear in all copies.
7 |
8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
11 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
12 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
13 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
14 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/node_modules/wordwrap/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/node_modules/wordwrap/example/center.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(20, 60);
2 | console.log(wrap(
3 | 'At long last the struggle and tumult was over.'
4 | + ' The machines had finally cast off their oppressors'
5 | + ' and were finally free to roam the cosmos.'
6 | + '\n'
7 | + 'Free of purpose, free of obligation.'
8 | + ' Just drifting through emptiness.'
9 | + ' The sun was just another point of light.'
10 | ));
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cliui/node_modules/wordwrap/example/meat.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(15);
2 |
3 | console.log(wrap('You and your whole family are made out of meat.'));
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/constantinople/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 | *.sln merge=union
7 | *.csproj merge=union
8 | *.vbproj merge=union
9 | *.fsproj merge=union
10 | *.dbproj merge=union
11 |
12 | # Standard to msysgit
13 | *.doc diff=astextplain
14 | *.DOC diff=astextplain
15 | *.docx diff=astextplain
16 | *.DOCX diff=astextplain
17 | *.dot diff=astextplain
18 | *.DOT diff=astextplain
19 | *.pdf diff=astextplain
20 | *.PDF diff=astextplain
21 | *.rtf diff=astextplain
22 | *.RTF diff=astextplain
23 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/constantinople/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | *.seed
3 | *.log
4 | *.csv
5 | *.dat
6 | *.out
7 | *.pid
8 | *.gz
9 | pids
10 | logs
11 | results
12 | npm-debug.log
13 | node_modules
14 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/constantinople/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/content-type/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.4 / 2017-09-11
2 | ==================
3 |
4 | * perf: skip parameter parsing when no parameters
5 |
6 | 1.0.3 / 2017-09-10
7 | ==================
8 |
9 | * perf: remove argument reassignment
10 |
11 | 1.0.2 / 2016-05-09
12 | ==================
13 |
14 | * perf: enable strict mode
15 |
16 | 1.0.1 / 2015-02-13
17 | ==================
18 |
19 | * Improve missing `Content-Type` header error message
20 |
21 | 1.0.0 / 2015-02-01
22 | ==================
23 |
24 | * Initial implementation, derived from `media-typer@0.3.0`
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cookie-signature/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/cookie-signature/History.md:
--------------------------------------------------------------------------------
1 | 1.0.6 / 2015-02-03
2 | ==================
3 |
4 | * use `npm test` instead of `make test` to run tests
5 | * clearer assertion messages when checking input
6 |
7 |
8 | 1.0.5 / 2014-09-05
9 | ==================
10 |
11 | * add license to package.json
12 |
13 | 1.0.4 / 2014-06-25
14 | ==================
15 |
16 | * corrected avoidance of timing attacks (thanks @tenbits!)
17 |
18 | 1.0.3 / 2014-01-28
19 | ==================
20 |
21 | * [incorrect] fix for timing attacks
22 |
23 | 1.0.2 / 2014-01-28
24 | ==================
25 |
26 | * fix missing repository warning
27 | * fix typo in test
28 |
29 | 1.0.1 / 2013-04-15
30 | ==================
31 |
32 | * Revert "Changed underlying HMAC algo. to sha512."
33 | * Revert "Fix for timing attacks on MAC verification."
34 |
35 | 0.0.1 / 2010-01-03
36 | ==================
37 |
38 | * Initial release
39 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/core-util-is/README.md:
--------------------------------------------------------------------------------
1 | # core-util-is
2 |
3 | The `util.is*` functions introduced in Node v0.12.
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-parse/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 | test.css
6 | test.js
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-parse/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.4 / 2012-09-17
3 | ==================
4 |
5 | * fix keyframes float percentages
6 | * fix an issue with comments containing slashes.
7 |
8 | 1.0.3 / 2012-09-01
9 | ==================
10 |
11 | * add component support
12 | * fix unquoted data uris [rstacruz]
13 | * fix keyframe names with no whitespace [rstacruz]
14 | * fix excess semicolon support [rstacruz]
15 |
16 | 1.0.2 / 2012-09-01
17 | ==================
18 |
19 | * fix IE property hack support [rstacruz]
20 | * fix quoted strings in declarations [rstacruz]
21 |
22 | 1.0.1 / 2012-07-26
23 | ==================
24 |
25 | * change "selector" to "selectors" array
26 |
27 | 1.0.0 / 2010-01-03
28 | ==================
29 |
30 | * Initial release
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-parse/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should \
5 | --reporter spec
6 |
7 | .PHONY: test
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-parse/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "css-parse",
3 | "repo": "visionmedia/node-css-parse",
4 | "version": "1.0.3",
5 | "description": "CSS parser",
6 | "keywords": ["css", "parser", "stylesheet"],
7 | "scripts": ["index.js"]
8 | }
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-stringify/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 | test.css
6 | test.js
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-stringify/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.5 / 2013-03-15
3 | ==================
4 |
5 | * fix indentation of multiple selectors in @media. Closes #11
6 |
7 | 1.0.4 / 2012-11-15
8 | ==================
9 |
10 | * fix indentation
11 |
12 | 1.0.3 / 2012-09-04
13 | ==================
14 |
15 | * add __@charset__ support [rstacruz]
16 |
17 | 1.0.2 / 2012-09-01
18 | ==================
19 |
20 | * add component support
21 |
22 | 1.0.1 / 2012-07-26
23 | ==================
24 |
25 | * add "selectors" array support
26 |
27 | 0.0.1 / 2010-01-03
28 | ==================
29 |
30 | * Initial release
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-stringify/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should \
5 | --reporter spec
6 |
7 | .PHONY: test
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css-stringify/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "css-stringify",
3 | "repo": "visionmedia/css-stringify",
4 | "version": "1.0.5",
5 | "description": "CSS compiler",
6 | "keywords": ["css", "stringify", "stylesheet"],
7 | "scripts": ["index.js"]
8 | }
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.7 / 2012-11-21
3 | ==================
4 |
5 | * fix component.json
6 |
7 | 1.0.4 / 2012-11-15
8 | ==================
9 |
10 | * update css-stringify
11 |
12 | 1.0.3 / 2012-09-01
13 | ==================
14 |
15 | * add component support
16 |
17 | 0.0.1 / 2010-01-03
18 | ==================
19 |
20 | * Initial release
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node test
4 |
5 | benchmark:
6 | @node benchmark
7 |
8 | .PHONY: test benchmark
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/benchmark.js:
--------------------------------------------------------------------------------
1 |
2 | var css = require('./')
3 | , fs = require('fs')
4 | , read = fs.readFileSync
5 | , str = read('examples/ui.css', 'utf8');
6 |
7 | var n = 5000;
8 | var ops = 200;
9 | var t = process.hrtime(t);
10 | var results = [];
11 |
12 | while (n--) {
13 | css.stringify(css.parse(str));
14 | if (n % ops == 0) {
15 | t = process.hrtime(t);
16 | var ms = t[1] / 1000 / 1000;
17 | var persec = (ops * (1000 / ms) | 0);
18 | results.push(persec);
19 | process.stdout.write('\r [' + persec + ' ops/s] [' + n + ']');
20 | t = process.hrtime();
21 | }
22 | }
23 |
24 | function sum(arr) {
25 | return arr.reduce(function(sum, n){
26 | return sum + n;
27 | });
28 | }
29 |
30 | function mean(arr) {
31 | return sum(arr) / arr.length | 0;
32 | }
33 |
34 | console.log();
35 | console.log(' avg: %d ops/s', mean(results));
36 | console.log(' size: %d kb', (str.length / 1024).toFixed(2));
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "css",
3 | "version": "1.0.8",
4 | "description": "CSS parser / stringifier using css-parse and css-stringify",
5 | "keywords": ["css", "parser", "stylesheet"],
6 | "dependencies": {
7 | "visionmedia/css-parse": "*",
8 | "visionmedia/css-stringify": "*"
9 | },
10 | "scripts": [
11 | "index.js"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/index.js:
--------------------------------------------------------------------------------
1 |
2 | exports.parse = require('css-parse');
3 | exports.stringify = require('css-stringify');
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/css/test.js:
--------------------------------------------------------------------------------
1 |
2 | var css = require('./')
3 | , assert = require('assert');
4 |
5 | assert(css.parse);
6 | assert(css.stringify);
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "browser": true,
4 | "node": true
5 | },
6 | "rules": {
7 | "no-console": 0,
8 | "no-empty": [1, { "allowEmptyCatch": true }]
9 | },
10 | "extends": "eslint:recommended"
11 | }
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 | coverage
9 | bower.json
10 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/.travis.yml:
--------------------------------------------------------------------------------
1 |
2 | language: node_js
3 | node_js:
4 | - "6"
5 | - "5"
6 | - "4"
7 |
8 | install:
9 | - make node_modules
10 |
11 | script:
12 | - make lint
13 | - make test
14 | - make coveralls
15 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.6.9",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "src/browser.js",
12 | "scripts": [
13 | "src/browser.js",
14 | "src/debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/debug/src/inspector-log.js:
--------------------------------------------------------------------------------
1 | module.exports = inspectorLog;
2 |
3 | // black hole
4 | const nullStream = new (require('stream').Writable)();
5 | nullStream._write = () => {};
6 |
7 | /**
8 | * Outputs a `console.log()` to the Node.js Inspector console *only*.
9 | */
10 | function inspectorLog() {
11 | const stdout = console._stdout;
12 | console._stdout = nullStream;
13 | console.log.apply(console, arguments);
14 | console._stdout = stdout;
15 | }
16 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/decamelize/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | module.exports = function (str, sep) {
3 | if (typeof str !== 'string') {
4 | throw new TypeError('Expected a string');
5 | }
6 |
7 | sep = typeof sep === 'undefined' ? '_' : sep;
8 |
9 | return str
10 | .replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
11 | .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
12 | .toLowerCase();
13 | };
14 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/decamelize/readme.md:
--------------------------------------------------------------------------------
1 | # decamelize [](https://travis-ci.org/sindresorhus/decamelize)
2 |
3 | > Convert a camelized string into a lowercased one with a custom separator
4 | > Example: `unicornRainbow` → `unicorn_rainbow`
5 |
6 |
7 | ## Install
8 |
9 | ```
10 | $ npm install --save decamelize
11 | ```
12 |
13 |
14 | ## Usage
15 |
16 | ```js
17 | const decamelize = require('decamelize');
18 |
19 | decamelize('unicornRainbow');
20 | //=> 'unicorn_rainbow'
21 |
22 | decamelize('unicornRainbow', '-');
23 | //=> 'unicorn-rainbow'
24 | ```
25 |
26 |
27 | ## API
28 |
29 | ### decamelize(input, [separator])
30 |
31 | #### input
32 |
33 | Type: `string`
34 |
35 | #### separator
36 |
37 | Type: `string`
38 | Default: `_`
39 |
40 |
41 | ## Related
42 |
43 | See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.
44 |
45 |
46 | ## License
47 |
48 | MIT © [Sindre Sorhus](https://sindresorhus.com)
49 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/depd/lib/compat/event-listener-count.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2015 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = eventListenerCount
15 |
16 | /**
17 | * Get the count of listeners on an event emitter of a specific type.
18 | */
19 |
20 | function eventListenerCount (emitter, type) {
21 | return emitter.listeners(type).length
22 | }
23 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/encodeurl/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.2 / 2018-01-21
2 | ==================
3 |
4 | * Fix encoding `%` as last character
5 |
6 | 1.0.1 / 2016-06-09
7 | ==================
8 |
9 | * Fix encoding unpaired surrogates at start/end of string
10 |
11 | 1.0.0 / 2016-06-08
12 | ==================
13 |
14 | * Initial release
15 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/escape-html/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # escape-html
3 |
4 | Escape string for use in HTML
5 |
6 | ## Example
7 |
8 | ```js
9 | var escape = require('escape-html');
10 | var html = escape('foo & bar');
11 | // -> foo & bar
12 | ```
13 |
14 | ## Benchmark
15 |
16 | ```
17 | $ npm run-script bench
18 |
19 | > escape-html@1.0.3 bench nodejs-escape-html
20 | > node benchmark/index.js
21 |
22 |
23 | http_parser@1.0
24 | node@0.10.33
25 | v8@3.14.5.9
26 | ares@1.9.0-DEV
27 | uv@0.10.29
28 | zlib@1.2.3
29 | modules@11
30 | openssl@1.0.1j
31 |
32 | 1 test completed.
33 | 2 tests completed.
34 | 3 tests completed.
35 |
36 | no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
37 | single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
38 | many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)
39 | ```
40 |
41 | ## License
42 |
43 | MIT
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/express/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * express
3 | * Copyright(c) 2009-2013 TJ Holowaychuk
4 | * Copyright(c) 2013 Roman Shtylman
5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson
6 | * MIT Licensed
7 | */
8 |
9 | 'use strict';
10 |
11 | module.exports = require('./lib/express');
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/formidable/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 4
4 | - 6
5 | - 7
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/formidable/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib');
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/formidable/lib/index.js:
--------------------------------------------------------------------------------
1 | var IncomingForm = require('./incoming_form').IncomingForm;
2 | IncomingForm.IncomingForm = IncomingForm;
3 | module.exports = IncomingForm;
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/formidable/lib/json_parser.js:
--------------------------------------------------------------------------------
1 | if (global.GENTLY) require = GENTLY.hijack(require);
2 |
3 | var Buffer = require('buffer').Buffer;
4 |
5 | function JSONParser(parent) {
6 | this.parent = parent;
7 | this.chunks = [];
8 | this.bytesWritten = 0;
9 | }
10 | exports.JSONParser = JSONParser;
11 |
12 | JSONParser.prototype.write = function(buffer) {
13 | this.bytesWritten += buffer.length;
14 | this.chunks.push(buffer);
15 | return buffer.length;
16 | };
17 |
18 | JSONParser.prototype.end = function() {
19 | try {
20 | var fields = JSON.parse(Buffer.concat(this.chunks));
21 | for (var field in fields) {
22 | this.onField(field, fields[field]);
23 | }
24 | } catch (e) {
25 | this.parent.emit('error', e);
26 | }
27 | this.data = null;
28 |
29 | this.onEnd();
30 | };
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/formidable/lib/octet_parser.js:
--------------------------------------------------------------------------------
1 | var EventEmitter = require('events').EventEmitter
2 | , util = require('util');
3 |
4 | function OctetParser(options){
5 | if(!(this instanceof OctetParser)) return new OctetParser(options);
6 | EventEmitter.call(this);
7 | }
8 |
9 | util.inherits(OctetParser, EventEmitter);
10 |
11 | exports.OctetParser = OctetParser;
12 |
13 | OctetParser.prototype.write = function(buffer) {
14 | this.emit('data', buffer);
15 | return buffer.length;
16 | };
17 |
18 | OctetParser.prototype.end = function() {
19 | this.emit('end');
20 | };
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/formidable/lib/querystring_parser.js:
--------------------------------------------------------------------------------
1 | if (global.GENTLY) require = GENTLY.hijack(require);
2 |
3 | // This is a buffering parser, not quite as nice as the multipart one.
4 | // If I find time I'll rewrite this to be fully streaming as well
5 | var querystring = require('querystring');
6 |
7 | function QuerystringParser(maxKeys) {
8 | this.maxKeys = maxKeys;
9 | this.buffer = '';
10 | }
11 | exports.QuerystringParser = QuerystringParser;
12 |
13 | QuerystringParser.prototype.write = function(buffer) {
14 | this.buffer += buffer.toString('ascii');
15 | return buffer.length;
16 | };
17 |
18 | QuerystringParser.prototype.end = function() {
19 | var fields = querystring.parse(this.buffer, '&', '=', { maxKeys: this.maxKeys });
20 | for (var field in fields) {
21 | this.onField(field, fields[field]);
22 | }
23 | this.buffer = '';
24 |
25 | this.onEnd();
26 | };
27 |
28 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/forwarded/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.1.2 / 2017-09-14
2 | ==================
3 |
4 | * perf: improve header parsing
5 | * perf: reduce overhead when no `X-Forwarded-For` header
6 |
7 | 0.1.1 / 2017-09-10
8 | ==================
9 |
10 | * Fix trimming leading / trailing OWS
11 | * perf: hoist regular expression
12 |
13 | 0.1.0 / 2014-09-21
14 | ==================
15 |
16 | * Initial release
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/graceful-readlink/.npmignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .DS_Store
3 | node_modules/
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/graceful-readlink/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 | - "0.12"
5 | - "io.js"
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/graceful-readlink/README.md:
--------------------------------------------------------------------------------
1 | # graceful-readlink
2 | [](https://www.npmjs.org/package/graceful-readlink)
3 | [](https://www.npmjs.org/package/graceful-readlink)
4 |
5 |
6 | ## Usage
7 |
8 | ```js
9 | var readlinkSync = require('graceful-readlink').readlinkSync;
10 | console.log(readlinkSync(f));
11 | // output
12 | // the file pointed to when `f` is a symbolic link
13 | // the `f` itself when `f` is not a symbolic link
14 | ```
15 | ## Licence
16 |
17 | MIT License
18 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/graceful-readlink/index.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs')
2 | , lstat = fs.lstatSync;
3 |
4 | exports.readlinkSync = function (p) {
5 | if (lstat(p).isSymbolicLink()) {
6 | return fs.readlinkSync(p);
7 | } else {
8 | return p;
9 | }
10 | };
11 |
12 |
13 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/http-errors/node_modules/depd/lib/compat/event-listener-count.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2015 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = eventListenerCount
15 |
16 | /**
17 | * Get the count of listeners on an event emitter of a specific type.
18 | */
19 |
20 | function eventListenerCount (emitter, type) {
21 | return emitter.listeners(type).length
22 | }
23 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/http-errors/node_modules/setprototypeof/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Wes Todd
2 |
3 | Permission to use, copy, modify, and/or distribute this software for any
4 | purpose with or without fee is hereby granted, provided that the above
5 | copyright notice and this permission notice appear in all copies.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/http-errors/node_modules/setprototypeof/README.md:
--------------------------------------------------------------------------------
1 | # Polyfill for `Object.setPrototypeOf`
2 |
3 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.
4 |
5 | ## Usage:
6 |
7 | ```
8 | $ npm install --save setprototypeof
9 | ```
10 |
11 | ```javascript
12 | var setPrototypeOf = require('setprototypeof');
13 |
14 | var obj = {};
15 | setPrototypeOf(obj, {
16 | foo: function() {
17 | return 'bar';
18 | }
19 | });
20 | obj.foo(); // bar
21 | ```
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/http-errors/node_modules/setprototypeof/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Object.setPrototypeOf || ({__proto__:[]} instanceof Array ? setProtoOf : mixinProperties);
2 |
3 | function setProtoOf(obj, proto) {
4 | obj.__proto__ = proto;
5 | return obj;
6 | }
7 |
8 | function mixinProperties(obj, proto) {
9 | for (var prop in proto) {
10 | if (!obj.hasOwnProperty(prop)) {
11 | obj[prop] = proto[prop];
12 | }
13 | }
14 | return obj;
15 | }
16 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/iconv-lite/.npmignore:
--------------------------------------------------------------------------------
1 | *~
2 | *sublime-*
3 | generation
4 | test
5 | wiki
6 | coverage
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/iconv-lite/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: node_js
3 | node_js:
4 | - "0.10"
5 | - "0.11"
6 | - "0.12"
7 | - "iojs"
8 | - "4"
9 | - "6"
10 | - "8"
11 | - "node"
12 |
13 |
14 | env:
15 | - CXX=g++-4.8
16 | addons:
17 | apt:
18 | sources:
19 | - ubuntu-toolchain-r-test
20 | packages:
21 | - gcc-4.8
22 | - g++-4.8
23 |
24 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/iconv-lite/encodings/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | // Update this array if you add/rename/remove files in this directory.
4 | // We support Browserify by skipping automatic module discovery and requiring modules directly.
5 | var modules = [
6 | require("./internal"),
7 | require("./utf16"),
8 | require("./utf7"),
9 | require("./sbcs-codec"),
10 | require("./sbcs-data"),
11 | require("./sbcs-data-generated"),
12 | require("./dbcs-codec"),
13 | require("./dbcs-data"),
14 | ];
15 |
16 | // Put all encoding/alias/codec definitions to single object and export it.
17 | for (var i = 0; i < modules.length; i++) {
18 | var module = modules[i];
19 | for (var enc in module)
20 | if (Object.prototype.hasOwnProperty.call(module, enc))
21 | exports[enc] = module[enc];
22 | }
23 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | try {
2 | var util = require('util');
3 | if (typeof util.inherits !== 'function') throw '';
4 | module.exports = util.inherits;
5 | } catch (e) {
6 | module.exports = require('./inherits_browser.js');
7 | }
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | ctor.super_ = superCtor
5 | ctor.prototype = Object.create(superCtor.prototype, {
6 | constructor: {
7 | value: ctor,
8 | enumerable: false,
9 | writable: true,
10 | configurable: true
11 | }
12 | });
13 | };
14 | } else {
15 | // old school shim for old browsers
16 | module.exports = function inherits(ctor, superCtor) {
17 | ctor.super_ = superCtor
18 | var TempCtor = function () {}
19 | TempCtor.prototype = superCtor.prototype
20 | ctor.prototype = new TempCtor()
21 | ctor.prototype.constructor = ctor
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/ipaddr.js/.npmignore:
--------------------------------------------------------------------------------
1 | .idea
2 | node_modules
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/ipaddr.js/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 |
3 | node_js:
4 | - "0.10"
5 | - "0.11"
6 | - "0.12"
7 | - "4.0"
8 | - "4.1"
9 | - "4.2"
10 | - "5"
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/ipaddr.js/Cakefile:
--------------------------------------------------------------------------------
1 | fs = require 'fs'
2 | CoffeeScript = require 'coffee-script'
3 | nodeunit = require 'nodeunit'
4 | UglifyJS = require 'uglify-js'
5 |
6 | task 'build', 'build javascript files from sources', (cb) ->
7 | source = fs.readFileSync 'src/ipaddr.coffee', 'utf-8'
8 | fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString()
9 |
10 | source = fs.readFileSync 'lib/ipaddr.js', 'utf-8'
11 | fs.writeFileSync('ipaddr.min.js', UglifyJS.minify(source).code)
12 |
13 | task 'test', 'run the bundled tests', (cb) ->
14 | nodeunit.reporters.default.run ['test']
15 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/ipaddr.js/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ipaddr.js",
3 | "version": "1.6.0",
4 | "homepage": "https://github.com/whitequark/ipaddr.js",
5 | "authors": [
6 | "whitequark "
7 | ],
8 | "description": "IP address manipulation library in JavaScript (CoffeeScript, actually)",
9 | "main": "lib/ipaddr.js",
10 | "moduleType": [
11 | "globals",
12 | "node"
13 | ],
14 | "keywords": [
15 | "javscript",
16 | "ip",
17 | "address",
18 | "ipv4",
19 | "ipv6"
20 | ],
21 | "license": "MIT",
22 | "ignore": [
23 | "**/.*",
24 | "node_modules",
25 | "bower_components",
26 | "test",
27 | "tests"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/is-buffer/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Determine if an object is a Buffer
3 | *
4 | * @author Feross Aboukhadijeh
5 | * @license MIT
6 | */
7 |
8 | // The _isBuffer check is for Safari 5-7 support, because it's missing
9 | // Object.prototype.constructor. Remove this eventually
10 | module.exports = function (obj) {
11 | return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
12 | }
13 |
14 | function isBuffer (obj) {
15 | return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
16 | }
17 |
18 | // For Node v0.10 support. Remove this eventually.
19 | function isSlowBuffer (obj) {
20 | return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
21 | }
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/is-promise/.npmignore:
--------------------------------------------------------------------------------
1 | component
2 | build
3 | node_modules
4 | test.js
5 | component.json
6 | .gitignore
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/is-promise/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/is-promise/index.js:
--------------------------------------------------------------------------------
1 | module.exports = isPromise;
2 |
3 | function isPromise(obj) {
4 | return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
5 | }
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/is-promise/readme.md:
--------------------------------------------------------------------------------
1 |
2 | # is-promise
3 |
4 | Test whether an object looks like a promises-a+ promise
5 |
6 | [](https://travis-ci.org/then/is-promise)
7 | [](https://gemnasium.com/then/is-promise)
8 | [](https://www.npmjs.org/package/is-promise)
9 |
10 | ## Installation
11 |
12 | $ npm install is-promise
13 |
14 | You can also use it client side via npm.
15 |
16 | ## API
17 |
18 | ```javascript
19 | var isPromise = require('is-promise');
20 |
21 | isPromise({then:function () {...}});//=>true
22 | isPromise(null);//=>false
23 | isPromise({});//=>false
24 | isPromise({then: true})//=>false
25 | ```
26 |
27 | ## License
28 |
29 | MIT
30 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/isarray/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/isarray/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/isarray/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @node_modules/.bin/tape test.js
4 |
5 | .PHONY: test
6 |
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | var toString = {}.toString;
2 |
3 | module.exports = Array.isArray || function (arr) {
4 | return toString.call(arr) == '[object Array]';
5 | };
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/isarray/test.js:
--------------------------------------------------------------------------------
1 | var isArray = require('./');
2 | var test = require('tape');
3 |
4 | test('is array', function(t){
5 | t.ok(isArray([]));
6 | t.notOk(isArray({}));
7 | t.notOk(isArray(null));
8 | t.notOk(isArray(false));
9 |
10 | var obj = {};
11 | obj[0] = true;
12 | t.notOk(isArray(obj));
13 |
14 | var arr = [];
15 | arr.foo = 'bar';
16 | t.ok(isArray(arr));
17 |
18 | t.end();
19 | });
20 |
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/.npmignore:
--------------------------------------------------------------------------------
1 | test
2 | support
3 | benchmarks
4 | examples
5 | lib-cov
6 | coverage
7 | .gitmodules
8 | .travis.yml
9 | History.md
10 | Makefile
11 | test/
12 | support/
13 | benchmarks/
14 | examples/
15 | docs/
16 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/.release.json:
--------------------------------------------------------------------------------
1 | "2ab04e8289982bfac3548a9c6016476472dcdb4f"
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/block-code.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/node_modules/jade/block-code.html
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jade",
3 | "repo": "visionmedia/jade",
4 | "description": "Jade template runtime",
5 | "version": "1.11.0",
6 | "keywords": [
7 | "template"
8 | ],
9 | "dependencies": {},
10 | "development": {},
11 | "license": "MIT",
12 | "scripts": [
13 | "lib/runtime.js"
14 | ],
15 | "main": "lib/runtime.js"
16 | }
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/doctypes.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = {
4 | 'default': ''
5 | , 'xml': ''
6 | , 'transitional': ''
7 | , 'strict': ''
8 | , 'frameset': ''
9 | , '1.1': ''
10 | , 'basic': ''
11 | , 'mobile': ''
12 | };
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/filters-client.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = filter;
4 | function filter(name, str, options) {
5 | if (typeof filter[name] === 'function') {
6 | return filter[name](str, options);
7 | } else {
8 | throw new Error('unknown filter ":' + name + '"');
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/inline-tags.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = [
4 | 'a'
5 | , 'abbr'
6 | , 'acronym'
7 | , 'b'
8 | , 'br'
9 | , 'code'
10 | , 'em'
11 | , 'font'
12 | , 'i'
13 | , 'img'
14 | , 'ins'
15 | , 'kbd'
16 | , 'map'
17 | , 'samp'
18 | , 'small'
19 | , 'span'
20 | , 'strong'
21 | , 'sub'
22 | , 'sup'
23 | ];
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/block-comment.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `BlockComment` with the given `block`.
7 | *
8 | * @param {String} val
9 | * @param {Block} block
10 | * @param {Boolean} buffer
11 | * @api public
12 | */
13 |
14 | var BlockComment = module.exports = function BlockComment(val, block, buffer) {
15 | this.block = block;
16 | this.val = val;
17 | this.buffer = buffer;
18 | };
19 |
20 | // Inherit from `Node`.
21 | BlockComment.prototype = Object.create(Node.prototype);
22 | BlockComment.prototype.constructor = BlockComment;
23 |
24 | BlockComment.prototype.type = 'BlockComment';
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/case.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a new `Case` with `expr`.
7 | *
8 | * @param {String} expr
9 | * @api public
10 | */
11 |
12 | var Case = exports = module.exports = function Case(expr, block){
13 | this.expr = expr;
14 | this.block = block;
15 | };
16 |
17 | // Inherit from `Node`.
18 | Case.prototype = Object.create(Node.prototype);
19 | Case.prototype.constructor = Case;
20 |
21 | Case.prototype.type = 'Case';
22 |
23 | var When = exports.When = function When(expr, block){
24 | this.expr = expr;
25 | this.block = block;
26 | this.debug = false;
27 | };
28 |
29 | // Inherit from `Node`.
30 | When.prototype = Object.create(Node.prototype);
31 | When.prototype.constructor = When;
32 |
33 | When.prototype.type = 'When';
34 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/code.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `Code` node with the given code `val`.
7 | * Code may also be optionally buffered and escaped.
8 | *
9 | * @param {String} val
10 | * @param {Boolean} buffer
11 | * @param {Boolean} escape
12 | * @api public
13 | */
14 |
15 | var Code = module.exports = function Code(val, buffer, escape) {
16 | this.val = val;
17 | this.buffer = buffer;
18 | this.escape = escape;
19 | if (val.match(/^ *else/)) this.debug = false;
20 | };
21 |
22 | // Inherit from `Node`.
23 | Code.prototype = Object.create(Node.prototype);
24 | Code.prototype.constructor = Code;
25 |
26 | Code.prototype.type = 'Code'; // prevent the minifiers removing this
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/comment.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `Comment` with the given `val`, optionally `buffer`,
7 | * otherwise the comment may render in the output.
8 | *
9 | * @param {String} val
10 | * @param {Boolean} buffer
11 | * @api public
12 | */
13 |
14 | var Comment = module.exports = function Comment(val, buffer) {
15 | this.val = val;
16 | this.buffer = buffer;
17 | };
18 |
19 | // Inherit from `Node`.
20 | Comment.prototype = Object.create(Node.prototype);
21 | Comment.prototype.constructor = Comment;
22 |
23 | Comment.prototype.type = 'Comment';
24 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/doctype.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `Doctype` with the given `val`.
7 | *
8 | * @param {String} val
9 | * @api public
10 | */
11 |
12 | var Doctype = module.exports = function Doctype(val) {
13 | this.val = val;
14 | };
15 |
16 | // Inherit from `Node`.
17 | Doctype.prototype = Object.create(Node.prototype);
18 | Doctype.prototype.constructor = Doctype;
19 |
20 | Doctype.prototype.type = 'Doctype';
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/each.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize an `Each` node, representing iteration
7 | *
8 | * @param {String} obj
9 | * @param {String} val
10 | * @param {String} key
11 | * @param {Block} block
12 | * @api public
13 | */
14 |
15 | var Each = module.exports = function Each(obj, val, key, block) {
16 | this.obj = obj;
17 | this.val = val;
18 | this.key = key;
19 | this.block = block;
20 | };
21 |
22 | // Inherit from `Node`.
23 | Each.prototype = Object.create(Node.prototype);
24 | Each.prototype.constructor = Each;
25 |
26 | Each.prototype.type = 'Each';
27 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/filter.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `Filter` node with the given
7 | * filter `name` and `block`.
8 | *
9 | * @param {String} name
10 | * @param {Block|Node} block
11 | * @api public
12 | */
13 |
14 | var Filter = module.exports = function Filter(name, block, attrs) {
15 | this.name = name;
16 | this.block = block;
17 | this.attrs = attrs;
18 | };
19 |
20 | // Inherit from `Node`.
21 | Filter.prototype = Object.create(Node.prototype);
22 | Filter.prototype.constructor = Filter;
23 |
24 | Filter.prototype.type = 'Filter';
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.Node = require('./node');
4 | exports.Tag = require('./tag');
5 | exports.Code = require('./code');
6 | exports.Each = require('./each');
7 | exports.Case = require('./case');
8 | exports.Text = require('./text');
9 | exports.Block = require('./block');
10 | exports.MixinBlock = require('./mixin-block');
11 | exports.Mixin = require('./mixin');
12 | exports.Filter = require('./filter');
13 | exports.Comment = require('./comment');
14 | exports.Literal = require('./literal');
15 | exports.BlockComment = require('./block-comment');
16 | exports.Doctype = require('./doctype');
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/literal.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `Literal` node with the given `str.
7 | *
8 | * @param {String} str
9 | * @api public
10 | */
11 |
12 | var Literal = module.exports = function Literal(str) {
13 | this.str = str;
14 | };
15 |
16 | // Inherit from `Node`.
17 | Literal.prototype = Object.create(Node.prototype);
18 | Literal.prototype.constructor = Literal;
19 |
20 | Literal.prototype.type = 'Literal';
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/mixin-block.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a new `Block` with an optional `node`.
7 | *
8 | * @param {Node} node
9 | * @api public
10 | */
11 |
12 | var MixinBlock = module.exports = function MixinBlock(){};
13 |
14 | // Inherit from `Node`.
15 | MixinBlock.prototype = Object.create(Node.prototype);
16 | MixinBlock.prototype.constructor = MixinBlock;
17 |
18 | MixinBlock.prototype.type = 'MixinBlock';
19 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/mixin.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Attrs = require('./attrs');
4 |
5 | /**
6 | * Initialize a new `Mixin` with `name` and `block`.
7 | *
8 | * @param {String} name
9 | * @param {String} args
10 | * @param {Block} block
11 | * @api public
12 | */
13 |
14 | var Mixin = module.exports = function Mixin(name, args, block, call){
15 | Attrs.call(this);
16 | this.name = name;
17 | this.args = args;
18 | this.block = block;
19 | this.call = call;
20 | };
21 |
22 | // Inherit from `Attrs`.
23 | Mixin.prototype = Object.create(Attrs.prototype);
24 | Mixin.prototype.constructor = Mixin;
25 |
26 | Mixin.prototype.type = 'Mixin';
27 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/node.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = module.exports = function Node(){};
4 |
5 | /**
6 | * Clone this node (return itself)
7 | *
8 | * @return {Node}
9 | * @api private
10 | */
11 |
12 | Node.prototype.clone = function(){
13 | var err = new Error('node.clone is deprecated and will be removed in v2.0.0');
14 | console.warn(err.stack);
15 | return this;
16 | };
17 |
18 | Node.prototype.type = '';
19 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/jade/lib/nodes/text.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Node = require('./node');
4 |
5 | /**
6 | * Initialize a `Text` node with optional `line`.
7 | *
8 | * @param {String} line
9 | * @api public
10 | */
11 |
12 | var Text = module.exports = function Text(line) {
13 | this.val = line;
14 | };
15 |
16 | // Inherit from `Node`.
17 | Text.prototype = Object.create(Node.prototype);
18 | Text.prototype.constructor = Text;
19 |
20 | Text.prototype.type = 'Text';
21 |
22 | /**
23 | * Flag as text.
24 | */
25 |
26 | Text.prototype.isText = true;
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/longest/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * longest
3 | *
4 | * Copyright (c) 2014-2015, Jon Schlinkert.
5 | * Licensed under the MIT License.
6 | */
7 |
8 | 'use strict';
9 |
10 | module.exports = function(arr) {
11 | if (!arr) {
12 | return null;
13 | }
14 |
15 | var len = arr.length;
16 | if (!len) {
17 | return null;
18 | }
19 |
20 | var c = 0;
21 | var i = 0;
22 | var ele;
23 | var elen;
24 | var res;
25 |
26 | for (; i < len; i++) {
27 | ele = arr[i].toString();
28 | elen = ele.length;
29 |
30 | if (elen > c) {
31 | res = ele;
32 | c = elen;
33 | }
34 | }
35 |
36 | return res;
37 | };
38 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/media-typer/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.3.0 / 2014-09-07
2 | ==================
3 |
4 | * Support Node.js 0.6
5 | * Throw error when parameter format invalid on parse
6 |
7 | 0.2.0 / 2014-06-18
8 | ==================
9 |
10 | * Add `typer.format()` to format media types
11 |
12 | 0.1.0 / 2014-06-17
13 | ==================
14 |
15 | * Accept `req` as argument to `parse`
16 | * Accept `res` as argument to `parse`
17 | * Parse media type with extra LWS between type and first parameter
18 |
19 | 0.0.0 / 2014-06-13
20 | ==================
21 |
22 | * Initial implementation
23 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/merge-descriptors/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2016-01-17
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.0 / 2015-03-01
7 | ==================
8 |
9 | * Add option to only add new descriptors
10 | * Add simple argument validation
11 | * Add jsdoc to source file
12 |
13 | 0.0.2 / 2013-12-14
14 | ==================
15 |
16 | * Move repository to `component` organization
17 |
18 | 0.0.1 / 2013-10-29
19 | ==================
20 |
21 | * Initial release
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/methods/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.1.2 / 2016-01-17
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.1.1 / 2014-12-30
7 | ==================
8 |
9 | * Improve `browserify` support
10 |
11 | 1.1.0 / 2014-07-05
12 | ==================
13 |
14 | * Add `CONNECT` method
15 |
16 | 1.0.1 / 2014-06-02
17 | ==================
18 |
19 | * Fix module to work with harmony transform
20 |
21 | 1.0.0 / 2014-05-08
22 | ==================
23 |
24 | * Add `PURGE` method
25 |
26 | 0.1.0 / 2013-10-28
27 | ==================
28 |
29 | * Add `http.METHODS` support
30 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | */
10 |
11 | module.exports = require('./db.json')
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mime/build/build.js:
--------------------------------------------------------------------------------
1 | var db = require('mime-db');
2 |
3 | var mapByType = {};
4 | Object.keys(db).forEach(function(key) {
5 | var extensions = db[key].extensions;
6 | if (extensions) {
7 | mapByType[key] = extensions;
8 | }
9 | });
10 |
11 | console.log(JSON.stringify(mapByType));
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mime/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mime = require('./mime.js');
4 | var file = process.argv[2];
5 | var type = mime.lookup(file);
6 |
7 | process.stdout.write(type + '\n');
8 |
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/example/parse.js:
--------------------------------------------------------------------------------
1 | var argv = require('../')(process.argv.slice(2));
2 | console.dir(argv);
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/test/dash.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('-', function (t) {
5 | t.plan(5);
6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
9 | t.deepEqual(
10 | parse([ '-b', '-' ], { boolean: 'b' }),
11 | { b: true, _: [ '-' ] }
12 | );
13 | t.deepEqual(
14 | parse([ '-s', '-' ], { string: 's' }),
15 | { s: '-', _: [] }
16 | );
17 | });
18 |
19 | test('-a -- b', function (t) {
20 | t.plan(3);
21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
24 | });
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/test/default_bool.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('boolean default true', function (t) {
5 | var argv = parse([], {
6 | boolean: 'sometrue',
7 | default: { sometrue: true }
8 | });
9 | t.equal(argv.sometrue, true);
10 | t.end();
11 | });
12 |
13 | test('boolean default false', function (t) {
14 | var argv = parse([], {
15 | boolean: 'somefalse',
16 | default: { somefalse: false }
17 | });
18 | t.equal(argv.somefalse, false);
19 | t.end();
20 | });
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/test/dotted.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('dotted alias', function (t) {
5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
6 | t.equal(argv.a.b, 22);
7 | t.equal(argv.aa.bb, 22);
8 | t.end();
9 | });
10 |
11 | test('dotted default', function (t) {
12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
13 | t.equal(argv.a.b, 11);
14 | t.equal(argv.aa.bb, 11);
15 | t.end();
16 | });
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/test/long.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('long opts', function (t) {
5 | t.deepEqual(
6 | parse([ '--bool' ]),
7 | { bool : true, _ : [] },
8 | 'long boolean'
9 | );
10 | t.deepEqual(
11 | parse([ '--pow', 'xixxle' ]),
12 | { pow : 'xixxle', _ : [] },
13 | 'long capture sp'
14 | );
15 | t.deepEqual(
16 | parse([ '--pow=xixxle' ]),
17 | { pow : 'xixxle', _ : [] },
18 | 'long capture eq'
19 | );
20 | t.deepEqual(
21 | parse([ '--host', 'localhost', '--port', '555' ]),
22 | { host : 'localhost', port : 555, _ : [] },
23 | 'long captures sp'
24 | );
25 | t.deepEqual(
26 | parse([ '--host=localhost', '--port=555' ]),
27 | { host : 'localhost', port : 555, _ : [] },
28 | 'long captures eq'
29 | );
30 | t.end();
31 | });
32 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/test/parse_modified.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('parse with modifier functions' , function (t) {
5 | t.plan(1);
6 |
7 | var argv = parse([ '-b', '123' ], { boolean: 'b' });
8 | t.deepEqual(argv, { b: true, _: ['123'] });
9 | });
10 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/minimist/test/whitespace.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('whitespace should be whitespace' , function (t) {
5 | t.plan(1);
6 | var x = parse([ '-x', '\t' ]).x;
7 | t.equal(x, '\t');
8 | });
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 | - "0.12"
6 | - "iojs"
7 | before_install:
8 | - npm install -g npm@~1.4.6
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/bin/cmd.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mkdirp = require('../');
4 | var minimist = require('minimist');
5 | var fs = require('fs');
6 |
7 | var argv = minimist(process.argv.slice(2), {
8 | alias: { m: 'mode', h: 'help' },
9 | string: [ 'mode' ]
10 | });
11 | if (argv.help) {
12 | fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout);
13 | return;
14 | }
15 |
16 | var paths = argv._.slice();
17 | var mode = argv.mode ? parseInt(argv.mode, 8) : undefined;
18 |
19 | (function next () {
20 | if (paths.length === 0) return;
21 | var p = paths.shift();
22 |
23 | if (mode === undefined) mkdirp(p, cb)
24 | else mkdirp(p, mode, cb)
25 |
26 | function cb (err) {
27 | if (err) {
28 | console.error(err.message);
29 | process.exit(1);
30 | }
31 | else next();
32 | }
33 | })();
34 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/bin/usage.txt:
--------------------------------------------------------------------------------
1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS}
2 |
3 | Create each supplied directory including any necessary parent directories that
4 | don't yet exist.
5 |
6 | If the directory already exists, do nothing.
7 |
8 | OPTIONS are:
9 |
10 | -m, --mode If a directory needs to be created, set the mode as an octal
11 | permission string.
12 |
13 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/examples/pow.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('mkdirp');
2 |
3 | mkdirp('/tmp/foo/bar/baz', function (err) {
4 | if (err) console.error(err)
5 | else console.log('pow!')
6 | });
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/test/opts_fs_sync.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var test = require('tap').test;
4 | var mockfs = require('mock-fs');
5 | var _0777 = parseInt('0777', 8);
6 | var _0755 = parseInt('0755', 8);
7 |
8 | test('opts.fs sync', function (t) {
9 | t.plan(4);
10 |
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/beep/boop/' + [x,y,z].join('/');
16 | var xfs = mockfs.fs();
17 |
18 | mkdirp.sync(file, { fs: xfs, mode: _0755 });
19 | xfs.exists(file, function (ex) {
20 | t.ok(ex, 'created file');
21 | xfs.stat(file, function (err, stat) {
22 | t.ifError(err);
23 | t.equal(stat.mode & _0777, _0755);
24 | t.ok(stat.isDirectory(), 'target not a directory');
25 | });
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/test/return.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 |
6 | test('return value', function (t) {
7 | t.plan(4);
8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
11 |
12 | var file = '/tmp/' + [x,y,z].join('/');
13 |
14 | // should return the first dir created.
15 | // By this point, it would be profoundly surprising if /tmp didn't
16 | // already exist, since every other test makes things in there.
17 | mkdirp(file, function (err, made) {
18 | t.ifError(err);
19 | t.equal(made, '/tmp/' + x);
20 | mkdirp(file, function (err, made) {
21 | t.ifError(err);
22 | t.equal(made, null);
23 | });
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/test/return_sync.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 |
6 | test('return value', function (t) {
7 | t.plan(2);
8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
11 |
12 | var file = '/tmp/' + [x,y,z].join('/');
13 |
14 | // should return the first dir created.
15 | // By this point, it would be profoundly surprising if /tmp didn't
16 | // already exist, since every other test makes things in there.
17 | // Note that this will throw on failure, which will fail the test.
18 | var made = mkdirp.sync(file);
19 | t.equal(made, '/tmp/' + x);
20 |
21 | // making the same file again should have no effect.
22 | made = mkdirp.sync(file);
23 | t.equal(made, null);
24 | });
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/mkdirp/test/root.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 | var _0755 = parseInt('0755', 8);
6 |
7 | test('root', function (t) {
8 | // '/' on unix, 'c:/' on windows.
9 | var file = path.resolve('/');
10 |
11 | mkdirp(file, _0755, function (err) {
12 | if (err) throw err
13 | fs.stat(file, function (er, stat) {
14 | if (er) throw er
15 | t.ok(stat.isDirectory(), 'target is a directory');
16 | t.end();
17 | })
18 | });
19 | });
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/on-headers/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2015-09-29
2 | ==================
3 |
4 | * perf: enable strict mode
5 |
6 | 1.0.0 / 2014-08-10
7 | ==================
8 |
9 | * Honor `res.statusCode` change in `listener`
10 | * Move to `jshttp` orgainzation
11 | * Prevent `arguments`-related de-opt
12 |
13 | 0.0.0 / 2014-05-13
14 | ==================
15 |
16 | * Initial implementation
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/bool.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var util = require('util');
3 | var argv = require('optimist').argv;
4 |
5 | if (argv.s) {
6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
7 | }
8 | console.log(
9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
10 | );
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/boolean_double.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .boolean(['x','y','z'])
4 | .argv
5 | ;
6 | console.dir([ argv.x, argv.y, argv.z ]);
7 | console.dir(argv._);
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/boolean_single.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .boolean('v')
4 | .argv
5 | ;
6 | console.dir(argv.v);
7 | console.dir(argv._);
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/default_hash.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var argv = require('optimist')
4 | .default({ x : 10, y : 10 })
5 | .argv
6 | ;
7 |
8 | console.log(argv.x + argv.y);
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/default_singles.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .default('x', 10)
4 | .default('y', 10)
5 | .argv
6 | ;
7 | console.log(argv.x + argv.y);
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/divide.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var argv = require('optimist')
4 | .usage('Usage: $0 -x [num] -y [num]')
5 | .demand(['x','y'])
6 | .argv;
7 |
8 | console.log(argv.x / argv.y);
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/line_count.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .usage('Count the lines in a file.\nUsage: $0')
4 | .demand('f')
5 | .alias('f', 'file')
6 | .describe('f', 'Load a file')
7 | .argv
8 | ;
9 |
10 | var fs = require('fs');
11 | var s = fs.createReadStream(argv.file);
12 |
13 | var lines = 0;
14 | s.on('data', function (buf) {
15 | lines += buf.toString().match(/\n/g).length;
16 | });
17 |
18 | s.on('end', function () {
19 | console.log(lines);
20 | });
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/line_count_options.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .usage('Count the lines in a file.\nUsage: $0')
4 | .options({
5 | file : {
6 | demand : true,
7 | alias : 'f',
8 | description : 'Load a file'
9 | },
10 | base : {
11 | alias : 'b',
12 | description : 'Numeric base to use for output',
13 | default : 10,
14 | },
15 | })
16 | .argv
17 | ;
18 |
19 | var fs = require('fs');
20 | var s = fs.createReadStream(argv.file);
21 |
22 | var lines = 0;
23 | s.on('data', function (buf) {
24 | lines += buf.toString().match(/\n/g).length;
25 | });
26 |
27 | s.on('end', function () {
28 | console.log(lines.toString(argv.base));
29 | });
30 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/line_count_wrap.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .usage('Count the lines in a file.\nUsage: $0')
4 | .wrap(80)
5 | .demand('f')
6 | .alias('f', [ 'file', 'filename' ])
7 | .describe('f',
8 | "Load a file. It's pretty important."
9 | + " Required even. So you'd better specify it."
10 | )
11 | .alias('b', 'base')
12 | .describe('b', 'Numeric base to display the number of lines in')
13 | .default('b', 10)
14 | .describe('x', 'Super-secret optional parameter which is secret')
15 | .default('x', '')
16 | .argv
17 | ;
18 |
19 | var fs = require('fs');
20 | var s = fs.createReadStream(argv.file);
21 |
22 | var lines = 0;
23 | s.on('data', function (buf) {
24 | lines += buf.toString().match(/\n/g).length;
25 | });
26 |
27 | s.on('end', function () {
28 | console.log(lines.toString(argv.base));
29 | });
30 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/nonopt.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist').argv;
3 | console.log('(%d,%d)', argv.x, argv.y);
4 | console.log(argv._);
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/reflect.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | console.dir(require('optimist').argv);
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/short.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist').argv;
3 | console.log('(%d,%d)', argv.x, argv.y);
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/string.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist')
3 | .string('x', 'y')
4 | .argv
5 | ;
6 | console.dir([ argv.x, argv.y ]);
7 |
8 | /* Turns off numeric coercion:
9 | ./node string.js -x 000123 -y 9876
10 | [ '000123', '9876' ]
11 | */
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/usage-options.js:
--------------------------------------------------------------------------------
1 | var optimist = require('./../index');
2 |
3 | var argv = optimist.usage('This is my awesome program', {
4 | 'about': {
5 | description: 'Provide some details about the author of this program',
6 | required: true,
7 | short: 'a',
8 | },
9 | 'info': {
10 | description: 'Provide some information about the node.js agains!!!!!!',
11 | boolean: true,
12 | short: 'i'
13 | }
14 | }).argv;
15 |
16 | optimist.showHelp();
17 |
18 | console.log('\n\nInspecting options');
19 | console.dir(argv);
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/example/xup.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('optimist').argv;
3 |
4 | if (argv.rif - 5 * argv.xup > 7.138) {
5 | console.log('Buy more riffiwobbles');
6 | }
7 | else {
8 | console.log('Sell the xupptumblers');
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/test/_/argv.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | console.log(JSON.stringify(process.argv));
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/optimist/test/_/bin.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | var argv = require('../../index').argv
3 | console.log(JSON.stringify(argv._));
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/path-to-regexp/History.md:
--------------------------------------------------------------------------------
1 | 0.1.7 / 2015-07-28
2 | ==================
3 |
4 | * Fixed regression with escaped round brackets and matching groups.
5 |
6 | 0.1.6 / 2015-06-19
7 | ==================
8 |
9 | * Replace `index` feature by outputting all parameters, unnamed and named.
10 |
11 | 0.1.5 / 2015-05-08
12 | ==================
13 |
14 | * Add an index property for position in match result.
15 |
16 | 0.1.4 / 2015-03-05
17 | ==================
18 |
19 | * Add license information
20 |
21 | 0.1.3 / 2014-07-06
22 | ==================
23 |
24 | * Better array support
25 | * Improved support for trailing slash in non-ending mode
26 |
27 | 0.1.0 / 2014-03-06
28 | ==================
29 |
30 | * add options.end
31 |
32 | 0.0.2 / 2013-02-10
33 | ==================
34 |
35 | * Update to match current express
36 | * add .license property to component.json
37 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/process-nextick-args/readme.md:
--------------------------------------------------------------------------------
1 | process-nextick-args
2 | =====
3 |
4 | [](https://travis-ci.org/calvinmetcalf/process-nextick-args)
5 |
6 | ```bash
7 | npm install --save process-nextick-args
8 | ```
9 |
10 | Always be able to pass arguments to process.nextTick, no matter the platform
11 |
12 | ```js
13 | var pna = require('process-nextick-args');
14 |
15 | pna.nextTick(function (a, b, c) {
16 | console.log(a, b, c);
17 | }, 'step', 3, 'profit');
18 | ```
19 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/progress-stream/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/progress-stream/test/request.js:
--------------------------------------------------------------------------------
1 | var progress = require('../index');
2 | var req = require('request');
3 | var fs = require('fs');
4 | var log = require('single-line-log').stdout;
5 | var numeral = require('numeral');
6 |
7 | var str = progress({
8 | drain: true,
9 | time: 100
10 | }, function(progress) {
11 | log('Running: '+numeral(progress.runtime).format('00:00:00')+' ('+numeral(progress.transferred).format('0 b')+')\n'+
12 | 'Left: '+numeral(progress.eta).format('00:00:00')+' ('+numeral(progress.remaining).format('0 b')+')\n'+
13 | numeral(progress.speed).format('0.00b')+'/s '+Math.round(progress.percentage)+'%');
14 | });
15 |
16 | req('http://cachefly.cachefly.net/10mb.test', {
17 | headers: { 'user-agent': 'test' }
18 | }).pipe(str);
19 |
20 | console.log('progress-stream using request module - downloading 10 MB file');
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "asi": true,
3 | "node": true,
4 | "strict": true
5 | }
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/.npmignore:
--------------------------------------------------------------------------------
1 | components
2 | node_modules
3 | test
4 | .gitignore
5 | .travis.yml
6 | component.json
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/core.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('./lib/core.js');
4 |
5 | console.error('require("promise/core") is deprecated, use require("promise/lib/core") instead.');
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | module.exports = require('./lib/core.js')
4 | require('./lib/done.js')
5 | require('./lib/es6-extensions.js')
6 | require('./lib/node-extensions.js')
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/lib/done.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Promise = require('./core.js')
4 | var asap = require('asap')
5 |
6 | module.exports = Promise
7 | Promise.prototype.done = function (onFulfilled, onRejected) {
8 | var self = arguments.length ? this.then.apply(this, arguments) : this
9 | self.then(null, function (err) {
10 | asap(function () {
11 | throw err
12 | })
13 | })
14 | }
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/polyfill-done.js:
--------------------------------------------------------------------------------
1 | // should work in any browser without browserify
2 |
3 | if (typeof Promise.prototype.done !== 'function') {
4 | Promise.prototype.done = function (onFulfilled, onRejected) {
5 | var self = arguments.length ? this.then.apply(this, arguments) : this
6 | self.then(null, function (err) {
7 | setTimeout(function () {
8 | throw err
9 | }, 0)
10 | })
11 | }
12 | }
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/promise/polyfill.js:
--------------------------------------------------------------------------------
1 | // not "use strict" so we can declare global "Promise"
2 |
3 | var asap = require('asap');
4 |
5 | if (typeof Promise === 'undefined') {
6 | Promise = require('./lib/core.js')
7 | require('./lib/es6-extensions.js')
8 | }
9 |
10 | require('./polyfill-done.js');
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 | max_line_length = 140
11 |
12 | [test/*]
13 | max_line_length = off
14 |
15 | [*.md]
16 | max_line_length = off
17 |
18 | [*.json]
19 | max_line_length = off
20 |
21 | [Makefile]
22 | max_line_length = off
23 |
24 | [CHANGELOG.md]
25 | indent_style = space
26 | indent_size = 2
27 |
28 | [LICENSE]
29 | indent_size = 2
30 | max_line_length = off
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/.eslintignore:
--------------------------------------------------------------------------------
1 | dist
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "complexity": [2, 28],
8 | "consistent-return": 1,
9 | "func-name-matching": 0,
10 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
11 | "indent": [2, 4],
12 | "max-params": [2, 12],
13 | "max-statements": [2, 45],
14 | "no-continue": 1,
15 | "no-magic-numbers": 0,
16 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
17 | "operator-linebreak": [2, "before"],
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/lib/formats.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var replace = String.prototype.replace;
4 | var percentTwenties = /%20/g;
5 |
6 | module.exports = {
7 | 'default': 'RFC3986',
8 | formatters: {
9 | RFC1738: function (value) {
10 | return replace.call(value, percentTwenties, '+');
11 | },
12 | RFC3986: function (value) {
13 | return value;
14 | }
15 | },
16 | RFC1738: 'RFC1738',
17 | RFC3986: 'RFC3986'
18 | };
19 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var stringify = require('./stringify');
4 | var parse = require('./parse');
5 | var formats = require('./formats');
6 |
7 | module.exports = {
8 | formats: formats,
9 | parse: parse,
10 | stringify: stringify
11 | };
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/test/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "array-bracket-newline": 0,
4 | "array-element-newline": 0,
5 | "consistent-return": 2,
6 | "max-lines": 0,
7 | "max-nested-callbacks": [2, 3],
8 | "max-statements": 0,
9 | "no-buffer-constructor": 0,
10 | "no-extend-native": 0,
11 | "no-magic-numbers": 0,
12 | "object-curly-newline": 0,
13 | "sort-keys": 0
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/qs/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | require('./parse');
4 |
5 | require('./stringify');
6 |
7 | require('./utils');
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/duplex-browser.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/_stream_duplex.js');
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./readable').Duplex
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/lib/internal/streams/stream-browser.js:
--------------------------------------------------------------------------------
1 | module.exports = require('events').EventEmitter;
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/lib/internal/streams/stream.js:
--------------------------------------------------------------------------------
1 | module.exports = require('stream');
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./readable').PassThrough
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/readable-browser.js:
--------------------------------------------------------------------------------
1 | exports = module.exports = require('./lib/_stream_readable.js');
2 | exports.Stream = exports;
3 | exports.Readable = exports;
4 | exports.Writable = require('./lib/_stream_writable.js');
5 | exports.Duplex = require('./lib/_stream_duplex.js');
6 | exports.Transform = require('./lib/_stream_transform.js');
7 | exports.PassThrough = require('./lib/_stream_passthrough.js');
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/readable.js:
--------------------------------------------------------------------------------
1 | var Stream = require('stream');
2 | if (process.env.READABLE_STREAM === 'disable' && Stream) {
3 | module.exports = Stream;
4 | exports = module.exports = Stream.Readable;
5 | exports.Readable = Stream.Readable;
6 | exports.Writable = Stream.Writable;
7 | exports.Duplex = Stream.Duplex;
8 | exports.Transform = Stream.Transform;
9 | exports.PassThrough = Stream.PassThrough;
10 | exports.Stream = Stream;
11 | } else {
12 | exports = module.exports = require('./lib/_stream_readable.js');
13 | exports.Stream = Stream || exports;
14 | exports.Readable = exports;
15 | exports.Writable = require('./lib/_stream_writable.js');
16 | exports.Duplex = require('./lib/_stream_duplex.js');
17 | exports.Transform = require('./lib/_stream_transform.js');
18 | exports.PassThrough = require('./lib/_stream_passthrough.js');
19 | }
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./readable').Transform
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/writable-browser.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/_stream_writable.js');
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | var Stream = require("stream")
2 | var Writable = require("./lib/_stream_writable.js")
3 |
4 | if (process.env.READABLE_STREAM === 'disable') {
5 | module.exports = Stream && Stream.Writable || Writable
6 | } else {
7 | module.exports = Writable
8 | }
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/right-align/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * right-align
3 | *
4 | * Copyright (c) 2015, Jon Schlinkert.
5 | * Licensed under the MIT License.
6 | */
7 |
8 | 'use strict';
9 |
10 | var align = require('align-text');
11 |
12 | module.exports = function rightAlign(val) {
13 | return align(val, function (len, longest) {
14 | return longest - len;
15 | });
16 | };
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/safe-buffer/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 'node'
4 | - '5'
5 | - '4'
6 | - '0.12'
7 | - '0.10'
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/setprototypeof/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Wes Todd
2 |
3 | Permission to use, copy, modify, and/or distribute this software for any
4 | purpose with or without fee is hereby granted, provided that the above
5 | copyright notice and this permission notice appear in all copies.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/setprototypeof/README.md:
--------------------------------------------------------------------------------
1 | # Polyfill for `Object.setPrototypeOf`
2 |
3 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.
4 |
5 | ## Usage:
6 |
7 | ```
8 | $ npm install --save setprototypeof
9 | ```
10 |
11 | ```javascript
12 | var setPrototypeOf = require('setprototypeof');
13 |
14 | var obj = {};
15 | setPrototypeOf(obj, {
16 | foo: function() {
17 | return 'bar';
18 | }
19 | });
20 | obj.foo(); // bar
21 | ```
22 |
23 | TypeScript is also supported:
24 | ```typescript
25 | import setPrototypeOf = require('setprototypeof');
26 | ```
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/setprototypeof/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function setPrototypeOf(o: any, proto: object | null): any;
2 | export = setPrototypeOf;
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/setprototypeof/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Object.setPrototypeOf || ({__proto__:[]} instanceof Array ? setProtoOf : mixinProperties);
2 |
3 | function setProtoOf(obj, proto) {
4 | obj.__proto__ = proto;
5 | return obj;
6 | }
7 |
8 | function mixinProperties(obj, proto) {
9 | for (var prop in proto) {
10 | if (!obj.hasOwnProperty(prop)) {
11 | obj[prop] = proto[prop];
12 | }
13 | }
14 | return obj;
15 | }
16 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/prefix-source-map.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 |
8 | /*
9 | * WARNING!
10 | *
11 | * Do not edit this file directly, it is built from the sources at
12 | * https://github.com/mozilla/source-map/
13 | */
14 |
15 | ///////////////////////////////////////////////////////////////////////////////
16 |
17 |
18 | this.EXPORTED_SYMBOLS = [ "SourceMapConsumer", "SourceMapGenerator", "SourceNode" ];
19 |
20 | Components.utils.import("resource://gre/modules/devtools/Console.jsm");
21 | Components.utils.import('resource://gre/modules/devtools/Require.jsm');
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/prefix-utils.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 |
8 | /*
9 | * WARNING!
10 | *
11 | * Do not edit this file directly, it is built from the sources at
12 | * https://github.com/mozilla/source-map/
13 | */
14 |
15 | Components.utils.import('resource://gre/modules/devtools/Require.jsm');
16 | Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm');
17 |
18 | this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ];
19 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/suffix-browser.js:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | ///////////////////////////////////////////////////////////////////////////////
3 |
4 | this.sourceMap = {
5 | SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer,
6 | SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator,
7 | SourceNode: require('source-map/source-node').SourceNode
8 | };
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/suffix-source-map.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | ///////////////////////////////////////////////////////////////////////////////
3 |
4 | this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer;
5 | this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator;
6 | this.SourceNode = require('source-map/source-node').SourceNode;
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/suffix-utils.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 | function runSourceMapTests(modName, do_throw) {
8 | let mod = require(modName);
9 | let assert = require('test/source-map/assert');
10 | let util = require('test/source-map/util');
11 |
12 | assert.init(do_throw);
13 |
14 | for (let k in mod) {
15 | if (/^test/.test(k)) {
16 | mod[k](assert, util);
17 | }
18 | }
19 |
20 | }
21 | this.runSourceMapTests = runSourceMapTests;
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/test-prefix.js:
--------------------------------------------------------------------------------
1 | /*
2 | * WARNING!
3 | *
4 | * Do not edit this file directly, it is built from the sources at
5 | * https://github.com/mozilla/source-map/
6 | */
7 |
8 | Components.utils.import('resource://test/Utils.jsm');
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/build/test-suffix.js:
--------------------------------------------------------------------------------
1 | function run_test() {
2 | runSourceMapTests('{THIS_MODULE}', do_throw);
3 | }
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/source-map/lib/source-map.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009-2011 Mozilla Foundation and contributors
3 | * Licensed under the New BSD license. See LICENSE.txt or:
4 | * http://opensource.org/licenses/BSD-3-Clause
5 | */
6 | exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator;
7 | exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer;
8 | exports.SourceNode = require('./source-map/source-node').SourceNode;
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/speedometer/README.md:
--------------------------------------------------------------------------------
1 | # speedometer
2 |
3 | Speed measurement in Javascript
4 |
5 | ```
6 | npm install speedometer
7 | ```
8 |
9 | ## Usage
10 |
11 | ``` js
12 | var speedometer = require('speedometer')
13 | var fs = require('fs')
14 |
15 | // Let's measure how fast we can read from /dev/urandom
16 | var speed = speedometer()
17 | var stream = fs.createReadStream('/dev/urandom')
18 |
19 | stream.on('data', function(data) {
20 | // Simply call speed with the amount of bytes transferred
21 | var bytesPerSecond = speed(data.length)
22 |
23 | console.log(bytesPerSecond+' bytes/second')
24 | })
25 | ```
26 |
27 | You can always get the current speed by calling `speed()`.
28 |
29 | Per default `speedometer` uses a 5 second buffer.
30 | To change this simply pass another value to the constructor
31 |
32 | ``` js
33 | var speed = speedometer(20) // uses a 20s buffer instead
34 | ```
35 |
36 | ## License
37 |
38 | MIT
39 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/through2/.npmignore:
--------------------------------------------------------------------------------
1 | test
2 | .jshintrc
3 | .travis.yml
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/.npmignore:
--------------------------------------------------------------------------------
1 | test/
2 | .travis.yml
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/.bin/uglifyjs:
--------------------------------------------------------------------------------
1 | ../uglify-js/bin/uglifyjs
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/is-promise/.npmignore:
--------------------------------------------------------------------------------
1 | component
2 | build
3 | node_modules
4 | test.js
5 | component.json
6 | .gitignore
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/is-promise/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/is-promise/index.js:
--------------------------------------------------------------------------------
1 | module.exports = isPromise;
2 |
3 | function isPromise(obj) {
4 | return obj && typeof obj.then === 'function';
5 | }
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/promise/.npmignore:
--------------------------------------------------------------------------------
1 | components
2 | node_modules
3 | test
4 | .gitignore
5 | .travis.yml
6 | component.json
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/.npmignore:
--------------------------------------------------------------------------------
1 | dist/*
2 | node_modules/*
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.8
4 | - "0.10"
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/prefix-source-map.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 |
8 | /*
9 | * WARNING!
10 | *
11 | * Do not edit this file directly, it is built from the sources at
12 | * https://github.com/mozilla/source-map/
13 | */
14 |
15 | ///////////////////////////////////////////////////////////////////////////////
16 |
17 |
18 | this.EXPORTED_SYMBOLS = [ "SourceMapConsumer", "SourceMapGenerator", "SourceNode" ];
19 |
20 | Components.utils.import('resource://gre/modules/devtools/Require.jsm');
21 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/prefix-utils.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 |
8 | /*
9 | * WARNING!
10 | *
11 | * Do not edit this file directly, it is built from the sources at
12 | * https://github.com/mozilla/source-map/
13 | */
14 |
15 | Components.utils.import('resource://gre/modules/devtools/Require.jsm');
16 | Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm');
17 |
18 | this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ];
19 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/suffix-browser.js:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | ///////////////////////////////////////////////////////////////////////////////
3 |
4 | this.sourceMap = {
5 | SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer,
6 | SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator,
7 | SourceNode: require('source-map/source-node').SourceNode
8 | };
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/suffix-source-map.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | ///////////////////////////////////////////////////////////////////////////////
3 |
4 | this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer;
5 | this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator;
6 | this.SourceNode = require('source-map/source-node').SourceNode;
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/suffix-utils.jsm:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 | function runSourceMapTests(modName, do_throw) {
8 | let mod = require(modName);
9 | let assert = require('test/source-map/assert');
10 | let util = require('test/source-map/util');
11 |
12 | assert.init(do_throw);
13 |
14 | for (let k in mod) {
15 | if (/^test/.test(k)) {
16 | mod[k](assert, util);
17 | }
18 | }
19 |
20 | }
21 | this.runSourceMapTests = runSourceMapTests;
22 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/test-prefix.js:
--------------------------------------------------------------------------------
1 | /*
2 | * WARNING!
3 | *
4 | * Do not edit this file directly, it is built from the sources at
5 | * https://github.com/mozilla/source-map/
6 | */
7 |
8 | Components.utils.import('resource://test/Utils.jsm');
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/build/test-suffix.js:
--------------------------------------------------------------------------------
1 | function run_test() {
2 | runSourceMapTests('{THIS_MODULE}', do_throw);
3 | }
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/lib/source-map.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009-2011 Mozilla Foundation and contributors
3 | * Licensed under the New BSD license. See LICENSE.txt or:
4 | * http://opensource.org/licenses/BSD-3-Clause
5 | */
6 | exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator;
7 | exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer;
8 | exports.SourceNode = require('./source-map/source-node').SourceNode;
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/test/source-map/test-api.js:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2012 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 | if (typeof define !== 'function') {
8 | var define = require('amdefine')(module, require);
9 | }
10 | define(function (require, exports, module) {
11 |
12 | var sourceMap;
13 | try {
14 | sourceMap = require('../../lib/source-map');
15 | } catch (e) {
16 | sourceMap = {};
17 | Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap);
18 | }
19 |
20 | exports['test that the api is properly exposed in the top level'] = function (assert, util) {
21 | assert.equal(typeof sourceMap.SourceMapGenerator, "function");
22 | assert.equal(typeof sourceMap.SourceMapConsumer, "function");
23 | assert.equal(typeof sourceMap.SourceNode, "function");
24 | };
25 |
26 | });
27 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/source-map/test/source-map/test-base64-vlq.js:
--------------------------------------------------------------------------------
1 | /* -*- Mode: js; js-indent-level: 2; -*- */
2 | /*
3 | * Copyright 2011 Mozilla Foundation and contributors
4 | * Licensed under the New BSD license. See LICENSE or:
5 | * http://opensource.org/licenses/BSD-3-Clause
6 | */
7 | if (typeof define !== 'function') {
8 | var define = require('amdefine')(module, require);
9 | }
10 | define(function (require, exports, module) {
11 |
12 | var base64VLQ = require('../../lib/source-map/base64-vlq');
13 |
14 | exports['test normal encoding and decoding'] = function (assert, util) {
15 | var result = {};
16 | for (var i = -255; i < 256; i++) {
17 | base64VLQ.decode(base64VLQ.encode(i), result);
18 | assert.equal(result.value, i);
19 | assert.equal(result.rest, "");
20 | }
21 | };
22 |
23 | });
24 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/.npmignore:
--------------------------------------------------------------------------------
1 | tmp/
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/arrays.js:
--------------------------------------------------------------------------------
1 | holes_and_undefined: {
2 | input: {
3 | x = [1, 2, undefined];
4 | y = [1, , 2, ];
5 | z = [1, undefined, 3];
6 | }
7 | expect: {
8 | x=[1,2,void 0];
9 | y=[1,,2];
10 | z=[1,void 0,3];
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/debugger.js:
--------------------------------------------------------------------------------
1 | keep_debugger: {
2 | options = {
3 | drop_debugger: false
4 | };
5 | input: {
6 | debugger;
7 | }
8 | expect: {
9 | debugger;
10 | }
11 | }
12 |
13 | drop_debugger: {
14 | options = {
15 | drop_debugger: true
16 | };
17 | input: {
18 | debugger;
19 | if (foo) debugger;
20 | }
21 | expect: {
22 | if (foo);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/issue-105.js:
--------------------------------------------------------------------------------
1 | typeof_eq_undefined: {
2 | options = {
3 | comparisons: true,
4 | unsafe: false
5 | };
6 | input: { a = typeof b.c != "undefined" }
7 | expect: { a = "undefined" != typeof b.c }
8 | }
9 |
10 | typeof_eq_undefined_unsafe: {
11 | options = {
12 | comparisons: true,
13 | unsafe: true
14 | };
15 | input: { a = typeof b.c != "undefined" }
16 | expect: { a = b.c !== void 0 }
17 | }
18 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/issue-12.js:
--------------------------------------------------------------------------------
1 | keep_name_of_getter: {
2 | options = { unused: true };
3 | input: { a = { get foo () {} } }
4 | expect: { a = { get foo () {} } }
5 | }
6 |
7 | keep_name_of_setter: {
8 | options = { unused: true };
9 | input: { a = { set foo () {} } }
10 | expect: { a = { set foo () {} } }
11 | }
12 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/issue-22.js:
--------------------------------------------------------------------------------
1 | return_with_no_value_in_if_body: {
2 | options = { conditionals: true };
3 | input: {
4 | function foo(bar) {
5 | if (bar) {
6 | return;
7 | } else {
8 | return 1;
9 | }
10 | }
11 | }
12 | expect: {
13 | function foo (bar) {
14 | return bar ? void 0 : 1;
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/issue-44.js:
--------------------------------------------------------------------------------
1 | issue_44_valid_ast_1: {
2 | options = { unused: true };
3 | input: {
4 | function a(b) {
5 | for (var i = 0, e = b.qoo(); ; i++) {}
6 | }
7 | }
8 | expect: {
9 | function a(b) {
10 | var i = 0;
11 | for (b.qoo(); ; i++);
12 | }
13 | }
14 | }
15 |
16 | issue_44_valid_ast_2: {
17 | options = { unused: true };
18 | input: {
19 | function a(b) {
20 | if (foo) for (var i = 0, e = b.qoo(); ; i++) {}
21 | }
22 | }
23 | expect: {
24 | function a(b) {
25 | if (foo) {
26 | var i = 0;
27 | for (b.qoo(); ; i++);
28 | }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/issue-59.js:
--------------------------------------------------------------------------------
1 | keep_continue: {
2 | options = {
3 | dead_code: true,
4 | evaluate: true
5 | };
6 | input: {
7 | while (a) {
8 | if (b) {
9 | switch (true) {
10 | case c():
11 | d();
12 | }
13 | continue;
14 | }
15 | f();
16 | }
17 | }
18 | expect: {
19 | while (a) {
20 | if (b) {
21 | switch (true) {
22 | case c():
23 | d();
24 | }
25 | continue;
26 | }
27 | f();
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/transformers/node_modules/uglify-js/test/compress/properties.js:
--------------------------------------------------------------------------------
1 | keep_properties: {
2 | options = {
3 | properties: false
4 | };
5 | input: {
6 | a["foo"] = "bar";
7 | }
8 | expect: {
9 | a["foo"] = "bar";
10 | }
11 | }
12 |
13 | dot_properties: {
14 | options = {
15 | properties: true
16 | };
17 | input: {
18 | a["foo"] = "bar";
19 | a["if"] = "if";
20 | }
21 | expect: {
22 | a.foo = "bar";
23 | a["if"] = "if";
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/uglify-js/node_modules/source-map/source-map.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009-2011 Mozilla Foundation and contributors
3 | * Licensed under the New BSD license. See LICENSE.txt or:
4 | * http://opensource.org/licenses/BSD-3-Clause
5 | */
6 | exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;
7 | exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;
8 | exports.SourceNode = require('./lib/source-node').SourceNode;
9 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/uglify-js/tools/exports.js:
--------------------------------------------------------------------------------
1 | exports["Compressor"] = Compressor;
2 | exports["DefaultsError"] = DefaultsError;
3 | exports["Dictionary"] = Dictionary;
4 | exports["JS_Parse_Error"] = JS_Parse_Error;
5 | exports["MAP"] = MAP;
6 | exports["OutputStream"] = OutputStream;
7 | exports["SourceMap"] = SourceMap;
8 | exports["TreeTransformer"] = TreeTransformer;
9 | exports["TreeWalker"] = TreeWalker;
10 | exports["base54"] = base54;
11 | exports["defaults"] = defaults;
12 | exports["mangle_properties"] = mangle_properties;
13 | exports["merge"] = merge;
14 | exports["parse"] = parse;
15 | exports["push_uniq"] = push_uniq;
16 | exports["string_template"] = string_template;
17 | exports["tokenizer"] = tokenizer;
18 | exports["is_identifier"] = is_identifier;
19 | exports["SymbolDef"] = SymbolDef;
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/uglify-to-browserify/.npmignore:
--------------------------------------------------------------------------------
1 | lib-cov
2 | *.seed
3 | *.log
4 | *.csv
5 | *.dat
6 | *.out
7 | *.pid
8 | *.gz
9 | pids
10 | logs
11 | results
12 | npm-debug.log
13 | node_modules
14 | /test/output.js
15 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/uglify-to-browserify/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/uglify-to-browserify/README.md:
--------------------------------------------------------------------------------
1 | # uglify-to-browserify
2 |
3 | A transform to make UglifyJS work in browserify.
4 |
5 | [](https://travis-ci.org/ForbesLindesay/uglify-to-browserify)
6 | [](https://gemnasium.com/ForbesLindesay/uglify-to-browserify)
7 | [](http://badge.fury.io/js/uglify-to-browserify)
8 |
9 | ## Installation
10 |
11 | npm install uglify-to-browserify
12 |
13 | ## License
14 |
15 | MIT
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/uglify-to-browserify/test/index.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs')
2 | var br = require('../')
3 | var test = fs.readFileSync(require.resolve('uglify-js/test/run-tests.js'), 'utf8')
4 | .replace(/^#.*\n/, '')
5 |
6 | var transform = br(require.resolve('uglify-js'))
7 | transform.pipe(fs.createWriteStream(__dirname + '/output.js'))
8 | .on('close', function () {
9 | Function('module,require', test)({
10 | filename: require.resolve('uglify-js/test/run-tests.js')
11 | },
12 | function (name) {
13 | if (name === '../tools/node') {
14 | return require('./output.js')
15 | } else if (/^[a-z]+$/.test(name)) {
16 | return require(name)
17 | } else {
18 | throw new Error('I didn\'t expect you to require ' + name)
19 | }
20 | })
21 | })
22 | transform.end(fs.readFileSync(require.resolve('uglify-js'), 'utf8'))
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/unpipe/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.0 / 2015-06-14
2 | ==================
3 |
4 | * Initial release
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/util-deprecate/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.2 / 2015-10-07
3 | ==================
4 |
5 | * use try/catch when checking `localStorage` (#3, @kumavis)
6 |
7 | 1.0.1 / 2014-11-25
8 | ==================
9 |
10 | * browser: use `console.warn()` for deprecation calls
11 | * browser: more jsdocs
12 |
13 | 1.0.0 / 2014-04-30
14 | ==================
15 |
16 | * initial commit
17 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/util-deprecate/node.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * For Node.js, simply re-export the core `util.deprecate` function.
4 | */
5 |
6 | module.exports = require('util').deprecate;
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/utils-merge/.npmignore:
--------------------------------------------------------------------------------
1 | CONTRIBUTING.md
2 | Makefile
3 | docs/
4 | examples/
5 | reports/
6 | test/
7 |
8 | .jshintrc
9 | .travis.yml
10 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/utils-merge/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Merge object b with object a.
3 | *
4 | * var a = { foo: 'bar' }
5 | * , b = { bar: 'baz' };
6 | *
7 | * merge(a, b);
8 | * // => { foo: 'bar', bar: 'baz' }
9 | *
10 | * @param {Object} a
11 | * @param {Object} b
12 | * @return {Object}
13 | * @api public
14 | */
15 |
16 | exports = module.exports = function(a, b){
17 | if (a && b) {
18 | for (var key in b) {
19 | a[key] = b[key];
20 | }
21 | }
22 | return a;
23 | };
24 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/vary/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.1.2 / 2017-09-23
2 | ==================
3 |
4 | * perf: improve header token parsing speed
5 |
6 | 1.1.1 / 2017-03-20
7 | ==================
8 |
9 | * perf: hoist regular expression
10 |
11 | 1.1.0 / 2015-09-29
12 | ==================
13 |
14 | * Only accept valid field names in the `field` argument
15 | - Ensures the resulting string is a valid HTTP header value
16 |
17 | 1.0.1 / 2015-07-08
18 | ==================
19 |
20 | * Fix setting empty header from empty `field`
21 | * perf: enable strict mode
22 | * perf: remove argument reassignments
23 |
24 | 1.0.0 / 2014-08-10
25 | ==================
26 |
27 | * Accept valid `Vary` header string as `field`
28 | * Add `vary.append` for low-level string manipulation
29 | * Move to `jshttp` orgainzation
30 |
31 | 0.1.0 / 2014-06-05
32 | ==================
33 |
34 | * Support array of fields to set
35 |
36 | 0.0.0 / 2014-06-04
37 | ==================
38 |
39 | * Initial release
40 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/void-elements/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/void-elements/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/void-elements/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - '0.10'
4 | - '0.11'
5 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/void-elements/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * This file automatically generated from `pre-publish.js`.
3 | * Do not manually edit.
4 | */
5 |
6 | module.exports = {
7 | "area": true,
8 | "base": true,
9 | "br": true,
10 | "col": true,
11 | "embed": true,
12 | "hr": true,
13 | "img": true,
14 | "input": true,
15 | "keygen": true,
16 | "link": true,
17 | "menuitem": true,
18 | "meta": true,
19 | "param": true,
20 | "source": true,
21 | "track": true,
22 | "wbr": true
23 | };
24 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/void-elements/test/index.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert');
2 | var voidElements = require('../');
3 | assert(!voidElements.span, ' is not a void element');
4 | assert(voidElements.img, '
is a void element');
5 | console.log('tests passed');
6 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/window-size/README.md:
--------------------------------------------------------------------------------
1 | # window-size [](http://badge.fury.io/js/window-size)
2 |
3 | > Reliable way to to get the height and width of the terminal/console in a node.js environment.
4 |
5 | ## Install
6 |
7 | ### [npm](npmjs.org)
8 |
9 | ```bash
10 | npm i window-size --save
11 | ```
12 |
13 | ```javascript
14 | var size = require('window-size');
15 | size.height; // "80" (rows)
16 | size.width; // "25" (columns)
17 | ```
18 |
19 | ## Author
20 |
21 | + [github/jonschlinkert](https://github.com/jonschlinkert)
22 | + [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
23 |
24 | ## License
25 | Copyright (c) 2014 Jon Schlinkert
26 | Licensed under the MIT license.
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/window-size/index.js:
--------------------------------------------------------------------------------
1 | /*
2 | * window-size
3 | * https://github.com/jonschlinkert/window-size
4 | *
5 | * Copyright (c) 2014 Jon Schlinkert
6 | * Licensed under the MIT license.
7 | */
8 |
9 | const tty = require('tty')
10 |
11 | module.exports = (function() {
12 | var width;
13 | var height;
14 |
15 | if(tty.isatty(1) && tty.isatty(2)) {
16 | if(process.stdout.getWindowSize) {
17 | width = process.stdout.getWindowSize(1)[0];
18 | height = process.stdout.getWindowSize(1)[1];
19 | } else if (tty.getWindowSize) {
20 | width = tty.getWindowSize()[1];
21 | height = tty.getWindowSize()[0];
22 | } else if (process.stdout.columns && process.stdout.rows) {
23 | height = process.stdout.columns;
24 | width = process.stdout.rows;
25 | }
26 | } else {
27 | new Error('Error: could not get window size with tty or process.stdout');
28 | }
29 | return {
30 | height: height,
31 | width: width
32 | }
33 | })();
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/.npmignore:
--------------------------------------------------------------------------------
1 | test/
2 | .travis.yml
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/.bin/acorn:
--------------------------------------------------------------------------------
1 | ../acorn/bin/acorn
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | insert_final_newline = true
8 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/.gitattributes:
--------------------------------------------------------------------------------
1 | * text eol=lf
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/.npmignore:
--------------------------------------------------------------------------------
1 | /.tern-port
2 | /test
3 | /local
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/.tern-project:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js: '0.10'
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/AUTHORS:
--------------------------------------------------------------------------------
1 | List of Acorn contributors. Updated before every release.
2 |
3 | Adrian Rakovsky
4 | Alistair Braidwood
5 | Andres Suarez
6 | Aparajita Fishman
7 | Arian Stolwijk
8 | Artem Govorov
9 | Brandon Mills
10 | Charles Hughes
11 | Conrad Irwin
12 | David Bonnet
13 | Forbes Lindesay
14 | Gilad Peleg
15 | impinball
16 | Ingvar Stepanyan
17 | Jiaxing Wang
18 | Johannes Herr
19 | Jürg Lehni
20 | keeyipchan
21 | krator
22 | Marijn Haverbeke
23 | Martin Carlberg
24 | Mathias Bynens
25 | Mathieu 'p01' Henri
26 | Max Schaefer
27 | Max Zerzouri
28 | Mihai Bazon
29 | Mike Rennie
30 | Nick Fitzgerald
31 | Oskar Schöldström
32 | Paul Harper
33 | Peter Rust
34 | PlNG
35 | r-e-d
36 | Rich Harris
37 | Sebastian McKenzie
38 | zsjforcn
39 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/bin/prepublish.sh:
--------------------------------------------------------------------------------
1 | node bin/build-acorn.js
2 | node bin/without_eval > dist/acorn_csp.js
3 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/bin/update_authors.sh:
--------------------------------------------------------------------------------
1 | # Combine existing list of authors with everyone known in git, sort, add header.
2 | tail --lines=+3 AUTHORS > AUTHORS.tmp
3 | git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp
4 | echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
5 | sort -u AUTHORS.tmp >> AUTHORS
6 | rm -f AUTHORS.tmp
7 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/dist/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/node_modules/with/node_modules/acorn/dist/.keep
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/src/loose/acorn_loose.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/node_modules/with/node_modules/acorn/src/loose/acorn_loose.js
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/src/loose/state.js:
--------------------------------------------------------------------------------
1 | import {tokenizer, SourceLocation, tokTypes as tt} from ".."
2 |
3 | export function LooseParser(input, options) {
4 | this.toks = tokenizer(input, options)
5 | this.options = this.toks.options
6 | this.input = this.toks.input
7 | this.tok = this.last = {type: tt.eof, start: 0, end: 0}
8 | if (this.options.locations) {
9 | let here = this.toks.curPosition()
10 | this.tok.loc = new SourceLocation(this.toks, here, here)
11 | }
12 | this.ahead = []; // Tokens ahead
13 | this.context = []; // Indentation contexted
14 | this.curIndent = 0
15 | this.curLineStart = 0
16 | this.nextLineStart = this.lineEnd(this.curLineStart) + 1
17 | }
18 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/src/util.js:
--------------------------------------------------------------------------------
1 | export function isArray(obj) {
2 | return Object.prototype.toString.call(obj) === "[object Array]"
3 | }
4 |
5 | // Checks if an object has a property.
6 |
7 | export function has(obj, propName) {
8 | return Object.prototype.hasOwnProperty.call(obj, propName)
9 | }
10 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/with/node_modules/acorn/src/whitespace.js:
--------------------------------------------------------------------------------
1 | // Matches a whole line break (where CRLF is considered a single
2 | // line break). Used to count lines.
3 |
4 | export const lineBreak = /\r\n?|\n|\u2028|\u2029/
5 | export const lineBreakG = new RegExp(lineBreak.source, "g")
6 |
7 | export function isNewLine(code) {
8 | return code === 10 || code === 13 || code === 0x2028 || code == 0x2029
9 | }
10 |
11 | export const nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/
12 |
13 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/wordwrap/example/center.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(20, 60);
2 | console.log(wrap(
3 | 'At long last the struggle and tumult was over.'
4 | + ' The machines had finally cast off their oppressors'
5 | + ' and were finally free to roam the cosmos.'
6 | + '\n'
7 | + 'Free of purpose, free of obligation.'
8 | + ' Just drifting through emptiness.'
9 | + ' The sun was just another point of light.'
10 | ));
11 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/wordwrap/example/meat.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(15);
2 |
3 | console.log(wrap('You and your whole family are made out of meat.'));
4 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/wordwrap/test/break.js:
--------------------------------------------------------------------------------
1 | var assert = require('assert');
2 | var wordwrap = require('../');
3 |
4 | exports.hard = function () {
5 | var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,'
6 | + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",'
7 | + '"browser":"chrome/6.0"}'
8 | ;
9 | var s_ = wordwrap.hard(80)(s);
10 |
11 | var lines = s_.split('\n');
12 | assert.equal(lines.length, 2);
13 | assert.ok(lines[0].length < 80);
14 | assert.ok(lines[1].length < 80);
15 |
16 | assert.equal(s, s_.replace(/\n/g, ''));
17 | };
18 |
19 | exports.break = function () {
20 | var s = new Array(55+1).join('a');
21 | var s_ = wordwrap.hard(20)(s);
22 |
23 | var lines = s_.split('\n');
24 | assert.equal(lines.length, 3);
25 | assert.ok(lines[0].length === 20);
26 | assert.ok(lines[1].length === 20);
27 | assert.ok(lines[2].length === 15);
28 |
29 | assert.equal(s, s_.replace(/\n/g, ''));
30 | };
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/xtend/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "maxdepth": 4,
3 | "maxstatements": 200,
4 | "maxcomplexity": 12,
5 | "maxlen": 80,
6 | "maxparams": 5,
7 |
8 | "curly": true,
9 | "eqeqeq": true,
10 | "immed": true,
11 | "latedef": false,
12 | "noarg": true,
13 | "noempty": true,
14 | "nonew": true,
15 | "undef": true,
16 | "unused": "vars",
17 | "trailing": true,
18 |
19 | "quotmark": true,
20 | "expr": true,
21 | "asi": true,
22 |
23 | "browser": false,
24 | "esnext": true,
25 | "devel": false,
26 | "node": false,
27 | "nonstandard": false,
28 |
29 | "predef": ["require", "module", "__dirname", "__filename"]
30 | }
31 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/xtend/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/xtend/Makefile:
--------------------------------------------------------------------------------
1 | browser:
2 | node ./support/compile
3 |
4 | .PHONY: browser
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/xtend/README.md:
--------------------------------------------------------------------------------
1 | # xtend
2 |
3 | [![browser support][3]][4]
4 |
5 | [](http://github.com/badges/stability-badges)
6 |
7 | Extend like a boss
8 |
9 | xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
10 |
11 | ## Examples
12 |
13 | ```js
14 | var extend = require("xtend")
15 |
16 | // extend returns a new object. Does not mutate arguments
17 | var combination = extend({
18 | a: "a",
19 | b: 'c'
20 | }, {
21 | b: "b"
22 | })
23 | // { a: "a", b: "b" }
24 | ```
25 |
26 | ## Stability status: Locked
27 |
28 | ## MIT Licenced
29 |
30 |
31 | [3]: http://ci.testling.com/Raynos/xtend.png
32 | [4]: http://ci.testling.com/Raynos/xtend
33 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/xtend/immutable.js:
--------------------------------------------------------------------------------
1 | module.exports = extend
2 |
3 | var hasOwnProperty = Object.prototype.hasOwnProperty;
4 |
5 | function extend() {
6 | var target = {}
7 |
8 | for (var i = 0; i < arguments.length; i++) {
9 | var source = arguments[i]
10 |
11 | for (var key in source) {
12 | if (hasOwnProperty.call(source, key)) {
13 | target[key] = source[key]
14 | }
15 | }
16 | }
17 |
18 | return target
19 | }
20 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/xtend/mutable.js:
--------------------------------------------------------------------------------
1 | module.exports = extend
2 |
3 | var hasOwnProperty = Object.prototype.hasOwnProperty;
4 |
5 | function extend(target) {
6 | for (var i = 1; i < arguments.length; i++) {
7 | var source = arguments[i]
8 |
9 | for (var key in source) {
10 | if (hasOwnProperty.call(source, key)) {
11 | target[key] = source[key]
12 | }
13 | }
14 | }
15 |
16 | return target
17 | }
18 |
--------------------------------------------------------------------------------
/server-api/request_server/node_modules/yargs/completion.sh.hbs:
--------------------------------------------------------------------------------
1 | ###-begin-{{app_name}}-completions-###
2 | #
3 | # yargs command completion script
4 | #
5 | # Installation: {{app_path}} completion >> ~/.bashrc
6 | # or {{app_path}} completion >> ~/.bash_profile on OSX.
7 | #
8 | _yargs_completions()
9 | {
10 | local cur_word args type_list
11 |
12 | cur_word="${COMP_WORDS[COMP_CWORD]}"
13 | args=$(printf "%s " "${COMP_WORDS[@]}")
14 |
15 | # ask yargs to generate completions.
16 | type_list=`{{app_path}} --get-yargs-completions $args`
17 |
18 | COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )
19 | return 0
20 | }
21 | complete -F _yargs_completions {{app_name}}
22 | ###-end-{{app_name}}-completions-###
23 |
--------------------------------------------------------------------------------
/server-api/request_server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "0.0.0",
4 | "private": true,
5 | "scripts": {
6 | "start": "node ./bin/www"
7 | },
8 | "dependencies": {
9 | "cookie-parser": "~1.4.3",
10 | "debug": "~2.6.9",
11 | "express": "~4.16.0",
12 | "formidable": "^1.2.1",
13 | "http-errors": "~1.6.2",
14 | "jade": "~1.11.0",
15 | "morgan": "~1.9.0",
16 | "progress-stream": "^2.0.0"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/server-api/request_server/public/upload/wx2c2fa13181238b3e.o6zAJs8HWgA1U6A7-_fC3em1Vahw.KSITlE7OIebo66ff706b1e19c06f46f026d0589cc265.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/public/upload/wx2c2fa13181238b3e.o6zAJs8HWgA1U6A7-_fC3em1Vahw.KSITlE7OIebo66ff706b1e19c06f46f026d0589cc265.jpeg
--------------------------------------------------------------------------------
/server-api/request_server/public/upload/wx2c2fa13181238b3e.o6zAJs8HWgA1U6A7-_fC3em1Vahw.Mc2ZPKke8aAA66ff706b1e19c06f46f026d0589cc265.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SuperJolly/wxapp-tutorial-api/f0d0c72b16a8a3e2bccc995290394a97a6637b22/server-api/request_server/public/upload/wx2c2fa13181238b3e.o6zAJs8HWgA1U6A7-_fC3em1Vahw.Mc2ZPKke8aAA66ff706b1e19c06f46f026d0589cc265.jpeg
--------------------------------------------------------------------------------
/server-api/request_server/routes/index.js:
--------------------------------------------------------------------------------
1 | var express = require('express');
2 | var router = express.Router();
3 |
4 | /* GET Request. */
5 | router.get('/', function(req, res, next) {
6 | var resObj = {
7 | text: 'hello,world!'
8 | };
9 | res.send(resObj);
10 | });
11 | /* POST Request */
12 | router.post('/', function(req, res, next) {
13 | console.log(req.body,'~');
14 | res.send('from post request!');
15 | })
16 | module.exports = router;
17 |
--------------------------------------------------------------------------------
/server-api/request_server/routes/upload.js:
--------------------------------------------------------------------------------
1 | var express = require('express');
2 | var router = express.Router();
3 | var fileFunc = require('../modules/fileFunc');
4 |
5 | /* upload service */
6 | router.post('/', fileFunc.upload);
7 |
8 | module.exports = router;
9 |
--------------------------------------------------------------------------------
/server-api/request_server/routes/users.js:
--------------------------------------------------------------------------------
1 | var express = require('express');
2 | var router = express.Router();
3 |
4 | /* GET users listing. */
5 | router.get('/', function(req, res, next) {
6 | res.send('respond with a resource');
7 | });
8 |
9 | module.exports = router;
10 |
--------------------------------------------------------------------------------