├── .DS_Store
├── Nov 12 - Intro to node
├── globalsdemo.js
├── home.mjs
├── index.js
├── sampleesmoduling
│ ├── index.js
│ ├── package.json
│ └── searchingalgo.js
├── searching.js
└── test.json
├── Nov 13 - Intro to node 2
├── fsdemo.mjs
├── index.html
├── processdemo.js
├── run
├── sampleesmoduling
│ ├── index.js
│ ├── package.json
│ └── searchingalgo.js
├── script.js
├── test.cpp
├── testing.cpp
└── userinput.js
├── Nov 24 - OOPS 1
├── classesintro.js
├── functionsdemos.js
├── test.js
└── thisdemo.js
├── Nov 27 - OOPS 3
├── arraysdemo.js
├── binddemo.js
├── demo.js
├── demo1.js
├── inheritance.js
├── inheritance1.js
├── objectsdemo.js
├── objextfunctiondemo.js
└── tempCodeRunnerFile.js
├── Nov_17
├── first_node_project
│ ├── index.js
│ ├── node_modules
│ │ ├── .package-lock.json
│ │ ├── asynckit
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── bench.js
│ │ │ ├── index.js
│ │ │ ├── lib
│ │ │ │ ├── abort.js
│ │ │ │ ├── async.js
│ │ │ │ ├── defer.js
│ │ │ │ ├── iterate.js
│ │ │ │ ├── readable_asynckit.js
│ │ │ │ ├── readable_parallel.js
│ │ │ │ ├── readable_serial.js
│ │ │ │ ├── readable_serial_ordered.js
│ │ │ │ ├── state.js
│ │ │ │ ├── streamify.js
│ │ │ │ └── terminator.js
│ │ │ ├── package.json
│ │ │ ├── parallel.js
│ │ │ ├── serial.js
│ │ │ ├── serialOrdered.js
│ │ │ └── stream.js
│ │ ├── axios
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── SECURITY.md
│ │ │ ├── UPGRADE_GUIDE.md
│ │ │ ├── bin
│ │ │ │ └── ssl_hotfix.js
│ │ │ ├── dist
│ │ │ │ ├── axios.js
│ │ │ │ ├── axios.js.map
│ │ │ │ ├── axios.min.js
│ │ │ │ ├── axios.min.js.map
│ │ │ │ ├── esm
│ │ │ │ │ ├── axios.js
│ │ │ │ │ ├── axios.js.map
│ │ │ │ │ ├── axios.min.js
│ │ │ │ │ └── axios.min.js.map
│ │ │ │ └── node
│ │ │ │ │ ├── axios.cjs
│ │ │ │ │ └── axios.cjs.map
│ │ │ ├── gulpfile.js
│ │ │ ├── index.d.ts
│ │ │ ├── index.js
│ │ │ ├── karma.conf.cjs
│ │ │ ├── lib
│ │ │ │ ├── adapters
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── http.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── xhr.js
│ │ │ │ ├── axios.js
│ │ │ │ ├── cancel
│ │ │ │ │ ├── CancelToken.js
│ │ │ │ │ ├── CanceledError.js
│ │ │ │ │ └── isCancel.js
│ │ │ │ ├── core
│ │ │ │ │ ├── Axios.js
│ │ │ │ │ ├── AxiosError.js
│ │ │ │ │ ├── AxiosHeaders.js
│ │ │ │ │ ├── InterceptorManager.js
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── buildFullPath.js
│ │ │ │ │ ├── dispatchRequest.js
│ │ │ │ │ ├── mergeConfig.js
│ │ │ │ │ ├── settle.js
│ │ │ │ │ └── transformData.js
│ │ │ │ ├── defaults
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── transitional.js
│ │ │ │ ├── env
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── classes
│ │ │ │ │ │ └── FormData.js
│ │ │ │ │ └── data.js
│ │ │ │ ├── helpers
│ │ │ │ │ ├── AxiosTransformStream.js
│ │ │ │ │ ├── AxiosURLSearchParams.js
│ │ │ │ │ ├── README.md
│ │ │ │ │ ├── bind.js
│ │ │ │ │ ├── buildURL.js
│ │ │ │ │ ├── combineURLs.js
│ │ │ │ │ ├── cookies.js
│ │ │ │ │ ├── deprecatedMethod.js
│ │ │ │ │ ├── formDataToJSON.js
│ │ │ │ │ ├── fromDataURI.js
│ │ │ │ │ ├── isAbsoluteURL.js
│ │ │ │ │ ├── isAxiosError.js
│ │ │ │ │ ├── isURLSameOrigin.js
│ │ │ │ │ ├── null.js
│ │ │ │ │ ├── parseHeaders.js
│ │ │ │ │ ├── parseProtocol.js
│ │ │ │ │ ├── speedometer.js
│ │ │ │ │ ├── spread.js
│ │ │ │ │ ├── throttle.js
│ │ │ │ │ ├── toFormData.js
│ │ │ │ │ ├── toURLEncodedForm.js
│ │ │ │ │ └── validator.js
│ │ │ │ ├── platform
│ │ │ │ │ ├── browser
│ │ │ │ │ │ ├── classes
│ │ │ │ │ │ │ ├── FormData.js
│ │ │ │ │ │ │ └── URLSearchParams.js
│ │ │ │ │ │ └── index.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── node
│ │ │ │ │ │ ├── classes
│ │ │ │ │ │ ├── FormData.js
│ │ │ │ │ │ └── URLSearchParams.js
│ │ │ │ │ │ └── index.js
│ │ │ │ └── utils.js
│ │ │ ├── package.json
│ │ │ ├── rollup.config.js
│ │ │ ├── tsconfig.json
│ │ │ └── tslint.json
│ │ ├── combined-stream
│ │ │ ├── License
│ │ │ ├── Readme.md
│ │ │ ├── lib
│ │ │ │ └── combined_stream.js
│ │ │ ├── package.json
│ │ │ └── yarn.lock
│ │ ├── delayed-stream
│ │ │ ├── .npmignore
│ │ │ ├── License
│ │ │ ├── Makefile
│ │ │ ├── Readme.md
│ │ │ ├── lib
│ │ │ │ └── delayed_stream.js
│ │ │ └── package.json
│ │ ├── follow-redirects
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── debug.js
│ │ │ ├── http.js
│ │ │ ├── https.js
│ │ │ ├── index.js
│ │ │ └── package.json
│ │ ├── form-data
│ │ │ ├── License
│ │ │ ├── README.md.bak
│ │ │ ├── Readme.md
│ │ │ ├── index.d.ts
│ │ │ ├── lib
│ │ │ │ ├── browser.js
│ │ │ │ ├── form_data.js
│ │ │ │ └── populate.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
│ │ └── proxy-from-env
│ │ │ ├── .eslintrc
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── index.js
│ │ │ ├── package.json
│ │ │ └── test.js
│ ├── package-lock.json
│ └── package.json
├── input.txt
└── streamsdemo.js
├── Nov_19-Project_0
├── index.js
├── node_modules
│ ├── .bin
│ │ └── telegraf
│ ├── .package-lock.json
│ ├── abort-controller
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── browser.js
│ │ ├── browser.mjs
│ │ ├── dist
│ │ │ ├── abort-controller.d.ts
│ │ │ ├── abort-controller.js
│ │ │ ├── abort-controller.js.map
│ │ │ ├── abort-controller.mjs
│ │ │ ├── abort-controller.mjs.map
│ │ │ ├── abort-controller.umd.js
│ │ │ └── abort-controller.umd.js.map
│ │ ├── package.json
│ │ ├── polyfill.js
│ │ └── polyfill.mjs
│ ├── asynckit
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bench.js
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── abort.js
│ │ │ ├── async.js
│ │ │ ├── defer.js
│ │ │ ├── iterate.js
│ │ │ ├── readable_asynckit.js
│ │ │ ├── readable_parallel.js
│ │ │ ├── readable_serial.js
│ │ │ ├── readable_serial_ordered.js
│ │ │ ├── state.js
│ │ │ ├── streamify.js
│ │ │ └── terminator.js
│ │ ├── package.json
│ │ ├── parallel.js
│ │ ├── serial.js
│ │ ├── serialOrdered.js
│ │ └── stream.js
│ ├── axios
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── SECURITY.md
│ │ ├── UPGRADE_GUIDE.md
│ │ ├── bin
│ │ │ └── ssl_hotfix.js
│ │ ├── dist
│ │ │ ├── axios.js
│ │ │ ├── axios.js.map
│ │ │ ├── axios.min.js
│ │ │ ├── axios.min.js.map
│ │ │ ├── esm
│ │ │ │ ├── axios.js
│ │ │ │ ├── axios.js.map
│ │ │ │ ├── axios.min.js
│ │ │ │ └── axios.min.js.map
│ │ │ └── node
│ │ │ │ ├── axios.cjs
│ │ │ │ └── axios.cjs.map
│ │ ├── gulpfile.js
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── karma.conf.cjs
│ │ ├── lib
│ │ │ ├── adapters
│ │ │ │ ├── README.md
│ │ │ │ ├── http.js
│ │ │ │ ├── index.js
│ │ │ │ └── xhr.js
│ │ │ ├── axios.js
│ │ │ ├── cancel
│ │ │ │ ├── CancelToken.js
│ │ │ │ ├── CanceledError.js
│ │ │ │ └── isCancel.js
│ │ │ ├── core
│ │ │ │ ├── Axios.js
│ │ │ │ ├── AxiosError.js
│ │ │ │ ├── AxiosHeaders.js
│ │ │ │ ├── InterceptorManager.js
│ │ │ │ ├── README.md
│ │ │ │ ├── buildFullPath.js
│ │ │ │ ├── dispatchRequest.js
│ │ │ │ ├── mergeConfig.js
│ │ │ │ ├── settle.js
│ │ │ │ └── transformData.js
│ │ │ ├── defaults
│ │ │ │ ├── index.js
│ │ │ │ └── transitional.js
│ │ │ ├── env
│ │ │ │ ├── README.md
│ │ │ │ ├── classes
│ │ │ │ │ └── FormData.js
│ │ │ │ └── data.js
│ │ │ ├── helpers
│ │ │ │ ├── AxiosTransformStream.js
│ │ │ │ ├── AxiosURLSearchParams.js
│ │ │ │ ├── README.md
│ │ │ │ ├── bind.js
│ │ │ │ ├── buildURL.js
│ │ │ │ ├── combineURLs.js
│ │ │ │ ├── cookies.js
│ │ │ │ ├── deprecatedMethod.js
│ │ │ │ ├── formDataToJSON.js
│ │ │ │ ├── fromDataURI.js
│ │ │ │ ├── isAbsoluteURL.js
│ │ │ │ ├── isAxiosError.js
│ │ │ │ ├── isURLSameOrigin.js
│ │ │ │ ├── null.js
│ │ │ │ ├── parseHeaders.js
│ │ │ │ ├── parseProtocol.js
│ │ │ │ ├── speedometer.js
│ │ │ │ ├── spread.js
│ │ │ │ ├── throttle.js
│ │ │ │ ├── toFormData.js
│ │ │ │ ├── toURLEncodedForm.js
│ │ │ │ └── validator.js
│ │ │ ├── platform
│ │ │ │ ├── browser
│ │ │ │ │ ├── classes
│ │ │ │ │ │ ├── FormData.js
│ │ │ │ │ │ └── URLSearchParams.js
│ │ │ │ │ └── index.js
│ │ │ │ ├── index.js
│ │ │ │ └── node
│ │ │ │ │ ├── classes
│ │ │ │ │ ├── FormData.js
│ │ │ │ │ └── URLSearchParams.js
│ │ │ │ │ └── index.js
│ │ │ └── utils.js
│ │ ├── package.json
│ │ ├── rollup.config.js
│ │ ├── tsconfig.json
│ │ └── tslint.json
│ ├── buffer-alloc-unsafe
│ │ ├── index.js
│ │ ├── package.json
│ │ └── readme.md
│ ├── buffer-alloc
│ │ ├── index.js
│ │ ├── package.json
│ │ └── readme.md
│ ├── buffer-fill
│ │ ├── index.js
│ │ ├── package.json
│ │ └── readme.md
│ ├── combined-stream
│ │ ├── License
│ │ ├── Readme.md
│ │ ├── lib
│ │ │ └── combined_stream.js
│ │ ├── package.json
│ │ └── yarn.lock
│ ├── debug
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── package.json
│ │ └── src
│ │ │ ├── browser.js
│ │ │ ├── common.js
│ │ │ ├── index.js
│ │ │ └── node.js
│ ├── delayed-stream
│ │ ├── .npmignore
│ │ ├── License
│ │ ├── Makefile
│ │ ├── Readme.md
│ │ ├── lib
│ │ │ └── delayed_stream.js
│ │ └── package.json
│ ├── event-target-shim
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── dist
│ │ │ ├── event-target-shim.js
│ │ │ ├── event-target-shim.js.map
│ │ │ ├── event-target-shim.mjs
│ │ │ ├── event-target-shim.mjs.map
│ │ │ ├── event-target-shim.umd.js
│ │ │ └── event-target-shim.umd.js.map
│ │ ├── index.d.ts
│ │ └── package.json
│ ├── follow-redirects
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── debug.js
│ │ ├── http.js
│ │ ├── https.js
│ │ ├── index.js
│ │ └── package.json
│ ├── form-data
│ │ ├── License
│ │ ├── README.md.bak
│ │ ├── Readme.md
│ │ ├── index.d.ts
│ │ ├── lib
│ │ │ ├── browser.js
│ │ │ ├── form_data.js
│ │ │ └── populate.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
│ ├── mri
│ │ ├── index.d.ts
│ │ ├── lib
│ │ │ ├── index.js
│ │ │ └── index.mjs
│ │ ├── license.md
│ │ ├── package.json
│ │ └── readme.md
│ ├── ms
│ │ ├── index.js
│ │ ├── license.md
│ │ ├── package.json
│ │ └── readme.md
│ ├── node-fetch
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── browser.js
│ │ ├── lib
│ │ │ ├── index.es.js
│ │ │ ├── index.js
│ │ │ └── index.mjs
│ │ └── package.json
│ ├── p-timeout
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── license
│ │ ├── package.json
│ │ └── readme.md
│ ├── proxy-from-env
│ │ ├── .eslintrc
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test.js
│ ├── safe-compare
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── appveyor.yml
│ │ ├── index.js
│ │ └── package.json
│ ├── sandwich-stream
│ │ ├── .editorconfig
│ │ ├── LICENCE
│ │ ├── README.md
│ │ ├── dist
│ │ │ ├── sandwich-stream.d.ts
│ │ │ ├── sandwich-stream.d.ts.map
│ │ │ ├── sandwich-stream.js
│ │ │ └── sandwich-stream.mjs
│ │ ├── package.json
│ │ └── rollup.config.js
│ ├── telegraf
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── format.d.ts
│ │ ├── format.js
│ │ ├── future.d.ts
│ │ ├── future.js
│ │ ├── lib
│ │ │ ├── button.js
│ │ │ ├── cli.mjs
│ │ │ ├── composer.js
│ │ │ ├── context.js
│ │ │ ├── core
│ │ │ │ ├── helpers
│ │ │ │ │ ├── check.js
│ │ │ │ │ ├── compact.js
│ │ │ │ │ └── formatting.js
│ │ │ │ ├── network
│ │ │ │ │ ├── client.js
│ │ │ │ │ ├── error.js
│ │ │ │ │ ├── multipart-stream.js
│ │ │ │ │ ├── polling.js
│ │ │ │ │ └── webhook.js
│ │ │ │ └── types
│ │ │ │ │ └── typegram.js
│ │ │ ├── deunionize.js
│ │ │ ├── filters.js
│ │ │ ├── format.js
│ │ │ ├── future.js
│ │ │ ├── index.js
│ │ │ ├── input.js
│ │ │ ├── markup.js
│ │ │ ├── middleware.js
│ │ │ ├── router.js
│ │ │ ├── scenes
│ │ │ │ ├── base.js
│ │ │ │ ├── context.js
│ │ │ │ ├── index.js
│ │ │ │ ├── stage.js
│ │ │ │ └── wizard
│ │ │ │ │ ├── context.js
│ │ │ │ │ └── index.js
│ │ │ ├── session.js
│ │ │ ├── telegraf.js
│ │ │ ├── telegram-types.js
│ │ │ ├── telegram.js
│ │ │ └── util.js
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── button.ts
│ │ │ ├── composer.ts
│ │ │ ├── context.ts
│ │ │ ├── core
│ │ │ │ ├── helpers
│ │ │ │ │ ├── check.ts
│ │ │ │ │ ├── compact.ts
│ │ │ │ │ └── formatting.ts
│ │ │ │ ├── network
│ │ │ │ │ ├── client.ts
│ │ │ │ │ ├── error.ts
│ │ │ │ │ ├── multipart-stream.ts
│ │ │ │ │ ├── polling.ts
│ │ │ │ │ └── webhook.ts
│ │ │ │ └── types
│ │ │ │ │ └── typegram.ts
│ │ │ ├── deunionize.ts
│ │ │ ├── filters.ts
│ │ │ ├── format.ts
│ │ │ ├── future.ts
│ │ │ ├── index.ts
│ │ │ ├── input.ts
│ │ │ ├── markup.ts
│ │ │ ├── middleware.ts
│ │ │ ├── router.ts
│ │ │ ├── scenes
│ │ │ │ ├── base.ts
│ │ │ │ ├── context.ts
│ │ │ │ ├── index.ts
│ │ │ │ ├── stage.ts
│ │ │ │ └── wizard
│ │ │ │ │ ├── context.ts
│ │ │ │ │ └── index.ts
│ │ │ ├── session.ts
│ │ │ ├── telegraf.ts
│ │ │ ├── telegram-types.ts
│ │ │ ├── telegram.ts
│ │ │ └── util.ts
│ │ ├── types.d.ts
│ │ ├── types.js
│ │ └── typings
│ │ │ ├── button.d.ts
│ │ │ ├── button.d.ts.map
│ │ │ ├── composer.d.ts
│ │ │ ├── composer.d.ts.map
│ │ │ ├── context.d.ts
│ │ │ ├── context.d.ts.map
│ │ │ ├── core
│ │ │ ├── helpers
│ │ │ │ ├── check.d.ts
│ │ │ │ ├── check.d.ts.map
│ │ │ │ ├── compact.d.ts
│ │ │ │ ├── compact.d.ts.map
│ │ │ │ ├── formatting.d.ts
│ │ │ │ └── formatting.d.ts.map
│ │ │ ├── network
│ │ │ │ ├── client.d.ts
│ │ │ │ ├── client.d.ts.map
│ │ │ │ ├── error.d.ts
│ │ │ │ ├── error.d.ts.map
│ │ │ │ ├── multipart-stream.d.ts
│ │ │ │ ├── multipart-stream.d.ts.map
│ │ │ │ ├── polling.d.ts
│ │ │ │ ├── polling.d.ts.map
│ │ │ │ ├── webhook.d.ts
│ │ │ │ └── webhook.d.ts.map
│ │ │ └── types
│ │ │ │ ├── typegram.d.ts
│ │ │ │ └── typegram.d.ts.map
│ │ │ ├── deunionize.d.ts
│ │ │ ├── deunionize.d.ts.map
│ │ │ ├── filters.d.ts
│ │ │ ├── filters.d.ts.map
│ │ │ ├── format.d.ts
│ │ │ ├── format.d.ts.map
│ │ │ ├── future.d.ts
│ │ │ ├── future.d.ts.map
│ │ │ ├── index.d.ts
│ │ │ ├── index.d.ts.map
│ │ │ ├── input.d.ts
│ │ │ ├── input.d.ts.map
│ │ │ ├── markup.d.ts
│ │ │ ├── markup.d.ts.map
│ │ │ ├── middleware.d.ts
│ │ │ ├── middleware.d.ts.map
│ │ │ ├── router.d.ts
│ │ │ ├── router.d.ts.map
│ │ │ ├── scenes
│ │ │ ├── base.d.ts
│ │ │ ├── base.d.ts.map
│ │ │ ├── context.d.ts
│ │ │ ├── context.d.ts.map
│ │ │ ├── index.d.ts
│ │ │ ├── index.d.ts.map
│ │ │ ├── stage.d.ts
│ │ │ ├── stage.d.ts.map
│ │ │ └── wizard
│ │ │ │ ├── context.d.ts
│ │ │ │ ├── context.d.ts.map
│ │ │ │ ├── index.d.ts
│ │ │ │ └── index.d.ts.map
│ │ │ ├── session.d.ts
│ │ │ ├── session.d.ts.map
│ │ │ ├── telegraf.d.ts
│ │ │ ├── telegraf.d.ts.map
│ │ │ ├── telegram-types.d.ts
│ │ │ ├── telegram-types.d.ts.map
│ │ │ ├── telegram.d.ts
│ │ │ ├── telegram.d.ts.map
│ │ │ ├── util.d.ts
│ │ │ └── util.d.ts.map
│ ├── tr46
│ │ ├── .npmignore
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── .gitkeep
│ │ │ └── mappingTable.json
│ │ └── package.json
│ ├── typegram
│ │ ├── .editorconfig
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── api.d.ts
│ │ ├── default.d.ts
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── inline.d.ts
│ │ ├── manage.d.ts
│ │ ├── markup.d.ts
│ │ ├── menu-button.d.ts
│ │ ├── message.d.ts
│ │ ├── package.json
│ │ ├── passport.d.ts
│ │ ├── payment.d.ts
│ │ ├── proxied.d.ts
│ │ └── update.d.ts
│ ├── webidl-conversions
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── lib
│ │ │ └── index.js
│ │ └── package.json
│ └── whatwg-url
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── lib
│ │ ├── URL-impl.js
│ │ ├── URL.js
│ │ ├── public-api.js
│ │ ├── url-state-machine.js
│ │ └── utils.js
│ │ └── package.json
├── package-lock.json
└── package.json
├── Oct 1 - Scopes
├── blockScopesDemo.js
├── globalScopeDemo.js
├── letDemo.js
├── lexicalScoping.js
├── lexicalScoping2.js
├── lexicalScoping3.js
├── lexicalScoping4.js
├── redeclaration.js
└── varDemo.js
├── Oct 18- Closures and Callbacks
├── callbacksapplication.js
├── callbacksdemo.js
├── custommapfunction.js
├── setIntervaldemo.js
├── setTimeoutdemo.js
└── setTimeoutdemo1.js
├── Oct 2 - Scopes 2
├── autoGlobal.js
├── autoGlobals.js
├── autoGlobals1.js
├── case1.js
├── cornercasehoisting.js
├── functionExpression1.js
├── hoisting.js
├── strictmode.js
├── test.js
├── typeError.js
└── usecase.js
├── Oct 20 - Closures and Async js
├── demo1.js
├── demo2.js
├── demo3.js
├── demo4.js
├── demo5.js
├── demo6.js
└── test.js
├── Oct 22 - Async JS
├── demo1.js
├── demo3.js
├── demo4.js
├── demo5.js
├── syncJSDemo.js
└── whatisthis.js
├── Oct 23 - Async JS 2
├── callbacksdemo1.js
├── demo1Inversionofcontrol.js
└── downloadcallback.js
├── Oct 27 - Promises
├── callbackimpl.js
├── feature.js
├── promisedemo.js
├── promisedemo3.js
└── promisesdemo2.js
├── Oct 29 - Promises cont
├── asyncawaitdemo.js
├── asyncawaitdemo1.js
├── demo1.js
├── demo2.js
├── demo3.js
├── demo4.js
└── demo5.js
├── Oct 30 - Async Await
├── asyncawaiterrorhandling.js
├── asyncawaithell.js
├── demo1.js
├── demo2.js
├── demo3.js
├── dryrun.js
├── errorFirstcallback.js
├── errorpromise.js
├── errorpromises.js
├── promiseall.js
└── test.js
├── Oct 4 - Function expression
├── fescopes.js
└── passingFunctions.js
├── Sep 16 - Introduction to JS
├── .DS_Store
├── consolelog.js
├── doubt.js
├── hello.js
├── operators.js
├── typeof.js
├── types.js
└── variables.js
├── Sep 18 - Introduction to JS 2
├── breakdemo.js
├── conditionals.js
├── continuedemo.js
├── forloop.js
├── functiondemo.js
├── operators.js
├── switchdemo.js
├── switchdemo1.js
└── whileloops.js
├── Sep 24 - Coercion
├── ToNumber_Demo1.js
├── ToString_Demo1.js
├── toString_Demo2.js
└── valueof_toString_demo.js
├── Sep 25 - Coercion continued
├── ToBoolean_demo.js
└── strict_equality_demo.js
├── Sep 29 - Abstract Equality, Nan
├── abstractequalitydemo.js
├── example1.js
├── example2.js
├── homework.js
├── isNaNDemo.js
└── number_isNan_demo.js
├── first_express_server
├── index.js
├── node_modules
│ ├── .bin
│ │ └── mime
│ ├── .package-lock.json
│ ├── accepts
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── array-flatten
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── array-flatten.js
│ │ └── package.json
│ ├── body-parser
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── SECURITY.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
│ ├── call-bind
│ │ ├── .eslintignore
│ │ ├── .eslintrc
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── .nycrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── callBound.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── callBound.js
│ │ │ └── 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-signature
│ │ ├── .npmignore
│ │ ├── History.md
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── cookie
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── SECURITY.md
│ │ ├── index.js
│ │ └── package.json
│ ├── 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
│ ├── depd
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ └── browser
│ │ │ │ └── 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
│ │ ├── SECURITY.md
│ │ ├── index.js
│ │ └── package.json
│ ├── forwarded
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── fresh
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── function-bind
│ │ ├── .editorconfig
│ │ ├── .eslintrc
│ │ ├── .jscs.json
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── implementation.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── .eslintrc
│ │ │ └── index.js
│ ├── get-intrinsic
│ │ ├── .eslintrc
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── .nycrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── GetIntrinsic.js
│ ├── has-symbols
│ │ ├── .eslintrc
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── .nycrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── shams.js
│ │ └── test
│ │ │ ├── index.js
│ │ │ ├── shams
│ │ │ ├── core-js.js
│ │ │ └── get-own-property-symbols.js
│ │ │ └── tests.js
│ ├── has
│ │ ├── LICENSE-MIT
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── src
│ │ │ └── index.js
│ │ └── test
│ │ │ └── index.js
│ ├── http-errors
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── iconv-lite
│ │ ├── 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
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── ipaddr.min.js
│ │ ├── lib
│ │ │ ├── ipaddr.js
│ │ │ └── ipaddr.js.d.ts
│ │ └── 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
│ │ ├── .npmignore
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── cli.js
│ │ ├── mime.js
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── build.js
│ │ │ └── test.js
│ │ └── types.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
│ ├── object-inspect
│ │ ├── .eslintrc
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── .nycrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── example
│ │ │ ├── all.js
│ │ │ ├── circular.js
│ │ │ ├── fn.js
│ │ │ └── inspect.js
│ │ ├── index.js
│ │ ├── package-support.json
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ ├── test-core-js.js
│ │ ├── test
│ │ │ ├── bigint.js
│ │ │ ├── browser
│ │ │ │ └── dom.js
│ │ │ ├── circular.js
│ │ │ ├── deep.js
│ │ │ ├── element.js
│ │ │ ├── err.js
│ │ │ ├── fakes.js
│ │ │ ├── fn.js
│ │ │ ├── has.js
│ │ │ ├── holes.js
│ │ │ ├── indent-option.js
│ │ │ ├── inspect.js
│ │ │ ├── lowbyte.js
│ │ │ ├── number.js
│ │ │ ├── quoteStyle.js
│ │ │ ├── toStringTag.js
│ │ │ ├── undef.js
│ │ │ └── values.js
│ │ └── util.inspect.js
│ ├── on-finished
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── parseurl
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── path-to-regexp
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── proxy-addr
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── qs
│ │ ├── .editorconfig
│ │ ├── .eslintrc
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── .nycrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── dist
│ │ │ └── qs.js
│ │ ├── lib
│ │ │ ├── formats.js
│ │ │ ├── index.js
│ │ │ ├── parse.js
│ │ │ ├── stringify.js
│ │ │ └── utils.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── parse.js
│ │ │ ├── stringify.js
│ │ │ └── utils.js
│ ├── range-parser
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── raw-body
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── SECURITY.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── package.json
│ ├── safe-buffer
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── package.json
│ ├── safer-buffer
│ │ ├── LICENSE
│ │ ├── Porting-Buffer.md
│ │ ├── Readme.md
│ │ ├── dangerous.js
│ │ ├── package.json
│ │ ├── safer.js
│ │ └── tests.js
│ ├── send
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── SECURITY.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ └── ms
│ │ │ │ ├── index.js
│ │ │ │ ├── license.md
│ │ │ │ ├── package.json
│ │ │ │ └── readme.md
│ │ └── package.json
│ ├── serve-static
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── setprototypeof
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── side-channel
│ │ ├── .eslintignore
│ │ ├── .eslintrc
│ │ ├── .github
│ │ │ └── FUNDING.yml
│ │ ├── .nycrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── statuses
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── codes.json
│ │ ├── index.js
│ │ └── package.json
│ ├── toidentifier
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── type-is
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── unpipe
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── utils-merge
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ └── vary
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
├── package-lock.json
└── package.json
├── nov 22 - Setting Up Server
└── index.js
└── test
├── index.js
├── node_modules
├── .bin
│ └── telegraf
├── .package-lock.json
├── abort-controller
│ ├── LICENSE
│ ├── README.md
│ ├── browser.js
│ ├── browser.mjs
│ ├── dist
│ │ ├── abort-controller.d.ts
│ │ ├── abort-controller.js
│ │ ├── abort-controller.js.map
│ │ ├── abort-controller.mjs
│ │ ├── abort-controller.mjs.map
│ │ ├── abort-controller.umd.js
│ │ └── abort-controller.umd.js.map
│ ├── package.json
│ ├── polyfill.js
│ └── polyfill.mjs
├── buffer-alloc-unsafe
│ ├── index.js
│ ├── package.json
│ └── readme.md
├── buffer-alloc
│ ├── index.js
│ ├── package.json
│ └── readme.md
├── buffer-fill
│ ├── index.js
│ ├── package.json
│ └── readme.md
├── debug
│ ├── LICENSE
│ ├── README.md
│ ├── package.json
│ └── src
│ │ ├── browser.js
│ │ ├── common.js
│ │ ├── index.js
│ │ └── node.js
├── event-target-shim
│ ├── LICENSE
│ ├── README.md
│ ├── dist
│ │ ├── event-target-shim.js
│ │ ├── event-target-shim.js.map
│ │ ├── event-target-shim.mjs
│ │ ├── event-target-shim.mjs.map
│ │ ├── event-target-shim.umd.js
│ │ └── event-target-shim.umd.js.map
│ ├── index.d.ts
│ └── package.json
├── mri
│ ├── index.d.ts
│ ├── lib
│ │ ├── index.js
│ │ └── index.mjs
│ ├── license.md
│ ├── package.json
│ └── readme.md
├── ms
│ ├── index.js
│ ├── license.md
│ ├── package.json
│ └── readme.md
├── node-fetch
│ ├── LICENSE.md
│ ├── README.md
│ ├── browser.js
│ ├── lib
│ │ ├── index.es.js
│ │ ├── index.js
│ │ └── index.mjs
│ └── package.json
├── p-timeout
│ ├── index.d.ts
│ ├── index.js
│ ├── license
│ ├── package.json
│ └── readme.md
├── safe-compare
│ ├── .npmignore
│ ├── LICENSE
│ ├── README.md
│ ├── appveyor.yml
│ ├── index.js
│ └── package.json
├── sandwich-stream
│ ├── .editorconfig
│ ├── LICENCE
│ ├── README.md
│ ├── dist
│ │ ├── sandwich-stream.d.ts
│ │ ├── sandwich-stream.d.ts.map
│ │ ├── sandwich-stream.js
│ │ └── sandwich-stream.mjs
│ ├── package.json
│ └── rollup.config.js
├── telegraf
│ ├── LICENSE
│ ├── README.md
│ ├── format.d.ts
│ ├── format.js
│ ├── future.d.ts
│ ├── future.js
│ ├── lib
│ │ ├── button.js
│ │ ├── cli.mjs
│ │ ├── composer.js
│ │ ├── context.js
│ │ ├── core
│ │ │ ├── helpers
│ │ │ │ ├── check.js
│ │ │ │ ├── compact.js
│ │ │ │ └── formatting.js
│ │ │ ├── network
│ │ │ │ ├── client.js
│ │ │ │ ├── error.js
│ │ │ │ ├── multipart-stream.js
│ │ │ │ ├── polling.js
│ │ │ │ └── webhook.js
│ │ │ └── types
│ │ │ │ └── typegram.js
│ │ ├── deunionize.js
│ │ ├── format.js
│ │ ├── future.js
│ │ ├── index.js
│ │ ├── input.js
│ │ ├── markup.js
│ │ ├── middleware.js
│ │ ├── router.js
│ │ ├── scenes
│ │ │ ├── base.js
│ │ │ ├── context.js
│ │ │ ├── index.js
│ │ │ ├── stage.js
│ │ │ └── wizard
│ │ │ │ ├── context.js
│ │ │ │ └── index.js
│ │ ├── session.js
│ │ ├── telegraf.js
│ │ ├── telegram-types.js
│ │ ├── telegram.js
│ │ └── util.js
│ ├── package.json
│ ├── src
│ │ ├── button.ts
│ │ ├── composer.ts
│ │ ├── context.ts
│ │ ├── core
│ │ │ ├── helpers
│ │ │ │ ├── check.ts
│ │ │ │ ├── compact.ts
│ │ │ │ └── formatting.ts
│ │ │ ├── network
│ │ │ │ ├── client.ts
│ │ │ │ ├── error.ts
│ │ │ │ ├── multipart-stream.ts
│ │ │ │ ├── polling.ts
│ │ │ │ └── webhook.ts
│ │ │ └── types
│ │ │ │ └── typegram.ts
│ │ ├── deunionize.ts
│ │ ├── format.ts
│ │ ├── future.ts
│ │ ├── index.ts
│ │ ├── input.ts
│ │ ├── markup.ts
│ │ ├── middleware.ts
│ │ ├── router.ts
│ │ ├── scenes
│ │ │ ├── base.ts
│ │ │ ├── context.ts
│ │ │ ├── index.ts
│ │ │ ├── stage.ts
│ │ │ └── wizard
│ │ │ │ ├── context.ts
│ │ │ │ └── index.ts
│ │ ├── session.ts
│ │ ├── telegraf.ts
│ │ ├── telegram-types.ts
│ │ ├── telegram.ts
│ │ └── util.ts
│ ├── types.d.ts
│ ├── types.js
│ └── typings
│ │ ├── button.d.ts
│ │ ├── button.d.ts.map
│ │ ├── composer.d.ts
│ │ ├── composer.d.ts.map
│ │ ├── context.d.ts
│ │ ├── context.d.ts.map
│ │ ├── core
│ │ ├── helpers
│ │ │ ├── check.d.ts
│ │ │ ├── check.d.ts.map
│ │ │ ├── compact.d.ts
│ │ │ ├── compact.d.ts.map
│ │ │ ├── formatting.d.ts
│ │ │ └── formatting.d.ts.map
│ │ ├── network
│ │ │ ├── client.d.ts
│ │ │ ├── client.d.ts.map
│ │ │ ├── error.d.ts
│ │ │ ├── error.d.ts.map
│ │ │ ├── multipart-stream.d.ts
│ │ │ ├── multipart-stream.d.ts.map
│ │ │ ├── polling.d.ts
│ │ │ ├── polling.d.ts.map
│ │ │ ├── webhook.d.ts
│ │ │ └── webhook.d.ts.map
│ │ └── types
│ │ │ ├── typegram.d.ts
│ │ │ └── typegram.d.ts.map
│ │ ├── deunionize.d.ts
│ │ ├── deunionize.d.ts.map
│ │ ├── format.d.ts
│ │ ├── format.d.ts.map
│ │ ├── future.d.ts
│ │ ├── future.d.ts.map
│ │ ├── index.d.ts
│ │ ├── index.d.ts.map
│ │ ├── input.d.ts
│ │ ├── input.d.ts.map
│ │ ├── markup.d.ts
│ │ ├── markup.d.ts.map
│ │ ├── middleware.d.ts
│ │ ├── middleware.d.ts.map
│ │ ├── router.d.ts
│ │ ├── router.d.ts.map
│ │ ├── scenes
│ │ ├── base.d.ts
│ │ ├── base.d.ts.map
│ │ ├── context.d.ts
│ │ ├── context.d.ts.map
│ │ ├── index.d.ts
│ │ ├── index.d.ts.map
│ │ ├── stage.d.ts
│ │ ├── stage.d.ts.map
│ │ └── wizard
│ │ │ ├── context.d.ts
│ │ │ ├── context.d.ts.map
│ │ │ ├── index.d.ts
│ │ │ └── index.d.ts.map
│ │ ├── session.d.ts
│ │ ├── session.d.ts.map
│ │ ├── telegraf.d.ts
│ │ ├── telegraf.d.ts.map
│ │ ├── telegram-types.d.ts
│ │ ├── telegram-types.d.ts.map
│ │ ├── telegram.d.ts
│ │ ├── telegram.d.ts.map
│ │ ├── util.d.ts
│ │ └── util.d.ts.map
├── tr46
│ ├── .npmignore
│ ├── index.js
│ ├── lib
│ │ ├── .gitkeep
│ │ └── mappingTable.json
│ └── package.json
├── typegram
│ ├── .editorconfig
│ ├── .github
│ │ └── FUNDING.yml
│ ├── LICENSE
│ ├── README.md
│ ├── api.d.ts
│ ├── default.d.ts
│ ├── index.d.ts
│ ├── index.js
│ ├── inline.d.ts
│ ├── manage.d.ts
│ ├── markup.d.ts
│ ├── menu-button.d.ts
│ ├── message.d.ts
│ ├── package.json
│ ├── passport.d.ts
│ ├── payment.d.ts
│ ├── proxied.d.ts
│ └── update.d.ts
├── webidl-conversions
│ ├── LICENSE.md
│ ├── README.md
│ ├── lib
│ │ └── index.js
│ └── package.json
└── whatwg-url
│ ├── LICENSE.txt
│ ├── README.md
│ ├── lib
│ ├── URL-impl.js
│ ├── URL.js
│ ├── public-api.js
│ ├── url-state-machine.js
│ └── utils.js
│ └── package.json
├── package-lock.json
└── package.json
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/.DS_Store
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/globalsdemo.js:
--------------------------------------------------------------------------------
1 | // console.log(process);
2 | // console.log(__dirname);
3 | console.log(module);
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/home.mjs:
--------------------------------------------------------------------------------
1 | import searching from './searching.js';
2 | console.log(searching);
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/index.js:
--------------------------------------------------------------------------------
1 | const searching = require('./searching.js')
2 | // import searching from './searching.js'
3 | console.log("Start");
4 | let arr = [5,4,2,7,1,3,4,5,6];
5 | let x = 6;
6 | console.log(searching)
7 |
8 | const z = await Promise.resolve(1);
9 |
10 | // console.log(searching.linear(arr, x));
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/sampleesmoduling/index.js:
--------------------------------------------------------------------------------
1 | import searching from './searchingalgo.js'
2 | // const x = require('./searchingalgo.js')
3 | console.log(searching)
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/sampleesmoduling/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "module"
3 | }
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/sampleesmoduling/searchingalgo.js:
--------------------------------------------------------------------------------
1 | function linearSearch(arr, x) {
2 | for(let i = 0; i < arr.length; i++) {
3 | if(arr[i] === x) {
4 | return i;
5 | }
6 | }
7 | return NaN;
8 | }
9 |
10 | function binarySearch(arr, x) {
11 | // some impl
12 | }
13 | console.log("Ending searching");
14 | module.exports = {
15 | linear: linearSearch,
16 | binary: binarySearch
17 | }
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/searching.js:
--------------------------------------------------------------------------------
1 | function linearSearch(arr, x) {
2 | for(let i = 0; i < arr.length; i++) {
3 | if(arr[i] === x) {
4 | return i;
5 | }
6 | }
7 | return NaN;
8 | }
9 |
10 | function binarySearch(arr, x) {
11 | // some impl
12 | }
13 | console.log("Ending searching");
14 | module.exports = {
15 | linear: linearSearch,
16 | binary: binarySearch
17 | }
--------------------------------------------------------------------------------
/Nov 12 - Intro to node/test.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Sanket",
3 | "company": "Google"
4 | }
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/fsdemo.mjs:
--------------------------------------------------------------------------------
1 | import {readFile, writeFile} from 'fs/promises';
2 |
3 | const filePath = new URL('./index.html', import.meta.url);
4 | let contents = await readFile(filePath, { encoding: 'utf8' });
5 | console.log(typeof contents);
6 | const data = {
7 | title: 'my title',
8 | body: 'my data'
9 | }
10 |
11 | for(const [key, value] of Object.entries(data)) {
12 | contents = contents.replace(`[${key}]`, value);
13 | }
14 |
15 | await writeFile(new URL('./index.html', import.meta.url), contents);
16 |
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 | my title
11 | my data
12 |
13 |
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/processdemo.js:
--------------------------------------------------------------------------------
1 | // console.log("Hi");
2 | // console.log("by");
3 | process.stdout.write("hi");
4 | process.stdout.write("+ 2");
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/run:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/Nov 13 - Intro to node 2/run
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/sampleesmoduling/index.js:
--------------------------------------------------------------------------------
1 | import searching, {linearSearch} from './searchingalgo.js'
2 | // const x = require('./searchingalgo.js')
3 | console.log(searching, linearSearch)
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/sampleesmoduling/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "module"
3 | }
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/sampleesmoduling/searchingalgo.js:
--------------------------------------------------------------------------------
1 | export function linearSearch(arr, x) {
2 | for(let i = 0; i < arr.length; i++) {
3 | if(arr[i] === x) {
4 | return i;
5 | }
6 | }
7 | return NaN;
8 | }
9 |
10 | function binarySearch(arr, x) {
11 | // some impl
12 | }
13 | console.log("Ending searching");
14 | // module.exports = {
15 | // linear: linearSearch,
16 | // binary: binarySearch
17 | // }
18 | // export default function fun() {
19 | // console.log("fun")
20 | // }
21 | export default {
22 | binarySearch,
23 | fun: function () {console.log("fun")}
24 | }
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/script.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | console.log("Hello world");
4 |
5 | console.log(process.argv);
6 |
7 | console.log(process.argv[2].split("=")[1]);
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/test.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | int main() {
3 | std::cout<<"hi";
4 | return 0;
5 | }
6 |
--------------------------------------------------------------------------------
/Nov 13 - Intro to node 2/userinput.js:
--------------------------------------------------------------------------------
1 | process.stdin.resume();
2 | process.stdin.setEncoding('utf-8');
3 |
4 | let inputString = '';
5 | let currentLine = 0;
6 |
7 | process.stdin.on('data', inputStdin => {
8 | inputString += inputStdin;
9 | });
10 |
11 | process.stdin.on('end', _ => {
12 | inputString = inputString.trim().split('\n').map(string => {
13 | return string.trim();
14 | });
15 |
16 | main();
17 | });
18 |
19 | function readLine() {
20 | return inputString[currentLine++];
21 | }
22 |
23 | function main() {
24 | console.log("Enter the first number");
25 | let x = readLine();
26 | console.log("Enter the second number");
27 | let y = readLine();
28 | console.log(Number(x) - Number(y));
29 | }
30 |
31 |
32 |
--------------------------------------------------------------------------------
/Nov 24 - OOPS 1/functionsdemos.js:
--------------------------------------------------------------------------------
1 | function Product(n, p) {
2 | this.name = n;
3 | this.price = p;
4 |
5 | this.display = function () {
6 | console.log(this.name, this.price, this);
7 | }
8 |
9 | this.buy = () => {
10 | console.log(this);
11 | }
12 | // assume -> return this
13 | // return {name: "Sanket", age: 24};
14 | return 10;
15 | }
16 |
17 | const p1 = new Product("iphone", 100000);
18 | // console.log(p1);
19 | console.log("1")
20 | p1.display();
21 | console.log("2")
22 | p1.buy();
23 |
24 | // const p3 = new Product("macbook", 1300000);
25 | // p3.display();
26 |
27 | // const p2 = Product("ksjfnv", 34345);
28 | // console.log(p2); // undefined
--------------------------------------------------------------------------------
/Nov 24 - OOPS 1/test.js:
--------------------------------------------------------------------------------
1 | function createOBJ(){
2 | this.x = 37;
3 | this.a = function forza(){console.log("hello")}
4 | }
5 | obj2 = new createOBJ();
6 | obj2.a();
7 |
8 | obj = {
9 | x : 377 ,
10 | a : function forza(){console.log(this.x)}
11 | }
12 |
13 | obj.a();
--------------------------------------------------------------------------------
/Nov 24 - OOPS 1/thisdemo.js:
--------------------------------------------------------------------------------
1 | const obj = {
2 | name: "Sanket",
3 | display: function () {
4 | console.log(this, "is the calling site");
5 | }
6 | }
7 |
8 | const obj1 = {
9 | name: "Sarthak",
10 | display: () => {
11 | console.log(this, "is the calling site");
12 | }
13 | }
14 |
15 | obj.display();
16 |
17 | obj1.display()
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/arraysdemo.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/Nov 27 - OOPS 3/arraysdemo.js
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/binddemo.js:
--------------------------------------------------------------------------------
1 | const player1 = {
2 | firstname: 'Virat',
3 | lastname: 'Kohli',
4 | numberToBat: 3,
5 | canBowl: false,
6 | getDetails: function () {
7 | console.log(this.firstname, this.lastname, "comes at No.", this.numberToBat);
8 | }
9 | }
10 |
11 | // const obj = function () {
12 | // console.log(this.getDetails());
13 | // }
14 |
15 | // let x = obj.bind(player1);
16 | // console.log(x)
17 | // x();
18 |
19 | const obj = function(x, y) {
20 | console.log(x + y);
21 | this.getDetails();
22 | }
23 |
24 | obj.call(player1, 2, 45);
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/demo.js:
--------------------------------------------------------------------------------
1 | var obj = {
2 | name: "Sanket",
3 | company: "Google",
4 | display: () => {
5 | console.log(this.name, "works in", this.company);
6 | }
7 | }
8 |
9 | var obj1 = {
10 | name: "JD",
11 | company: "Microsoft",
12 | display: () => {
13 | setTimeout(() => {
14 | console.log(this.name, "works in", this.company);
15 | }, 3000);
16 | }
17 | }
18 |
19 | var obj2 = {
20 | name: "Sarthak",
21 | company: "Phonepe",
22 | display: function () {
23 | console.log(this);
24 | setTimeout(() => {
25 | console.log(this.name, "works in", this.company);
26 | }, 3000);
27 | }
28 | }
29 |
30 | obj2.display();
31 |
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/demo1.js:
--------------------------------------------------------------------------------
1 | function Product(n, p) {
2 | // console.log(this);
3 | this.name = n;
4 | this.price = p;
5 |
6 | this.display = function () {
7 | console.log(this.name, this.price);
8 | };
9 |
10 | // return this;
11 | }
12 |
13 | const p2 = Product("iphone", 9989839);
14 | console.log(p2);
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/inheritance.js:
--------------------------------------------------------------------------------
1 | function Product(n, p, c) {
2 | this.name = n;
3 | this.price = p;
4 |
5 | Category.call(this, c);
6 | }
7 |
8 | function Category(c) {
9 | this.categoryName = c;
10 | }
11 |
12 |
13 | Product.prototype = Object.create(Category.prototype);
14 |
15 | let p = new Product("Iphone", 100000, "Electronics");
16 | Category.prototype.getCategoryName = function () {
17 | console.log("Called");
18 | console.log(this.categoryName);
19 | }
20 | p.getCategoryName();
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/inheritance1.js:
--------------------------------------------------------------------------------
1 | class Category {
2 | constructor(c) {
3 | this.categoryname = c;
4 | }
5 |
6 | getCategoryName() {
7 | console.log("category is", this.categoryname);
8 | }
9 | }
10 |
11 | class Product extends Category {
12 | constructor(n, p, c) {
13 | super(c);
14 | this.name = n;
15 | this.price = p;
16 | }
17 |
18 | display() {
19 | console.log("Details of the product are");
20 | console.log("Name", this.name);
21 | console.log("price", this.price);
22 | this.getCategoryName();
23 | }
24 | }
25 |
26 | let p = new Product("iphone", 100000, "electronics");
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/objectsdemo.js:
--------------------------------------------------------------------------------
1 | let arr = [1,2,3,4];
2 |
3 | console.log(typeof arr);
4 |
5 | let obj = {
6 | x: 10,
7 | y: 20
8 | };
9 | Object.freeze(obj); //neither we can add a new property not update old one
10 | obj.z = 20;
11 |
12 | console.log(obj);
13 |
14 | let obj1 = {
15 | x: 10,
16 | y: 20
17 | }
18 | Object.seal(obj1); // we cannot add new property but we can update old ones
19 | obj1.x = 30;
20 | obj1.z = 99;
21 |
22 | console.log(obj1);
23 |
24 | const obj2 = {
25 | x: 1, y: 2
26 | }
27 |
28 | obj2.x = 10;
29 | obj2.z = 99;
30 | obj2 = 99;
31 | console.log(obj2);
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/objextfunctiondemo.js:
--------------------------------------------------------------------------------
1 | let obj = {
2 | x: 1, y: 2, z: 3
3 | }
4 |
5 | let keys = Object.keys(obj);
6 | console.log(keys);
7 |
8 | let values = Object.values(obj);
9 | console.log(values);
10 |
11 | let entries = Object.entries(obj)
12 | console.log(entries);
--------------------------------------------------------------------------------
/Nov 27 - OOPS 3/tempCodeRunnerFile.js:
--------------------------------------------------------------------------------
1 | call
--------------------------------------------------------------------------------
/Nov_17/first_node_project/index.js:
--------------------------------------------------------------------------------
1 | import axios from 'axios';
2 |
3 | async function fetch () {
4 | const response = await axios.get('http://www.omdbapi.com/?t=harry&apikey=dec4ad0e');
5 | console.log(response.data);
6 | }
7 | fetch();
8 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/index.js:
--------------------------------------------------------------------------------
1 | module.exports =
2 | {
3 | parallel : require('./parallel.js'),
4 | serial : require('./serial.js'),
5 | serialOrdered : require('./serialOrdered.js')
6 | };
7 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/lib/abort.js:
--------------------------------------------------------------------------------
1 | // API
2 | module.exports = abort;
3 |
4 | /**
5 | * Aborts leftover active jobs
6 | *
7 | * @param {object} state - current state object
8 | */
9 | function abort(state)
10 | {
11 | Object.keys(state.jobs).forEach(clean.bind(state));
12 |
13 | // reset leftover jobs
14 | state.jobs = {};
15 | }
16 |
17 | /**
18 | * Cleans up leftover job by invoking abort function for the provided job id
19 | *
20 | * @this state
21 | * @param {string|number} key - job id to abort
22 | */
23 | function clean(key)
24 | {
25 | if (typeof this.jobs[key] == 'function')
26 | {
27 | this.jobs[key]();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/lib/async.js:
--------------------------------------------------------------------------------
1 | var defer = require('./defer.js');
2 |
3 | // API
4 | module.exports = async;
5 |
6 | /**
7 | * Runs provided callback asynchronously
8 | * even if callback itself is not
9 | *
10 | * @param {function} callback - callback to invoke
11 | * @returns {function} - augmented callback
12 | */
13 | function async(callback)
14 | {
15 | var isAsync = false;
16 |
17 | // check if async happened
18 | defer(function() { isAsync = true; });
19 |
20 | return function async_callback(err, result)
21 | {
22 | if (isAsync)
23 | {
24 | callback(err, result);
25 | }
26 | else
27 | {
28 | defer(function nextTick_callback()
29 | {
30 | callback(err, result);
31 | });
32 | }
33 | };
34 | }
35 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/lib/defer.js:
--------------------------------------------------------------------------------
1 | module.exports = defer;
2 |
3 | /**
4 | * Runs provided function on next iteration of the event loop
5 | *
6 | * @param {function} fn - function to run
7 | */
8 | function defer(fn)
9 | {
10 | var nextTick = typeof setImmediate == 'function'
11 | ? setImmediate
12 | : (
13 | typeof process == 'object' && typeof process.nextTick == 'function'
14 | ? process.nextTick
15 | : null
16 | );
17 |
18 | if (nextTick)
19 | {
20 | nextTick(fn);
21 | }
22 | else
23 | {
24 | setTimeout(fn, 0);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/lib/readable_parallel.js:
--------------------------------------------------------------------------------
1 | var parallel = require('../parallel.js');
2 |
3 | // API
4 | module.exports = ReadableParallel;
5 |
6 | /**
7 | * Streaming wrapper to `asynckit.parallel`
8 | *
9 | * @param {array|object} list - array or object (named list) to iterate over
10 | * @param {function} iterator - iterator to run
11 | * @param {function} callback - invoked when all elements processed
12 | * @returns {stream.Readable#}
13 | */
14 | function ReadableParallel(list, iterator, callback)
15 | {
16 | if (!(this instanceof ReadableParallel))
17 | {
18 | return new ReadableParallel(list, iterator, callback);
19 | }
20 |
21 | // turn on object mode
22 | ReadableParallel.super_.call(this, {objectMode: true});
23 |
24 | this._start(parallel, list, iterator, callback);
25 | }
26 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/lib/readable_serial.js:
--------------------------------------------------------------------------------
1 | var serial = require('../serial.js');
2 |
3 | // API
4 | module.exports = ReadableSerial;
5 |
6 | /**
7 | * Streaming wrapper to `asynckit.serial`
8 | *
9 | * @param {array|object} list - array or object (named list) to iterate over
10 | * @param {function} iterator - iterator to run
11 | * @param {function} callback - invoked when all elements processed
12 | * @returns {stream.Readable#}
13 | */
14 | function ReadableSerial(list, iterator, callback)
15 | {
16 | if (!(this instanceof ReadableSerial))
17 | {
18 | return new ReadableSerial(list, iterator, callback);
19 | }
20 |
21 | // turn on object mode
22 | ReadableSerial.super_.call(this, {objectMode: true});
23 |
24 | this._start(serial, list, iterator, callback);
25 | }
26 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/lib/terminator.js:
--------------------------------------------------------------------------------
1 | var abort = require('./abort.js')
2 | , async = require('./async.js')
3 | ;
4 |
5 | // API
6 | module.exports = terminator;
7 |
8 | /**
9 | * Terminates jobs in the attached state context
10 | *
11 | * @this AsyncKitState#
12 | * @param {function} callback - final callback to invoke after termination
13 | */
14 | function terminator(callback)
15 | {
16 | if (!Object.keys(this.jobs).length)
17 | {
18 | return;
19 | }
20 |
21 | // fast forward iteration index
22 | this.index = this.size;
23 |
24 | // abort jobs
25 | abort(this);
26 |
27 | // send back results we have so far
28 | async(callback)(null, this.results);
29 | }
30 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/serial.js:
--------------------------------------------------------------------------------
1 | var serialOrdered = require('./serialOrdered.js');
2 |
3 | // Public API
4 | module.exports = serial;
5 |
6 | /**
7 | * Runs iterator over provided array elements in series
8 | *
9 | * @param {array|object} list - array or object (named list) to iterate over
10 | * @param {function} iterator - iterator to run
11 | * @param {function} callback - invoked when all elements processed
12 | * @returns {function} - jobs terminator
13 | */
14 | function serial(list, iterator, callback)
15 | {
16 | return serialOrdered(list, iterator, null, callback);
17 | }
18 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/asynckit/stream.js:
--------------------------------------------------------------------------------
1 | var inherits = require('util').inherits
2 | , Readable = require('stream').Readable
3 | , ReadableAsyncKit = require('./lib/readable_asynckit.js')
4 | , ReadableParallel = require('./lib/readable_parallel.js')
5 | , ReadableSerial = require('./lib/readable_serial.js')
6 | , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
7 | ;
8 |
9 | // API
10 | module.exports =
11 | {
12 | parallel : ReadableParallel,
13 | serial : ReadableSerial,
14 | serialOrdered : ReadableSerialOrdered,
15 | };
16 |
17 | inherits(ReadableAsyncKit, Readable);
18 |
19 | inherits(ReadableParallel, ReadableAsyncKit);
20 | inherits(ReadableSerial, ReadableAsyncKit);
21 | inherits(ReadableSerialOrdered, ReadableAsyncKit);
22 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Reporting a Vulnerability
2 |
3 | If you discover a security vulnerability in axios please disclose it via [our huntr page](https://huntr.dev/repos/axios/axios/). Bounty eligibility, CVE assignment, response times and past reports are all there.
4 |
5 |
6 | Thank you for improving the security of axios.
7 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/UPGRADE_GUIDE.md:
--------------------------------------------------------------------------------
1 | # Upgrade Guide
2 |
3 | ## 0.x.x -> 1.1.0
4 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/bin/ssl_hotfix.js:
--------------------------------------------------------------------------------
1 | import {spawn} from 'child_process';
2 |
3 | const args = process.argv.slice(2);
4 |
5 | console.log(`Running ${args.join(' ')} on ${process.version}\n`);
6 |
7 | const match = /v(\d+)/.exec(process.version);
8 |
9 | const isHotfixNeeded = match && match[1] > 16;
10 |
11 | isHotfixNeeded && console.warn('Setting --openssl-legacy-provider as ssl hotfix');
12 |
13 | const test = spawn('cross-env',
14 | isHotfixNeeded ? ['NODE_OPTIONS=--openssl-legacy-provider', ...args] : args, {
15 | shell: true,
16 | stdio: 'inherit'
17 | }
18 | );
19 |
20 | test.on('exit', function (code) {
21 | process.exit(code)
22 | })
23 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/index.js:
--------------------------------------------------------------------------------
1 | import axios from './lib/axios.js';
2 |
3 | // Keep top-level export same with static properties
4 | // so that it can keep same with es module or cjs
5 | const {
6 | Axios,
7 | AxiosError,
8 | CanceledError,
9 | isCancel,
10 | CancelToken,
11 | VERSION,
12 | all,
13 | Cancel,
14 | isAxiosError,
15 | spread,
16 | toFormData
17 | } = axios;
18 |
19 | export default axios;
20 | export {
21 | Axios,
22 | AxiosError,
23 | CanceledError,
24 | isCancel,
25 | CancelToken,
26 | VERSION,
27 | all,
28 | Cancel,
29 | isAxiosError,
30 | spread,
31 | toFormData
32 | }
33 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/cancel/isCancel.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default function isCancel(value) {
4 | return !!(value && value.__CANCEL__);
5 | }
6 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/core/README.md:
--------------------------------------------------------------------------------
1 | # axios // core
2 |
3 | The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are:
4 |
5 | - Dispatching requests
6 | - Requests sent via `adapters/` (see lib/adapters/README.md)
7 | - Managing interceptors
8 | - Handling config
9 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/core/buildFullPath.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import isAbsoluteURL from '../helpers/isAbsoluteURL.js';
4 | import combineURLs from '../helpers/combineURLs.js';
5 |
6 | /**
7 | * Creates a new URL by combining the baseURL with the requestedURL,
8 | * only when the requestedURL is not already an absolute URL.
9 | * If the requestURL is absolute, this function returns the requestedURL untouched.
10 | *
11 | * @param {string} baseURL The base URL
12 | * @param {string} requestedURL Absolute or relative URL to combine
13 | *
14 | * @returns {string} The combined full path
15 | */
16 | export default function buildFullPath(baseURL, requestedURL) {
17 | if (baseURL && !isAbsoluteURL(requestedURL)) {
18 | return combineURLs(baseURL, requestedURL);
19 | }
20 | return requestedURL;
21 | }
22 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/defaults/transitional.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default {
4 | silentJSONParsing: true,
5 | forcedJSONParsing: true,
6 | clarifyTimeoutError: false
7 | };
8 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/env/README.md:
--------------------------------------------------------------------------------
1 | # axios // env
2 |
3 | The `data.js` file is updated automatically when the package version is upgrading. Please do not edit it manually.
4 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/env/classes/FormData.js:
--------------------------------------------------------------------------------
1 | import FormData from 'form-data';
2 | export default FormData;
3 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/env/data.js:
--------------------------------------------------------------------------------
1 | export const VERSION = "1.1.3";
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/README.md:
--------------------------------------------------------------------------------
1 | # axios // helpers
2 |
3 | The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like:
4 |
5 | - Browser polyfills
6 | - Managing cookies
7 | - Parsing HTTP headers
8 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/bind.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default function bind(fn, thisArg) {
4 | return function wrap() {
5 | return fn.apply(thisArg, arguments);
6 | };
7 | }
8 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/combineURLs.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Creates a new URL by combining the specified URLs
5 | *
6 | * @param {string} baseURL The base URL
7 | * @param {string} relativeURL The relative URL
8 | *
9 | * @returns {string} The combined URL
10 | */
11 | export default function combineURLs(baseURL, relativeURL) {
12 | return relativeURL
13 | ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
14 | : baseURL;
15 | }
16 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/isAbsoluteURL.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Determines whether the specified URL is absolute
5 | *
6 | * @param {string} url The URL to test
7 | *
8 | * @returns {boolean} True if the specified URL is absolute, otherwise false
9 | */
10 | export default function isAbsoluteURL(url) {
11 | // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL).
12 | // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
13 | // by any combination of letters, digits, plus, period, or hyphen.
14 | return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
15 | }
16 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/isAxiosError.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import utils from './../utils.js';
4 |
5 | /**
6 | * Determines whether the payload is an error thrown by Axios
7 | *
8 | * @param {*} payload The value to test
9 | *
10 | * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
11 | */
12 | export default function isAxiosError(payload) {
13 | return utils.isObject(payload) && (payload.isAxiosError === true);
14 | }
15 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/null.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line strict
2 | export default null;
3 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/parseProtocol.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default function parseProtocol(url) {
4 | const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
5 | return match && match[1] || '';
6 | }
7 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/spread.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Syntactic sugar for invoking a function and expanding an array for arguments.
5 | *
6 | * Common use case would be to use `Function.prototype.apply`.
7 | *
8 | * ```js
9 | * function f(x, y, z) {}
10 | * var args = [1, 2, 3];
11 | * f.apply(null, args);
12 | * ```
13 | *
14 | * With `spread` this example can be re-written.
15 | *
16 | * ```js
17 | * spread(function(x, y, z) {})([1, 2, 3]);
18 | * ```
19 | *
20 | * @param {Function} callback
21 | *
22 | * @returns {Function}
23 | */
24 | export default function spread(callback) {
25 | return function wrap(arr) {
26 | return callback.apply(null, arr);
27 | };
28 | }
29 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/helpers/toURLEncodedForm.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import utils from '../utils.js';
4 | import toFormData from './toFormData.js';
5 | import platform from '../platform/index.js';
6 |
7 | export default function toURLEncodedForm(data, options) {
8 | return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
9 | visitor: function(value, key, path, helpers) {
10 | if (platform.isNode && utils.isBuffer(value)) {
11 | this.append(key, value.toString('base64'));
12 | return false;
13 | }
14 |
15 | return helpers.defaultVisitor.apply(this, arguments);
16 | }
17 | }, options));
18 | }
19 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/platform/browser/classes/FormData.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default FormData;
4 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';
4 | export default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
5 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/platform/index.js:
--------------------------------------------------------------------------------
1 | import platform from './node/index.js';
2 |
3 | export {platform as default}
4 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/platform/node/classes/FormData.js:
--------------------------------------------------------------------------------
1 | import FormData from 'form-data';
2 |
3 | export default FormData;
4 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/platform/node/classes/URLSearchParams.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import url from 'url';
4 | export default url.URLSearchParams;
5 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/lib/platform/node/index.js:
--------------------------------------------------------------------------------
1 | import URLSearchParams from './classes/URLSearchParams.js'
2 | import FormData from './classes/FormData.js'
3 |
4 | export default {
5 | isNode: true,
6 | classes: {
7 | URLSearchParams,
8 | FormData,
9 | Blob: typeof Blob !== 'undefined' && Blob || null
10 | },
11 | protocols: [ 'http', 'https', 'file', 'data' ]
12 | };
13 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "es2015",
4 | "lib": ["dom", "es2015"],
5 | "types": [],
6 | "moduleResolution": "node",
7 | "strict": true,
8 | "noEmit": true,
9 | "baseUrl": ".",
10 | "paths": {
11 | "axios": ["."]
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/axios/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "dtslint/dtslint.json",
3 | "rules": {
4 | "no-unnecessary-generics": false
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/combined-stream/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Felix Geisendörfer (http://debuggable.com/)",
3 | "name": "combined-stream",
4 | "description": "A stream that emits multiple other streams one after another.",
5 | "version": "1.0.8",
6 | "homepage": "https://github.com/felixge/node-combined-stream",
7 | "repository": {
8 | "type": "git",
9 | "url": "git://github.com/felixge/node-combined-stream.git"
10 | },
11 | "main": "./lib/combined_stream",
12 | "scripts": {
13 | "test": "node test/run.js"
14 | },
15 | "engines": {
16 | "node": ">= 0.8"
17 | },
18 | "dependencies": {
19 | "delayed-stream": "~1.0.0"
20 | },
21 | "devDependencies": {
22 | "far": "~0.0.7"
23 | },
24 | "license": "MIT"
25 | }
26 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/combined-stream/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | delayed-stream@~1.0.0:
6 | version "1.0.0"
7 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
8 |
9 | far@~0.0.7:
10 | version "0.0.7"
11 | resolved "https://registry.yarnpkg.com/far/-/far-0.0.7.tgz#01c1fd362bcd26ce9cf161af3938aa34619f79a7"
12 | dependencies:
13 | oop "0.0.3"
14 |
15 | oop@0.0.3:
16 | version "0.0.3"
17 | resolved "https://registry.yarnpkg.com/oop/-/oop-0.0.3.tgz#70fa405a5650891a194fdc82ca68dad6dabf4401"
18 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/delayed-stream/.npmignore:
--------------------------------------------------------------------------------
1 | test
2 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/delayed-stream/Makefile:
--------------------------------------------------------------------------------
1 | SHELL := /bin/bash
2 |
3 | test:
4 | @./test/run.js
5 |
6 | .PHONY: test
7 |
8 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/follow-redirects/debug.js:
--------------------------------------------------------------------------------
1 | var debug;
2 |
3 | module.exports = function () {
4 | if (!debug) {
5 | try {
6 | /* eslint global-require: off */
7 | debug = require("debug")("follow-redirects");
8 | }
9 | catch (error) { /* */ }
10 | if (typeof debug !== "function") {
11 | debug = function () { /* */ };
12 | }
13 | }
14 | debug.apply(null, arguments);
15 | };
16 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/follow-redirects/http.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./").http;
2 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/follow-redirects/https.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./").https;
2 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/form-data/lib/browser.js:
--------------------------------------------------------------------------------
1 | /* eslint-env browser */
2 | module.exports = typeof self == 'object' ? self.FormData : window.FormData;
3 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/form-data/lib/populate.js:
--------------------------------------------------------------------------------
1 | // populates missing values
2 | module.exports = function(dst, src) {
3 |
4 | Object.keys(src).forEach(function(prop)
5 | {
6 | dst[prop] = dst[prop] || src[prop];
7 | });
8 |
9 | return dst;
10 | };
11 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * Copyright(c) 2015-2022 Douglas Christopher Wilson
5 | * MIT Licensed
6 | */
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = require('./db.json')
13 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/node_modules/proxy-from-env/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - node
4 | - lts/*
5 | script:
6 | - npm run lint
7 | # test-coverage will also run the tests, but does not print helpful output upon test failure.
8 | # So we also run the tests separately.
9 | - npm run test
10 | - npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage
11 |
--------------------------------------------------------------------------------
/Nov_17/first_node_project/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "first_node_project",
3 | "version": "1.0.0",
4 | "description": "this is a basic node project",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "axios": "^1.1.3"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Nov_17/streamsdemo.js:
--------------------------------------------------------------------------------
1 | const fs = require('fs');
2 | const transformStream = require('stream');
3 | let fileStream = fs.createReadStream(__dirname + "/input.txt");
4 | let outputStream = process.stdout;
5 | // readstream.pipe(writestream)
6 | let middleStream = new transformStream.Transform({
7 | transform(chunk, enc, nextCB) {
8 | let modifiedChunk = chunk.toString().toUpperCase();
9 | this.push(modifiedChunk);
10 | setTimeout(nextCB, 1000);
11 | // nextCB();
12 | }
13 | });
14 | // fileStream.pipe(outputStream);
15 | let newReadableStream = fileStream.pipe(middleStream);
16 | newReadableStream.pipe(outputStream);
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/.bin/telegraf:
--------------------------------------------------------------------------------
1 | ../telegraf/lib/cli.mjs
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/abort-controller/browser.js:
--------------------------------------------------------------------------------
1 | /*globals self, window */
2 | "use strict"
3 |
4 | /*eslint-disable @mysticatea/prettier */
5 | const { AbortController, AbortSignal } =
6 | typeof self !== "undefined" ? self :
7 | typeof window !== "undefined" ? window :
8 | /* otherwise */ undefined
9 | /*eslint-enable @mysticatea/prettier */
10 |
11 | module.exports = AbortController
12 | module.exports.AbortSignal = AbortSignal
13 | module.exports.default = AbortController
14 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/abort-controller/browser.mjs:
--------------------------------------------------------------------------------
1 | /*globals self, window */
2 |
3 | /*eslint-disable @mysticatea/prettier */
4 | const { AbortController, AbortSignal } =
5 | typeof self !== "undefined" ? self :
6 | typeof window !== "undefined" ? window :
7 | /* otherwise */ undefined
8 | /*eslint-enable @mysticatea/prettier */
9 |
10 | export default AbortController
11 | export { AbortController, AbortSignal }
12 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/abort-controller/polyfill.js:
--------------------------------------------------------------------------------
1 | /*globals require, self, window */
2 | "use strict"
3 |
4 | const ac = require("./dist/abort-controller")
5 |
6 | /*eslint-disable @mysticatea/prettier */
7 | const g =
8 | typeof self !== "undefined" ? self :
9 | typeof window !== "undefined" ? window :
10 | typeof global !== "undefined" ? global :
11 | /* otherwise */ undefined
12 | /*eslint-enable @mysticatea/prettier */
13 |
14 | if (g) {
15 | if (typeof g.AbortController === "undefined") {
16 | g.AbortController = ac.AbortController
17 | }
18 | if (typeof g.AbortSignal === "undefined") {
19 | g.AbortSignal = ac.AbortSignal
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/abort-controller/polyfill.mjs:
--------------------------------------------------------------------------------
1 | /*globals self, window */
2 | import * as ac from "./dist/abort-controller"
3 |
4 | /*eslint-disable @mysticatea/prettier */
5 | const g =
6 | typeof self !== "undefined" ? self :
7 | typeof window !== "undefined" ? window :
8 | typeof global !== "undefined" ? global :
9 | /* otherwise */ undefined
10 | /*eslint-enable @mysticatea/prettier */
11 |
12 | if (g) {
13 | if (typeof g.AbortController === "undefined") {
14 | g.AbortController = ac.AbortController
15 | }
16 | if (typeof g.AbortSignal === "undefined") {
17 | g.AbortSignal = ac.AbortSignal
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/index.js:
--------------------------------------------------------------------------------
1 | module.exports =
2 | {
3 | parallel : require('./parallel.js'),
4 | serial : require('./serial.js'),
5 | serialOrdered : require('./serialOrdered.js')
6 | };
7 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/lib/abort.js:
--------------------------------------------------------------------------------
1 | // API
2 | module.exports = abort;
3 |
4 | /**
5 | * Aborts leftover active jobs
6 | *
7 | * @param {object} state - current state object
8 | */
9 | function abort(state)
10 | {
11 | Object.keys(state.jobs).forEach(clean.bind(state));
12 |
13 | // reset leftover jobs
14 | state.jobs = {};
15 | }
16 |
17 | /**
18 | * Cleans up leftover job by invoking abort function for the provided job id
19 | *
20 | * @this state
21 | * @param {string|number} key - job id to abort
22 | */
23 | function clean(key)
24 | {
25 | if (typeof this.jobs[key] == 'function')
26 | {
27 | this.jobs[key]();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/lib/async.js:
--------------------------------------------------------------------------------
1 | var defer = require('./defer.js');
2 |
3 | // API
4 | module.exports = async;
5 |
6 | /**
7 | * Runs provided callback asynchronously
8 | * even if callback itself is not
9 | *
10 | * @param {function} callback - callback to invoke
11 | * @returns {function} - augmented callback
12 | */
13 | function async(callback)
14 | {
15 | var isAsync = false;
16 |
17 | // check if async happened
18 | defer(function() { isAsync = true; });
19 |
20 | return function async_callback(err, result)
21 | {
22 | if (isAsync)
23 | {
24 | callback(err, result);
25 | }
26 | else
27 | {
28 | defer(function nextTick_callback()
29 | {
30 | callback(err, result);
31 | });
32 | }
33 | };
34 | }
35 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/lib/defer.js:
--------------------------------------------------------------------------------
1 | module.exports = defer;
2 |
3 | /**
4 | * Runs provided function on next iteration of the event loop
5 | *
6 | * @param {function} fn - function to run
7 | */
8 | function defer(fn)
9 | {
10 | var nextTick = typeof setImmediate == 'function'
11 | ? setImmediate
12 | : (
13 | typeof process == 'object' && typeof process.nextTick == 'function'
14 | ? process.nextTick
15 | : null
16 | );
17 |
18 | if (nextTick)
19 | {
20 | nextTick(fn);
21 | }
22 | else
23 | {
24 | setTimeout(fn, 0);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/lib/readable_parallel.js:
--------------------------------------------------------------------------------
1 | var parallel = require('../parallel.js');
2 |
3 | // API
4 | module.exports = ReadableParallel;
5 |
6 | /**
7 | * Streaming wrapper to `asynckit.parallel`
8 | *
9 | * @param {array|object} list - array or object (named list) to iterate over
10 | * @param {function} iterator - iterator to run
11 | * @param {function} callback - invoked when all elements processed
12 | * @returns {stream.Readable#}
13 | */
14 | function ReadableParallel(list, iterator, callback)
15 | {
16 | if (!(this instanceof ReadableParallel))
17 | {
18 | return new ReadableParallel(list, iterator, callback);
19 | }
20 |
21 | // turn on object mode
22 | ReadableParallel.super_.call(this, {objectMode: true});
23 |
24 | this._start(parallel, list, iterator, callback);
25 | }
26 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/lib/readable_serial.js:
--------------------------------------------------------------------------------
1 | var serial = require('../serial.js');
2 |
3 | // API
4 | module.exports = ReadableSerial;
5 |
6 | /**
7 | * Streaming wrapper to `asynckit.serial`
8 | *
9 | * @param {array|object} list - array or object (named list) to iterate over
10 | * @param {function} iterator - iterator to run
11 | * @param {function} callback - invoked when all elements processed
12 | * @returns {stream.Readable#}
13 | */
14 | function ReadableSerial(list, iterator, callback)
15 | {
16 | if (!(this instanceof ReadableSerial))
17 | {
18 | return new ReadableSerial(list, iterator, callback);
19 | }
20 |
21 | // turn on object mode
22 | ReadableSerial.super_.call(this, {objectMode: true});
23 |
24 | this._start(serial, list, iterator, callback);
25 | }
26 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/lib/terminator.js:
--------------------------------------------------------------------------------
1 | var abort = require('./abort.js')
2 | , async = require('./async.js')
3 | ;
4 |
5 | // API
6 | module.exports = terminator;
7 |
8 | /**
9 | * Terminates jobs in the attached state context
10 | *
11 | * @this AsyncKitState#
12 | * @param {function} callback - final callback to invoke after termination
13 | */
14 | function terminator(callback)
15 | {
16 | if (!Object.keys(this.jobs).length)
17 | {
18 | return;
19 | }
20 |
21 | // fast forward iteration index
22 | this.index = this.size;
23 |
24 | // abort jobs
25 | abort(this);
26 |
27 | // send back results we have so far
28 | async(callback)(null, this.results);
29 | }
30 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/serial.js:
--------------------------------------------------------------------------------
1 | var serialOrdered = require('./serialOrdered.js');
2 |
3 | // Public API
4 | module.exports = serial;
5 |
6 | /**
7 | * Runs iterator over provided array elements in series
8 | *
9 | * @param {array|object} list - array or object (named list) to iterate over
10 | * @param {function} iterator - iterator to run
11 | * @param {function} callback - invoked when all elements processed
12 | * @returns {function} - jobs terminator
13 | */
14 | function serial(list, iterator, callback)
15 | {
16 | return serialOrdered(list, iterator, null, callback);
17 | }
18 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/asynckit/stream.js:
--------------------------------------------------------------------------------
1 | var inherits = require('util').inherits
2 | , Readable = require('stream').Readable
3 | , ReadableAsyncKit = require('./lib/readable_asynckit.js')
4 | , ReadableParallel = require('./lib/readable_parallel.js')
5 | , ReadableSerial = require('./lib/readable_serial.js')
6 | , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
7 | ;
8 |
9 | // API
10 | module.exports =
11 | {
12 | parallel : ReadableParallel,
13 | serial : ReadableSerial,
14 | serialOrdered : ReadableSerialOrdered,
15 | };
16 |
17 | inherits(ReadableAsyncKit, Readable);
18 |
19 | inherits(ReadableParallel, ReadableAsyncKit);
20 | inherits(ReadableSerial, ReadableAsyncKit);
21 | inherits(ReadableSerialOrdered, ReadableAsyncKit);
22 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Reporting a Vulnerability
2 |
3 | If you discover a security vulnerability in axios please disclose it via [our huntr page](https://huntr.dev/repos/axios/axios/). Bounty eligibility, CVE assignment, response times and past reports are all there.
4 |
5 |
6 | Thank you for improving the security of axios.
7 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/UPGRADE_GUIDE.md:
--------------------------------------------------------------------------------
1 | # Upgrade Guide
2 |
3 | ## 0.x.x -> 1.1.0
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/bin/ssl_hotfix.js:
--------------------------------------------------------------------------------
1 | import {spawn} from 'child_process';
2 |
3 | const args = process.argv.slice(2);
4 |
5 | console.log(`Running ${args.join(' ')} on ${process.version}\n`);
6 |
7 | const match = /v(\d+)/.exec(process.version);
8 |
9 | const isHotfixNeeded = match && match[1] > 16;
10 |
11 | isHotfixNeeded && console.warn('Setting --openssl-legacy-provider as ssl hotfix');
12 |
13 | const test = spawn('cross-env',
14 | isHotfixNeeded ? ['NODE_OPTIONS=--openssl-legacy-provider', ...args] : args, {
15 | shell: true,
16 | stdio: 'inherit'
17 | }
18 | );
19 |
20 | test.on('exit', function (code) {
21 | process.exit(code)
22 | })
23 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/index.js:
--------------------------------------------------------------------------------
1 | import axios from './lib/axios.js';
2 |
3 | // Keep top-level export same with static properties
4 | // so that it can keep same with es module or cjs
5 | const {
6 | Axios,
7 | AxiosError,
8 | CanceledError,
9 | isCancel,
10 | CancelToken,
11 | VERSION,
12 | all,
13 | Cancel,
14 | isAxiosError,
15 | spread,
16 | toFormData
17 | } = axios;
18 |
19 | export default axios;
20 | export {
21 | Axios,
22 | AxiosError,
23 | CanceledError,
24 | isCancel,
25 | CancelToken,
26 | VERSION,
27 | all,
28 | Cancel,
29 | isAxiosError,
30 | spread,
31 | toFormData
32 | }
33 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/cancel/isCancel.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default function isCancel(value) {
4 | return !!(value && value.__CANCEL__);
5 | }
6 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/core/README.md:
--------------------------------------------------------------------------------
1 | # axios // core
2 |
3 | The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are:
4 |
5 | - Dispatching requests
6 | - Requests sent via `adapters/` (see lib/adapters/README.md)
7 | - Managing interceptors
8 | - Handling config
9 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/core/buildFullPath.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import isAbsoluteURL from '../helpers/isAbsoluteURL.js';
4 | import combineURLs from '../helpers/combineURLs.js';
5 |
6 | /**
7 | * Creates a new URL by combining the baseURL with the requestedURL,
8 | * only when the requestedURL is not already an absolute URL.
9 | * If the requestURL is absolute, this function returns the requestedURL untouched.
10 | *
11 | * @param {string} baseURL The base URL
12 | * @param {string} requestedURL Absolute or relative URL to combine
13 | *
14 | * @returns {string} The combined full path
15 | */
16 | export default function buildFullPath(baseURL, requestedURL) {
17 | if (baseURL && !isAbsoluteURL(requestedURL)) {
18 | return combineURLs(baseURL, requestedURL);
19 | }
20 | return requestedURL;
21 | }
22 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/defaults/transitional.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default {
4 | silentJSONParsing: true,
5 | forcedJSONParsing: true,
6 | clarifyTimeoutError: false
7 | };
8 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/env/README.md:
--------------------------------------------------------------------------------
1 | # axios // env
2 |
3 | The `data.js` file is updated automatically when the package version is upgrading. Please do not edit it manually.
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/env/classes/FormData.js:
--------------------------------------------------------------------------------
1 | import FormData from 'form-data';
2 | export default FormData;
3 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/env/data.js:
--------------------------------------------------------------------------------
1 | export const VERSION = "1.1.3";
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/README.md:
--------------------------------------------------------------------------------
1 | # axios // helpers
2 |
3 | The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like:
4 |
5 | - Browser polyfills
6 | - Managing cookies
7 | - Parsing HTTP headers
8 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/bind.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default function bind(fn, thisArg) {
4 | return function wrap() {
5 | return fn.apply(thisArg, arguments);
6 | };
7 | }
8 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/combineURLs.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Creates a new URL by combining the specified URLs
5 | *
6 | * @param {string} baseURL The base URL
7 | * @param {string} relativeURL The relative URL
8 | *
9 | * @returns {string} The combined URL
10 | */
11 | export default function combineURLs(baseURL, relativeURL) {
12 | return relativeURL
13 | ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
14 | : baseURL;
15 | }
16 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/isAbsoluteURL.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Determines whether the specified URL is absolute
5 | *
6 | * @param {string} url The URL to test
7 | *
8 | * @returns {boolean} True if the specified URL is absolute, otherwise false
9 | */
10 | export default function isAbsoluteURL(url) {
11 | // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL).
12 | // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
13 | // by any combination of letters, digits, plus, period, or hyphen.
14 | return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
15 | }
16 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/isAxiosError.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import utils from './../utils.js';
4 |
5 | /**
6 | * Determines whether the payload is an error thrown by Axios
7 | *
8 | * @param {*} payload The value to test
9 | *
10 | * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
11 | */
12 | export default function isAxiosError(payload) {
13 | return utils.isObject(payload) && (payload.isAxiosError === true);
14 | }
15 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/null.js:
--------------------------------------------------------------------------------
1 | // eslint-disable-next-line strict
2 | export default null;
3 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/parseProtocol.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default function parseProtocol(url) {
4 | const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
5 | return match && match[1] || '';
6 | }
7 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/spread.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * Syntactic sugar for invoking a function and expanding an array for arguments.
5 | *
6 | * Common use case would be to use `Function.prototype.apply`.
7 | *
8 | * ```js
9 | * function f(x, y, z) {}
10 | * var args = [1, 2, 3];
11 | * f.apply(null, args);
12 | * ```
13 | *
14 | * With `spread` this example can be re-written.
15 | *
16 | * ```js
17 | * spread(function(x, y, z) {})([1, 2, 3]);
18 | * ```
19 | *
20 | * @param {Function} callback
21 | *
22 | * @returns {Function}
23 | */
24 | export default function spread(callback) {
25 | return function wrap(arr) {
26 | return callback.apply(null, arr);
27 | };
28 | }
29 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/helpers/toURLEncodedForm.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import utils from '../utils.js';
4 | import toFormData from './toFormData.js';
5 | import platform from '../platform/index.js';
6 |
7 | export default function toURLEncodedForm(data, options) {
8 | return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
9 | visitor: function(value, key, path, helpers) {
10 | if (platform.isNode && utils.isBuffer(value)) {
11 | this.append(key, value.toString('base64'));
12 | return false;
13 | }
14 |
15 | return helpers.defaultVisitor.apply(this, arguments);
16 | }
17 | }, options));
18 | }
19 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/platform/browser/classes/FormData.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | export default FormData;
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';
4 | export default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
5 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/platform/index.js:
--------------------------------------------------------------------------------
1 | import platform from './node/index.js';
2 |
3 | export {platform as default}
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/platform/node/classes/FormData.js:
--------------------------------------------------------------------------------
1 | import FormData from 'form-data';
2 |
3 | export default FormData;
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | import url from 'url';
4 | export default url.URLSearchParams;
5 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/lib/platform/node/index.js:
--------------------------------------------------------------------------------
1 | import URLSearchParams from './classes/URLSearchParams.js'
2 | import FormData from './classes/FormData.js'
3 |
4 | export default {
5 | isNode: true,
6 | classes: {
7 | URLSearchParams,
8 | FormData,
9 | Blob: typeof Blob !== 'undefined' && Blob || null
10 | },
11 | protocols: [ 'http', 'https', 'file', 'data' ]
12 | };
13 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "es2015",
4 | "lib": ["dom", "es2015"],
5 | "types": [],
6 | "moduleResolution": "node",
7 | "strict": true,
8 | "noEmit": true,
9 | "baseUrl": ".",
10 | "paths": {
11 | "axios": ["."]
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/axios/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "dtslint/dtslint.json",
3 | "rules": {
4 | "no-unnecessary-generics": false
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/buffer-alloc-unsafe/index.js:
--------------------------------------------------------------------------------
1 | function allocUnsafe (size) {
2 | if (typeof size !== 'number') {
3 | throw new TypeError('"size" argument must be a number')
4 | }
5 |
6 | if (size < 0) {
7 | throw new RangeError('"size" argument must not be negative')
8 | }
9 |
10 | if (Buffer.allocUnsafe) {
11 | return Buffer.allocUnsafe(size)
12 | } else {
13 | return new Buffer(size)
14 | }
15 | }
16 |
17 | module.exports = allocUnsafe
18 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/buffer-alloc-unsafe/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "buffer-alloc-unsafe",
3 | "version": "1.1.0",
4 | "license": "MIT",
5 | "repository": "LinusU/buffer-alloc-unsafe",
6 | "files": [
7 | "index.js"
8 | ],
9 | "scripts": {
10 | "test": "standard && node test"
11 | },
12 | "devDependencies": {
13 | "standard": "^7.1.2"
14 | },
15 | "keywords": [
16 | "allocUnsafe",
17 | "allocate",
18 | "buffer allocUnsafe",
19 | "buffer unsafe allocate",
20 | "buffer",
21 | "ponyfill",
22 | "unsafe allocate"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/buffer-alloc/index.js:
--------------------------------------------------------------------------------
1 | var bufferFill = require('buffer-fill')
2 | var allocUnsafe = require('buffer-alloc-unsafe')
3 |
4 | module.exports = function alloc (size, fill, encoding) {
5 | if (typeof size !== 'number') {
6 | throw new TypeError('"size" argument must be a number')
7 | }
8 |
9 | if (size < 0) {
10 | throw new RangeError('"size" argument must not be negative')
11 | }
12 |
13 | if (Buffer.alloc) {
14 | return Buffer.alloc(size, fill, encoding)
15 | }
16 |
17 | var buffer = allocUnsafe(size)
18 |
19 | if (size === 0) {
20 | return buffer
21 | }
22 |
23 | if (fill === undefined) {
24 | return bufferFill(buffer, 0)
25 | }
26 |
27 | if (typeof encoding !== 'string') {
28 | encoding = undefined
29 | }
30 |
31 | return bufferFill(buffer, fill, encoding)
32 | }
33 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/buffer-alloc/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "buffer-alloc",
3 | "version": "1.2.0",
4 | "license": "MIT",
5 | "repository": "LinusU/buffer-alloc",
6 | "files": [
7 | "index.js"
8 | ],
9 | "scripts": {
10 | "test": "standard && node test"
11 | },
12 | "dependencies": {
13 | "buffer-alloc-unsafe": "^1.1.0",
14 | "buffer-fill": "^1.0.0"
15 | },
16 | "devDependencies": {
17 | "standard": "^7.1.2"
18 | },
19 | "keywords": [
20 | "alloc",
21 | "allocate",
22 | "buffer alloc",
23 | "buffer allocate",
24 | "buffer"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/buffer-fill/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "buffer-fill",
3 | "version": "1.0.0",
4 | "license": "MIT",
5 | "repository": "LinusU/buffer-fill",
6 | "files": [
7 | "index.js"
8 | ],
9 | "scripts": {
10 | "test": "standard && node test"
11 | },
12 | "devDependencies": {
13 | "buffer-alloc-unsafe": "^1.1.0",
14 | "standard": "^7.1.2"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/combined-stream/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Felix Geisendörfer (http://debuggable.com/)",
3 | "name": "combined-stream",
4 | "description": "A stream that emits multiple other streams one after another.",
5 | "version": "1.0.8",
6 | "homepage": "https://github.com/felixge/node-combined-stream",
7 | "repository": {
8 | "type": "git",
9 | "url": "git://github.com/felixge/node-combined-stream.git"
10 | },
11 | "main": "./lib/combined_stream",
12 | "scripts": {
13 | "test": "node test/run.js"
14 | },
15 | "engines": {
16 | "node": ">= 0.8"
17 | },
18 | "dependencies": {
19 | "delayed-stream": "~1.0.0"
20 | },
21 | "devDependencies": {
22 | "far": "~0.0.7"
23 | },
24 | "license": "MIT"
25 | }
26 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/combined-stream/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | delayed-stream@~1.0.0:
6 | version "1.0.0"
7 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
8 |
9 | far@~0.0.7:
10 | version "0.0.7"
11 | resolved "https://registry.yarnpkg.com/far/-/far-0.0.7.tgz#01c1fd362bcd26ce9cf161af3938aa34619f79a7"
12 | dependencies:
13 | oop "0.0.3"
14 |
15 | oop@0.0.3:
16 | version "0.0.3"
17 | resolved "https://registry.yarnpkg.com/oop/-/oop-0.0.3.tgz#70fa405a5650891a194fdc82ca68dad6dabf4401"
18 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer / nwjs process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/delayed-stream/.npmignore:
--------------------------------------------------------------------------------
1 | test
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/delayed-stream/Makefile:
--------------------------------------------------------------------------------
1 | SHELL := /bin/bash
2 |
3 | test:
4 | @./test/run.js
5 |
6 | .PHONY: test
7 |
8 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/delayed-stream/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Felix Geisendörfer (http://debuggable.com/)",
3 | "contributors": [
4 | "Mike Atkins "
5 | ],
6 | "name": "delayed-stream",
7 | "description": "Buffers events from a stream until you are ready to handle them.",
8 | "license": "MIT",
9 | "version": "1.0.0",
10 | "homepage": "https://github.com/felixge/node-delayed-stream",
11 | "repository": {
12 | "type": "git",
13 | "url": "git://github.com/felixge/node-delayed-stream.git"
14 | },
15 | "main": "./lib/delayed_stream",
16 | "engines": {
17 | "node": ">=0.4.0"
18 | },
19 | "scripts": {
20 | "test": "make test"
21 | },
22 | "dependencies": {},
23 | "devDependencies": {
24 | "fake": "0.2.0",
25 | "far": "0.0.1"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/follow-redirects/debug.js:
--------------------------------------------------------------------------------
1 | var debug;
2 |
3 | module.exports = function () {
4 | if (!debug) {
5 | try {
6 | /* eslint global-require: off */
7 | debug = require("debug")("follow-redirects");
8 | }
9 | catch (error) { /* */ }
10 | if (typeof debug !== "function") {
11 | debug = function () { /* */ };
12 | }
13 | }
14 | debug.apply(null, arguments);
15 | };
16 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/follow-redirects/http.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./").http;
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/follow-redirects/https.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./").https;
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/form-data/lib/browser.js:
--------------------------------------------------------------------------------
1 | /* eslint-env browser */
2 | module.exports = typeof self == 'object' ? self.FormData : window.FormData;
3 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/form-data/lib/populate.js:
--------------------------------------------------------------------------------
1 | // populates missing values
2 | module.exports = function(dst, src) {
3 |
4 | Object.keys(src).forEach(function(prop)
5 | {
6 | dst[prop] = dst[prop] || src[prop];
7 | });
8 |
9 | return dst;
10 | };
11 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * Copyright(c) 2015-2022 Douglas Christopher Wilson
5 | * MIT Licensed
6 | */
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = require('./db.json')
13 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/mri/index.d.ts:
--------------------------------------------------------------------------------
1 | type Dict = Record;
2 | type Arrayable = T | T[];
3 | type Default = Dict;
4 |
5 | declare function mri(args?: string[], options?: mri.Options): mri.Argv;
6 |
7 | declare namespace mri {
8 | export interface Options {
9 | boolean?: Arrayable;
10 | string?: Arrayable;
11 | alias?: Dict>;
12 | default?: Dict;
13 | unknown?(flag: string): void;
14 | }
15 |
16 | export type Argv = T & {
17 | _: string[];
18 | }
19 | }
20 |
21 | export = mri;
22 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/proxy-from-env/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - node
4 | - lts/*
5 | script:
6 | - npm run lint
7 | # test-coverage will also run the tests, but does not print helpful output upon test failure.
8 | # So we also run the tests separately.
9 | - npm run test
10 | - npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage
11 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/sandwich-stream/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_size = 4
6 | indent_style = space
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.md]
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/sandwich-stream/LICENCE:
--------------------------------------------------------------------------------
1 | Copyright 2013 Paul Connolley (connrs)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/format.d.ts:
--------------------------------------------------------------------------------
1 | export * from './typings/format'
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/format.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/format')
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/future.d.ts:
--------------------------------------------------------------------------------
1 | export * from './typings/future'
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/future.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/future')
2 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/lib/core/helpers/compact.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.compactOptions = void 0;
4 | function compactOptions(options) {
5 | if (!options) {
6 | return options;
7 | }
8 | const keys = Object.keys(options);
9 | const compactKeys = keys.filter((key) => options[key] !== undefined);
10 | const compactEntries = compactKeys.map((key) => [key, options[key]]);
11 | return Object.fromEntries(compactEntries);
12 | }
13 | exports.compactOptions = compactOptions;
14 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/lib/core/network/error.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.TelegramError = void 0;
4 | class TelegramError extends Error {
5 | constructor(response, on = {}) {
6 | super(`${response.error_code}: ${response.description}`);
7 | this.response = response;
8 | this.on = on;
9 | }
10 | get code() {
11 | return this.response.error_code;
12 | }
13 | get description() {
14 | return this.response.description;
15 | }
16 | get parameters() {
17 | return this.response.parameters;
18 | }
19 | }
20 | exports.TelegramError = TelegramError;
21 | exports.default = TelegramError;
22 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/lib/deunionize.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.deunionize = void 0;
4 | /**
5 | * Expose properties from all union variants.
6 | * @deprectated
7 | * @see https://github.com/telegraf/telegraf/issues/1388#issuecomment-791573609
8 | * @see https://millsp.github.io/ts-toolbelt/modules/union_strict.html
9 | */
10 | function deunionize(t) {
11 | return t;
12 | }
13 | exports.deunionize = deunionize;
14 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/lib/middleware.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/lib/telegram-types.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | /** @format */
3 | Object.defineProperty(exports, "__esModule", { value: true });
4 | exports.Markup = void 0;
5 | var markup_1 = require("./markup");
6 | Object.defineProperty(exports, "Markup", { enumerable: true, get: function () { return markup_1.Markup; } });
7 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/src/core/helpers/compact.ts:
--------------------------------------------------------------------------------
1 | export function compactOptions(
2 | options?: T
3 | ): T | undefined {
4 | if (!options) {
5 | return options
6 | }
7 |
8 | const keys = Object.keys(options) as Array
9 | const compactKeys = keys.filter((key) => options[key] !== undefined)
10 | const compactEntries = compactKeys.map((key) => [key, options[key]])
11 | return Object.fromEntries(compactEntries)
12 | }
13 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/src/core/network/error.ts:
--------------------------------------------------------------------------------
1 | import { ResponseParameters } from '../types/typegram'
2 |
3 | interface ErrorPayload {
4 | error_code: number
5 | description: string
6 | parameters?: ResponseParameters
7 | }
8 | export class TelegramError extends Error {
9 | constructor(readonly response: ErrorPayload, readonly on = {}) {
10 | super(`${response.error_code}: ${response.description}`)
11 | }
12 |
13 | get code() {
14 | return this.response.error_code
15 | }
16 |
17 | get description() {
18 | return this.response.description
19 | }
20 |
21 | get parameters() {
22 | return this.response.parameters
23 | }
24 | }
25 |
26 | export default TelegramError
27 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/src/index.ts:
--------------------------------------------------------------------------------
1 | export { Telegraf } from './telegraf'
2 | export { Context, NarrowedContext } from './context'
3 | export { Composer } from './composer'
4 | export { Middleware, MiddlewareFn, MiddlewareObj } from './middleware'
5 | export { Router } from './router'
6 | export { TelegramError } from './core/network/error'
7 | export { Telegram } from './telegram'
8 | export * as Types from './telegram-types'
9 |
10 | export * as Markup from './markup'
11 | export * as Input from './input'
12 | export * as Format from './format'
13 |
14 | export { deunionize } from './deunionize'
15 | export { session, MemorySessionStore } from './session'
16 |
17 | export * as Scenes from './scenes'
18 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/src/middleware.ts:
--------------------------------------------------------------------------------
1 | import { Context } from './context'
2 |
3 | /*
4 | next's parameter is in a contravariant position, and thus, trying to type it
5 | prevents assigning `MiddlewareFn`
6 | to `MiddlewareFn`.
7 | Middleware passing the parameter should be a separate type instead.
8 | */
9 | export type MiddlewareFn = (
10 | ctx: C,
11 | next: () => Promise
12 | ) => Promise | void
13 |
14 | export interface MiddlewareObj {
15 | middleware: () => MiddlewareFn
16 | }
17 |
18 | export type Middleware = MiddlewareFn | MiddlewareObj
19 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/src/scenes/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @see https://github.com/telegraf/telegraf/issues/705#issuecomment-549056045
3 | * @see https://www.npmjs.com/package/telegraf-stateless-question
4 | * @packageDocumentation
5 | */
6 |
7 | export { Stage } from './stage'
8 | export {
9 | SceneContext,
10 | SceneSession,
11 | default as SceneContextScene,
12 | SceneSessionData,
13 | } from './context'
14 | export { BaseScene } from './base'
15 | export { WizardScene } from './wizard'
16 | export {
17 | WizardContext,
18 | WizardSession,
19 | default as WizardContextWizard,
20 | WizardSessionData,
21 | } from './wizard/context'
22 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/types.d.ts:
--------------------------------------------------------------------------------
1 | /** Experimental exports, shape of type exports may change in the future */
2 | export * from './typings/core/types/typegram'
3 | export * as Convenience from './typings/telegram-types'
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/types.js:
--------------------------------------------------------------------------------
1 | // Just an empty export to allow eslint to think there's an actual module here
2 | // types.d.ts is the file we actually want to import
3 | module.exports = {}
4 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/helpers/compact.d.ts:
--------------------------------------------------------------------------------
1 | export declare function compactOptions(options?: T): T | undefined;
4 | //# sourceMappingURL=compact.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/helpers/compact.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"compact.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/compact.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EACjE,OAAO,CAAC,EAAE,CAAC,GACV,CAAC,GAAG,SAAS,CASf"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/error.d.ts:
--------------------------------------------------------------------------------
1 | import { ResponseParameters } from '../types/typegram';
2 | interface ErrorPayload {
3 | error_code: number;
4 | description: string;
5 | parameters?: ResponseParameters;
6 | }
7 | export declare class TelegramError extends Error {
8 | readonly response: ErrorPayload;
9 | readonly on: {};
10 | constructor(response: ErrorPayload, on?: {});
11 | get code(): number;
12 | get description(): string;
13 | get parameters(): ResponseParameters | undefined;
14 | }
15 | export default TelegramError;
16 | //# sourceMappingURL=error.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/error.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/core/network/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEtD,UAAU,YAAY;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC;AACD,qBAAa,aAAc,SAAQ,KAAK;IAC1B,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAAE,QAAQ,CAAC,EAAE;gBAAnC,QAAQ,EAAE,YAAY,EAAW,EAAE,KAAK;IAI7D,IAAI,IAAI,WAEP;IAED,IAAI,WAAW,WAEd;IAED,IAAI,UAAU,mCAEb;CACF;AAED,eAAe,aAAa,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/multipart-stream.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | import SandwichStream from 'sandwich-stream';
4 | interface Part {
5 | headers: {
6 | [key: string]: string;
7 | };
8 | body: NodeJS.ReadStream | NodeJS.ReadableStream | string;
9 | }
10 | declare class MultipartStream extends SandwichStream {
11 | constructor(boundary: string);
12 | addPart(part: Part): void;
13 | static isStream(stream: unknown): stream is {
14 | pipe: MultipartStream['pipe'];
15 | };
16 | }
17 | export default MultipartStream;
18 | //# sourceMappingURL=multipart-stream.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/multipart-stream.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"multipart-stream.d.ts","sourceRoot":"","sources":["../../../src/core/network/multipart-stream.ts"],"names":[],"mappings":";;AAEA,OAAO,cAAc,MAAM,iBAAiB,CAAA;AAG5C,UAAU,IAAI;IACZ,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IAClC,IAAI,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,cAAc,GAAG,MAAM,CAAA;CACzD;AAED,cAAM,eAAgB,SAAQ,cAAc;gBAC9B,QAAQ,EAAE,MAAM;IAQ5B,OAAO,CAAC,IAAI,EAAE,IAAI;IAclB,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,OAAO,GACd,MAAM,IAAI;QAAE,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;KAAE;CAO/C;AAED,eAAe,eAAe,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/polling.d.ts:
--------------------------------------------------------------------------------
1 | import * as tg from '../types/typegram';
2 | import * as tt from '../../telegram-types';
3 | import ApiClient from './client';
4 | export declare class Polling {
5 | private readonly telegram;
6 | private readonly allowedUpdates;
7 | private readonly abortController;
8 | private skipOffsetSync;
9 | private offset;
10 | constructor(telegram: ApiClient, allowedUpdates: readonly tt.UpdateType[]);
11 | private [Symbol.asyncIterator];
12 | private syncUpdateOffset;
13 | loop(handleUpdate: (updates: tg.Update) => Promise): Promise;
14 | stop(): void;
15 | }
16 | //# sourceMappingURL=polling.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/polling.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"polling.d.ts","sourceRoot":"","sources":["../../../src/core/network/polling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE1C,OAAO,SAAS,MAAM,UAAU,CAAA;AAWhC,qBAAa,OAAO;IAKhB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc;IALjC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAwB;IACxD,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,MAAM,CAAI;gBAEC,QAAQ,EAAE,SAAS,EACnB,cAAc,EAAE,SAAS,EAAE,CAAC,UAAU,EAAE;YAG5C,CAAC,MAAM,CAAC,aAAa,CAAC;YA+CvB,gBAAgB;IAMxB,IAAI,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;IAc9D,IAAI;CAGL"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/webhook.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import * as http from 'http';
3 | import { type Update } from '../types/typegram';
4 | export default function generateWebhook(filter: (req: http.IncomingMessage) => boolean, updateHandler: (update: Update, res: http.ServerResponse) => Promise): (req: http.IncomingMessage & {
5 | body?: Update;
6 | }, res: http.ServerResponse, next?: () => void) => Promise;
7 | //# sourceMappingURL=webhook.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/core/network/webhook.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../src/core/network/webhook.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,KAAK,OAAO,EAC9C,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,SAGnE,KAAK,eAAe,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,OACxC,KAAK,cAAc,eACb,IAAI,KAKd,QAAQ,IAAI,CAAC,CAwCjB"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/deunionize.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"deunionize.d.ts","sourceRoot":"","sources":["../src/deunionize.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,CAChB,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,CAAC,GAAG,SAAS,IACX,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAEpD,oBAAY,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,MAAM,CAAC,GAAG,KAAK,CAAA;AAE9D,aAAK,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI;IAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK;CAAE,CAAA;AAE3E;;GAEG;AACH,oBAAY,UAAU,CACpB,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,CAAC,GAAG,CAAC,IACb,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAE9E;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,oBAE5D"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/format.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAuB,MAAM,2BAA2B,CAAA;AAE1E,OAAO,EAAE,SAAS,EAAE,CAAA;AAEpB,eAAO,MAAM,GAAG,mHAAqB,CAAA;AACrC,eAAO,MAAM,IAAI,mHAAe,CAAA;AAChC,eAAO,MAAM,MAAM,mHAAiB,CAAA;AACpC,eAAO,MAAM,OAAO,mHAAkB,CAAA;AACtC,eAAO,MAAM,aAAa,mHAAwB,CAAA;AAClD,eAAO,MAAM,SAAS,mHAAoB,CAAA;AAC1C,eAAO,MAAM,IAAI,qGAAe,CAAA;AAChC,eAAO,MAAM,GAAG,aAAc,MAAM,wGAA8B,CAAA;AAElE,eAAO,MAAM,IAAI,YAAa,MAAM,GAAG,SAAS,OAAO,MAAM,cACT,CAAA;AAEpD,eAAO,MAAM,OAAO,SAAU,MAAM,GAAG,SAAS,QAAQ,MAAM,GAAG,IAAI,cAGZ,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/future.d.ts:
--------------------------------------------------------------------------------
1 | import Context from './context';
2 | import { Middleware } from './middleware';
3 | /**
4 | * Sets up Context to use the new reply methods.
5 | * This middleware makes `ctx.reply()` and `ctx.replyWith*()` methods will actually reply to the message they are replying to.
6 | * Use `ctx.sendMessage()` to send a message in chat without replying to it.
7 | *
8 | * If the message to reply is deleted, `reply()` will send a normal message.
9 | * If the update is not a message and we are unable to reply, `reply()` will send a normal message.
10 | */
11 | export declare function useNewReplies(): Middleware;
12 | //# sourceMappingURL=future.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/future.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"future.d.ts","sourceRoot":"","sources":["../src/future.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA2KzC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,CA0BhE"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | export { Telegraf } from './telegraf';
2 | export { Context, NarrowedContext } from './context';
3 | export { Composer } from './composer';
4 | export { Middleware, MiddlewareFn, MiddlewareObj } from './middleware';
5 | export { Router } from './router';
6 | export { TelegramError } from './core/network/error';
7 | export { Telegram } from './telegram';
8 | export * as Types from './telegram-types';
9 | export * as Markup from './markup';
10 | export * as Input from './input';
11 | export * as Format from './format';
12 | export { deunionize } from './deunionize';
13 | export { session, MemorySessionStore } from './session';
14 | export * as Scenes from './scenes';
15 | //# sourceMappingURL=index.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/index.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/input.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/input.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;;;GAIG;AAEH,eAAO,MAAM,aAAa,SAAU,MAAM,aAAa,MAAM,KAAG,SAAyC,CAAA;AAEzG;;;;GAIG;AAEH,eAAO,MAAM,UAAU,WAAY,MAAM,aAAa,MAAM,KAAG,SAA2C,CAAA;AAE1G;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,WAAY,qBAAqB,aAAa,MAAM,KAAG,SAA2C,CAAA;AAEjI;;;;GAIG;AAEH,eAAO,MAAM,aAAa,QAAS,MAAM,GAAG,GAAG,aAAa,MAAM,KAAG,SAAgD,CAAA;AAErH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,QAAS,MAAM,GAAG,GAAG,KAAG,MAAwB,CAAA;AAEpE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,MAAgB,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/middleware.d.ts:
--------------------------------------------------------------------------------
1 | import { Context } from './context';
2 | export declare type MiddlewareFn = (ctx: C, next: () => Promise) => Promise | void;
3 | export interface MiddlewareObj {
4 | middleware: () => MiddlewareFn;
5 | }
6 | export declare type Middleware = MiddlewareFn | MiddlewareObj;
7 | //# sourceMappingURL=middleware.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/middleware.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAQnC,oBAAY,YAAY,CAAC,CAAC,SAAS,OAAO,IAAI,CAC5C,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KACtB,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;AAE5B,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,OAAO;IAC9C,UAAU,EAAE,MAAM,YAAY,CAAC,CAAC,CAAC,CAAA;CAClC;AAED,oBAAY,UAAU,CAAC,CAAC,SAAS,OAAO,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/scenes/index.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @see https://github.com/telegraf/telegraf/issues/705#issuecomment-549056045
3 | * @see https://www.npmjs.com/package/telegraf-stateless-question
4 | * @packageDocumentation
5 | */
6 | export { Stage } from './stage';
7 | export { SceneContext, SceneSession, default as SceneContextScene, SceneSessionData, } from './context';
8 | export { BaseScene } from './base';
9 | export { WizardScene } from './wizard';
10 | export { WizardContext, WizardSession, default as WizardContextWizard, WizardSessionData, } from './wizard/context';
11 | //# sourceMappingURL=index.d.ts.map
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/telegraf/typings/scenes/index.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scenes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,OAAO,IAAI,iBAAiB,EAC5B,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EACL,aAAa,EACb,aAAa,EACb,OAAO,IAAI,mBAAmB,EAC9B,iBAAiB,GAClB,MAAM,kBAAkB,CAAA"}
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/tr46/.npmignore:
--------------------------------------------------------------------------------
1 | scripts/
2 | test/
3 |
4 | !lib/mapping_table.json
5 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/tr46/lib/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/Nov_19-Project_0/node_modules/tr46/lib/.gitkeep
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/typegram/.editorconfig:
--------------------------------------------------------------------------------
1 | [*]
2 | end_of_line = lf
3 | charset = utf-8
4 | indent_style = space
5 | indent_size = 2
6 | insert_final_newline = true
7 | trim_trailing_whitespace = true
8 | max_line_length = 80
9 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/typegram/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [KnorpelSenf]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
14 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/typegram/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./api";
2 | export * from "./default";
3 | export * from "./inline";
4 | export * from "./manage";
5 | export * from "./markup";
6 | export * from "./menu-button";
7 | export * from "./message";
8 | export * from "./passport";
9 | export * from "./payment";
10 | export * from "./proxied";
11 | export * from "./update";
12 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/typegram/index.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/Nov_19-Project_0/node_modules/typegram/index.js
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/webidl-conversions/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "webidl-conversions",
3 | "version": "3.0.1",
4 | "description": "Implements the WebIDL algorithms for converting to and from JavaScript values",
5 | "main": "lib/index.js",
6 | "scripts": {
7 | "test": "mocha test/*.js"
8 | },
9 | "repository": "jsdom/webidl-conversions",
10 | "keywords": [
11 | "webidl",
12 | "web",
13 | "types"
14 | ],
15 | "files": [
16 | "lib/"
17 | ],
18 | "author": "Domenic Denicola (https://domenic.me/)",
19 | "license": "BSD-2-Clause",
20 | "devDependencies": {
21 | "mocha": "^1.21.4"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/whatwg-url/lib/public-api.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.URL = require("./URL").interface;
4 | exports.serializeURL = require("./url-state-machine").serializeURL;
5 | exports.serializeURLOrigin = require("./url-state-machine").serializeURLOrigin;
6 | exports.basicURLParse = require("./url-state-machine").basicURLParse;
7 | exports.setTheUsername = require("./url-state-machine").setTheUsername;
8 | exports.setThePassword = require("./url-state-machine").setThePassword;
9 | exports.serializeHost = require("./url-state-machine").serializeHost;
10 | exports.serializeInteger = require("./url-state-machine").serializeInteger;
11 | exports.parseURL = require("./url-state-machine").parseURL;
12 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/node_modules/whatwg-url/lib/utils.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports.mixin = function mixin(target, source) {
4 | const keys = Object.getOwnPropertyNames(source);
5 | for (let i = 0; i < keys.length; ++i) {
6 | Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
7 | }
8 | };
9 |
10 | module.exports.wrapperSymbol = Symbol("wrapper");
11 | module.exports.implSymbol = Symbol("impl");
12 |
13 | module.exports.wrapperForImpl = function (impl) {
14 | return impl[module.exports.wrapperSymbol];
15 | };
16 |
17 | module.exports.implForWrapper = function (wrapper) {
18 | return wrapper[module.exports.implSymbol];
19 | };
20 |
21 |
--------------------------------------------------------------------------------
/Nov_19-Project_0/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nov_19-project_0",
3 | "version": "1.0.0",
4 | "description": "New telegram bot",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "axios": "^1.1.3",
13 | "telegraf": "^4.11.0"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Oct 1 - Scopes/blockScopesDemo.js:
--------------------------------------------------------------------------------
1 | {
2 | let x = 10;
3 | console.log(x);
4 | }
5 |
6 | console.log(x);
--------------------------------------------------------------------------------
/Oct 1 - Scopes/globalScopeDemo.js:
--------------------------------------------------------------------------------
1 | let name = "Sanket";
2 | function greet() {
3 | console.log("greetings !", name);
4 | var x = 10;
5 | function test() {
6 | console.log("test", x);
7 | }
8 | test();
9 | console.log(x);
10 | }
11 |
12 | function fun() {
13 | console.log("have fun! ", name);
14 | }
15 |
16 | greet();
17 | fun();
--------------------------------------------------------------------------------
/Oct 1 - Scopes/letDemo.js:
--------------------------------------------------------------------------------
1 | {
2 | let x = 10;
3 | console.log(x);
4 | }
5 | console.log(z);
6 | function fun() {
7 | // console.log(y);
8 | let y = 8;
9 | console.log(y);
10 | }
11 |
12 | let z = 99;
13 | fun();
14 | console.log(x);
--------------------------------------------------------------------------------
/Oct 1 - Scopes/lexicalScoping.js:
--------------------------------------------------------------------------------
1 | var teacher = "Sanket";
2 | function fun() {
3 | var teacher = "Pulkit";
4 | console.log(teacher);
5 | }
6 |
7 |
8 | fun();
9 | console.log(teacher); // sanket
--------------------------------------------------------------------------------
/Oct 1 - Scopes/lexicalScoping2.js:
--------------------------------------------------------------------------------
1 | var teacher = "Sanket";
2 | function fun() {
3 | var teacher = "Pulkit";
4 | teachingAssistant = "vibhav";
5 | console.log(teacher);
6 | console.log(teachingAssistant);
7 | }
8 |
9 |
10 | fun();
11 | console.log(teacher); // sanket
12 | console.log(teachingAssistant); // autoglobal
--------------------------------------------------------------------------------
/Oct 1 - Scopes/lexicalScoping3.js:
--------------------------------------------------------------------------------
1 | var teacher = "Sanket";
2 | function fun() {
3 | var teacher = "Pulkit";
4 | teachingAssistant = "vibhav";
5 | console.log(teacher);
6 | console.log(teachingAssistant);
7 | }
8 |
9 | console.log(teachingAssistant);
10 | fun();
11 | console.log(teacher); // sanket
12 |
--------------------------------------------------------------------------------
/Oct 1 - Scopes/lexicalScoping4.js:
--------------------------------------------------------------------------------
1 | var teacher = "Sanket";
2 | function fun() {
3 | console.log(subject); // undefined
4 | var teacher = "Pulkit";
5 | var subject = "Javasctipt";
6 | teachingAssistant = "vibhav";
7 | console.log(teacher);
8 | console.log(teachingAssistant);
9 | }
10 |
11 | fun();
12 | console.log(teacher); // sanket
13 | console.log(teachingAssistant);
14 |
--------------------------------------------------------------------------------
/Oct 1 - Scopes/redeclaration.js:
--------------------------------------------------------------------------------
1 | var x = 10;
2 | var x = 9;
3 |
4 | // let doesnt allow redeclarations
5 | let y = 10;
6 | let y = 9;
--------------------------------------------------------------------------------
/Oct 1 - Scopes/varDemo.js:
--------------------------------------------------------------------------------
1 | function fun() {
2 | console.log(x); // why we get undefined ? -> lexical scoping
3 | var x = 10;
4 | console.log(x);
5 | }
6 |
7 | {
8 | var y = 8; // becomes global due to var
9 | }
10 |
11 | console.log(y);
12 |
13 | if(true) {
14 | var z = 30;
15 | }
16 | if(false) {
17 | var a = 20;
18 | }
19 |
20 | console.log(z);
21 | console.log(a);
22 | fun();
--------------------------------------------------------------------------------
/Oct 18- Closures and Callbacks/callbacksapplication.js:
--------------------------------------------------------------------------------
1 | let arr = [1,2,3,4,5];
2 | let x = arr.map(function process(v, i) {
3 | /**
4 | * v -> value
5 | * i -> index
6 | */
7 | console.log(v, i);
8 | return v*v;
9 | });
10 |
11 | console.log(x)
12 | console.log(arr);
--------------------------------------------------------------------------------
/Oct 18- Closures and Callbacks/custommapfunction.js:
--------------------------------------------------------------------------------
1 | function mapper(arr, fn) {
2 | /**
3 | * arr -> is going to be an array of elementsd
4 | * fn -> callback function which expects two arguments value and index
5 | */
6 | let result = [];
7 | for(let i = 0; i < arr.length; i++) {
8 | // i-> index, arr[i] -> value
9 | let res = fn(arr[i], i);
10 | result.push(res);
11 | }
12 | return result;
13 | }
14 |
15 | let arr = [1,2,3,4,5];
16 | let x = mapper(arr, function cuber(v, i) {
17 | console.log(v, v*v*v, i);
18 | return v*v*v;
19 | });
20 |
21 | console.log(x, arr)
--------------------------------------------------------------------------------
/Oct 18- Closures and Callbacks/setIntervaldemo.js:
--------------------------------------------------------------------------------
1 | let id = setInterval(function () {
2 | console.log("task done again");
3 | }, 3000);
4 |
5 | setTimeout(function () {
6 | clearInterval(id);
7 | }, 13000)
--------------------------------------------------------------------------------
/Oct 18- Closures and Callbacks/setTimeoutdemo.js:
--------------------------------------------------------------------------------
1 | setTimeout(function execute() {
2 | // some task
3 | console.log("task completed");
4 | }, 7000);
--------------------------------------------------------------------------------
/Oct 18- Closures and Callbacks/setTimeoutdemo1.js:
--------------------------------------------------------------------------------
1 | let id1 = setTimeout(function execute1() {
2 | // some task
3 | console.log("task completed 1");
4 | }, 10000);
5 |
6 | let id2 = setTimeout(function execute2() {
7 | // some task
8 | console.log("task completed 2");
9 | clearTimeout(id1);
10 | }, 5000);
11 |
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/autoGlobal.js:
--------------------------------------------------------------------------------
1 | "use strict"; // in strict mode auto globals are prohibited
2 | function fun() {
3 | teachingAssitant = "JD";
4 | console.log(teachingAssitant);
5 | }
6 |
7 | fun();
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/autoGlobals.js:
--------------------------------------------------------------------------------
1 | var teacher = "Sanket";
2 | function fun() {
3 | var teacher = "Pulkit";
4 | console.log(teacher, teachingAssistant);
5 | teachingAssistant = "vibhav"; // eligible for becoming autoglobal
6 |
7 | }
8 |
9 | function gun() {
10 | var student; // scope of gun
11 | console.log(subject, typeof subject);
12 | var subject = "JS";
13 | console.log(teacher, student);
14 | }
15 |
16 | console.log(teacher);
17 | gun();
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/autoGlobals1.js:
--------------------------------------------------------------------------------
1 | function fun() {
2 | teachingAssistant = "Vibhav";
3 | console.log(teachingAssistant);
4 | var teachingAssistant = "JD";
5 | }
6 |
7 | fun();
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/case1.js:
--------------------------------------------------------------------------------
1 | function fun(x, y) { // here args will be given function scope of fun
2 | // impl
3 | }
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/cornercasehoisting.js:
--------------------------------------------------------------------------------
1 | console.log(x);
2 | let x = 10;
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/functionExpression1.js:
--------------------------------------------------------------------------------
1 | function fun() {
2 |
3 | }
4 |
5 | let gun = function () {
6 |
7 | }
8 |
9 | (function () {})
10 |
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/hoisting.js:
--------------------------------------------------------------------------------
1 | gun();
2 | function gun() {
3 | console.log("Shooot");
4 | }
5 |
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/strictmode.js:
--------------------------------------------------------------------------------
1 | function fun() {
2 | ta = "vibhav";
3 | console.log(ta);
4 | }
5 |
6 | function gun() {
7 | "use strict";
8 | teacher = "sanket";
9 | console.log(teacher);
10 | }
11 |
12 | fun();
13 | gun();
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/test.js:
--------------------------------------------------------------------------------
1 | var teacher = "Sanket";
2 | function fun() {
3 | teacher = "pulkit";
4 | console.log("HI", teacher);
5 | }
6 |
7 | fun();
8 | console.log(teacher);
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/typeError.js:
--------------------------------------------------------------------------------
1 | var fun = 10;
2 | function gun() {
3 | console.log("hello world");
4 | }
5 |
6 | gun();
7 | fun();
--------------------------------------------------------------------------------
/Oct 2 - Scopes 2/usecase.js:
--------------------------------------------------------------------------------
1 | var x = 10;
2 |
3 |
4 | x = 99;
5 | /**
6 | *
7 | *
8 | */
9 | console.log(x);
10 | /*
11 | *
12 | *
13 | *
14 | *
15 | *
16 | * lot of code
17 | */
18 | {
19 | // new code
20 | let x = 20;
21 | // end of new code
22 | }
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/demo1.js:
--------------------------------------------------------------------------------
1 | function todo(task) {
2 | console.log("Start of todo");
3 | setTimeout(function fun() {
4 | console.log("Completed", task);
5 | }, 5000);
6 | console.log("End of todo");
7 | }
8 |
9 | console.log("Starting");
10 | todo("assignments");
11 | console.log("Ending");
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/demo2.js:
--------------------------------------------------------------------------------
1 | function todo(task)
2 | {
3 | console.log("Starting todo");
4 | setTimeout(function fun(){
5 | console.log("completed",task);
6 |
7 | },5000);
8 | task = "dayananda";
9 | console.log("end of todo");
10 | }
11 | console.log("Starting");
12 | todo("assignments");
13 | console.log("Ending");
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/demo3.js:
--------------------------------------------------------------------------------
1 | function a(name){
2 | return function b(){
3 | console.log(name);
4 | }
5 | }
6 |
7 | let x = a("Sanket");
8 | for(let i = 0; i < 10000000000; i++) {
9 | // something
10 | }
11 | console.log(x);
12 | x();
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/demo4.js:
--------------------------------------------------------------------------------
1 | function test() {
2 | for(var i = 0; i < 3; i++) {
3 | setTimeout(function exec() {
4 | console.log(`i : ${i}`); // 'i: ' + i
5 | }, i*1000);
6 | }
7 | }
8 |
9 | test();
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/demo5.js:
--------------------------------------------------------------------------------
1 | function test() {
2 | for(let i = 0; i < 3; i++) {
3 | setTimeout(function exec() {
4 | console.log(`i : ${i}`); // 'i: ' + i
5 | }, i*1000);
6 | }
7 | }
8 |
9 | test();
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/demo6.js:
--------------------------------------------------------------------------------
1 | function test() {
2 | for(var i = 0; i < 3; i++) {
3 | let j = i;
4 | setTimeout(function exec() {
5 | console.log(`j : ${j}`); // 'i: ' + i
6 | }, j*1000);
7 | }
8 | }
9 |
10 | test();
--------------------------------------------------------------------------------
/Oct 20 - Closures and Async js/test.js:
--------------------------------------------------------------------------------
1 | console.log("start");
2 | setTimeout(function () {
3 | console.log("hey");
4 | }, 0);
5 | console.log("end");
--------------------------------------------------------------------------------
/Oct 22 - Async JS/demo1.js:
--------------------------------------------------------------------------------
1 | function process() {
2 | console.log("Start");
3 | setTimeout(function exec() {
4 | console.log("Executed some task1")
5 | }, 5000);
6 | setTimeout(function exec() {
7 | console.log("Executed some task2")
8 | }, 5000);
9 | for(let i = 0; i < 100000; i++) {
10 | // some task
11 | }
12 | console.log("End");
13 | }
14 |
15 | process();
16 | console.log("TATA");
--------------------------------------------------------------------------------
/Oct 22 - Async JS/demo3.js:
--------------------------------------------------------------------------------
1 | for(var i = 0; i < 4; i++) {
2 | setTimeout(function () {
3 | console.log("Hi", i);
4 | }, i*1000);
5 | }
--------------------------------------------------------------------------------
/Oct 22 - Async JS/demo4.js:
--------------------------------------------------------------------------------
1 | function process(){
2 | console.log("start");
3 | for(var i=1;i<3;i++){
4 | setTimeout(function exec(){
5 | console.log("executed after some time");
6 | },3000);
7 | console.log("inside for loop");
8 | }
9 |
10 | for(var j=0;j<1000000;j++){
11 |
12 | }
13 |
14 | console.log("end");
15 | }
16 | process();
--------------------------------------------------------------------------------
/Oct 22 - Async JS/demo5.js:
--------------------------------------------------------------------------------
1 | function fun(){
2 | console.log("Fun called");
3 | setTimeout(function exec1(){
4 | console.log("Inside the 5s timeout")
5 | },7000);
6 | setTimeout(function process2(){
7 | console.log("Inside the 3s timeout")
8 | },3000);
9 | }
10 | fun();
11 | // for(let i = 0; i < 10000000000; i++) {
12 | // // some task
13 | // }
14 | setTimeout(function last(){
15 | console.log("Last timeout of 7s")
16 | },0);
--------------------------------------------------------------------------------
/Oct 22 - Async JS/syncJSDemo.js:
--------------------------------------------------------------------------------
1 | console.log("Start");
2 | for(let i = 0; i < 10000000000; i++) {
3 | // some task
4 | }
5 | console.log("Task done");
6 | console.log("End");
--------------------------------------------------------------------------------
/Oct 22 - Async JS/whatisthis.js:
--------------------------------------------------------------------------------
1 | console.log("Start");
2 | setTimeout(function exec() {
3 | console.log("Task done");
4 | }, 7000);
5 | console.log("End");
--------------------------------------------------------------------------------
/Oct 23 - Async JS 2/demo1Inversionofcontrol.js:
--------------------------------------------------------------------------------
1 | function fun(inputString, fn) {
2 | // internal function
3 | // executes some algorithm on the string
4 | let output = inputString.split(','); // output is an array
5 | for(let i = 0; i < output.length; i++) {
6 | fn(output[i]);
7 | fn(output[i]);
8 | }
9 | }
10 |
11 |
12 | // using it
13 |
14 | fun("name:sanket,subject:cse", function process(ip) {
15 | let arr = ip.split(":");
16 | console.log("{", arr[0], " => ", arr[1], "}");
17 | });
--------------------------------------------------------------------------------
/Oct 27 - Promises/promisedemo3.js:
--------------------------------------------------------------------------------
1 | function fetchData(url) {
2 | return new Promise(function (resolve, reject) {
3 | console.log("going to start the download");
4 | setTimeout(function process() {
5 | let data = "Dummy downladed data";
6 | console.log("download completed");
7 | resolve(data);
8 | }, 10000);
9 | console.log("Timer to mimic download started");
10 | });
11 | }
12 |
13 | console.log("Starting the program");
14 | console.log("We are expecting to mimic a downloader");
15 | x = fetchData("www.google.com");
16 | console.log("New promise object created successfully, but downloading still going on");
17 | console.log(x);
18 |
--------------------------------------------------------------------------------
/Oct 29 - Promises cont/demo1.js:
--------------------------------------------------------------------------------
1 | console.log("Start of the file");
2 |
3 | setTimeout(function timer1() {
4 | console.log("Timer 1 done");
5 | }, 0);
6 |
7 | for(let i = 0; i < 10000000000; i++) {
8 | // something
9 | }
10 |
11 | let x = Promise.resolve("Sanket's promise");
12 | x.then(function processPromise(value) {
13 | console.log("Whose promise ? ", value);
14 | });
15 |
16 | setTimeout(function timer2() {
17 | console.log("Timer 2 done");
18 | }, 0);
19 |
20 | console.log("End of the file");
--------------------------------------------------------------------------------
/Oct 29 - Promises cont/demo2.js:
--------------------------------------------------------------------------------
1 | function dummyPromise() {
2 | return new Promise(function (resolve, reject) {
3 | setTimeout(function () {
4 | resolve("Timer's promise")
5 | }, 10000);
6 | });
7 | }
8 | console.log("Start of the file");
9 |
10 | setTimeout(function timer1() {
11 | console.log("Timer 1 done");
12 | let y = dummyPromise();
13 | y.then(function promiseY(value) {
14 | console.log("Whose promise ?", value);
15 | });
16 | }, 0);
17 |
18 |
19 | let x = Promise.resolve("Sanket's promise");
20 | x.then(function processPromise(value) {
21 | console.log("Whose promise ? ", value);
22 | });
23 |
24 | setTimeout(function timer2() {
25 | console.log("Timer 2 done");
26 | }, 0);
27 |
28 | console.log("End of the file");
--------------------------------------------------------------------------------
/Oct 29 - Promises cont/demo3.js:
--------------------------------------------------------------------------------
1 | // function dummyPromise() {
2 | // return new Promise(function (resolve, reject) {
3 | // setTimeout(function () {
4 | // resolve("Timer's promise")
5 | // }, 10000);
6 | // });
7 | // }
8 | console.log("Start of the file");
9 |
10 | setTimeout(function timer1() {
11 | console.log("Timer 1 done");
12 | let y = Promise.resolve("Immediately promise");
13 | y.then(function promiseY(value) {
14 | console.log("Whose promise ?", value);
15 | });
16 | }, 0);
17 |
18 |
19 | let x = Promise.resolve("Sanket's promise");
20 | x.then(function processPromise(value) {
21 | console.log("Whose promise ? ", value);
22 | });
23 |
24 | setTimeout(function timer2() {
25 | console.log("Timer 2 done");
26 | }, 0);
27 |
28 | console.log("End of the file");
--------------------------------------------------------------------------------
/Oct 29 - Promises cont/demo4.js:
--------------------------------------------------------------------------------
1 | function dummyPromise() {
2 | return new Promise(function (resolve, reject) {
3 | setTimeout(function () {
4 | resolve("Timer's promise")
5 | }, 0);
6 | });
7 | }
8 | console.log("Start of the file");
9 |
10 | setTimeout(function timer1() {
11 | console.log("Timer 1 done");
12 | let y = dummyPromise();
13 | y.then(function promiseY(value) {
14 | console.log("Whose promise ?", value);
15 | });
16 | }, 0);
17 |
18 |
19 | let x = Promise.resolve("Sanket's promise");
20 | x.then(function processPromise(value) {
21 | console.log("Whose promise ? ", value);
22 | });
23 |
24 | setTimeout(function timer2() {
25 | console.log("Timer 2 done");
26 | }, 0);
27 |
28 | console.log("End of the file");
--------------------------------------------------------------------------------
/Oct 29 - Promises cont/demo5.js:
--------------------------------------------------------------------------------
1 | function fetchData(url) {
2 | return new Promise(function (resolve, reject) {
3 | console.log("Started downloading from", url);
4 | setTimeout(function processDownloading() {
5 | let data = "Dummy data";
6 | console.log("Download completed");
7 | resolve(data);
8 | }, 7000);
9 | });
10 | }
11 |
12 |
13 | console.log("Start");
14 | let promiseObj = fetchData("skfbjkdjbfv");
15 | promiseObj.then(function A(value) {
16 | console.log("value is", value);
17 | })
18 | console.log("end");
--------------------------------------------------------------------------------
/Oct 30 - Async Await /demo1.js:
--------------------------------------------------------------------------------
1 | function fun() {
2 | return new Promise(function f(resolve, reject) {
3 | setTimeout(function process(){
4 | console.log("resolved");
5 | resolve(123);
6 | }, 5000);
7 | })
8 | }
9 |
10 | let x = fun();
11 | x.then(function exec(value) {
12 | console.log("Value is", value);
13 | for(let i = 0; i < 10000000000; i++) {}
14 | return 100;
15 | });
16 |
17 | x.then(function exec2(value) {
18 | console.log("yo the value is", value);
19 | return 200;
20 | });
--------------------------------------------------------------------------------
/Oct 30 - Async Await /demo2.js:
--------------------------------------------------------------------------------
1 | async function fun() {
2 | console.log("entered");
3 | let x = await Promise.resolve(20);
4 |
5 | console.log("exiting");
6 | return x;
7 | }
8 |
9 | console.log("Start");
10 | let val = fun();
11 | val.then(function f(value) {
12 | console.log("value is", value);
13 | })
14 |
15 | console.log("end");
--------------------------------------------------------------------------------
/Oct 30 - Async Await /demo3.js:
--------------------------------------------------------------------------------
1 | let p2 = new Promise((resolve, reject) => {
2 | console.log("Promise is pending")
3 | setTimeout(() => {
4 | // console.log("I am a promise and I am rejected")
5 | reject(new Error("I am an error"))
6 | }, 5000)
7 | })
8 | p2.then((value)=>{
9 | console.log(value)
10 | },(error)=>{
11 | console.log(error)
12 | })
--------------------------------------------------------------------------------
/Oct 30 - Async Await /test.js:
--------------------------------------------------------------------------------
1 | console.log("start");
2 | var a = readline();
3 | console.log("start 2", a)
4 | console.log(a);
--------------------------------------------------------------------------------
/Oct 4 - Function expression/fescopes.js:
--------------------------------------------------------------------------------
1 | var x = function gun() {
2 | console.log("gun");
3 | }
4 |
5 | console.log(typeof x);
6 |
7 |
8 | function fun() {
9 | var x = 10;
10 | function gun() {
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/Oct 4 - Function expression/passingFunctions.js:
--------------------------------------------------------------------------------
1 | function fun() {
2 | console.log("fun called");
3 | }
4 |
5 | function gun(fn) {
6 | console.log("inside gun");
7 | fn();
8 | console.log("leaving gun");
9 | }
10 |
11 | gun(function logger() {
12 | console.trace();
13 | console.log("new function passed");
14 | });
15 |
16 | // gun(fun);
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/Sep 16 - Introduction to JS/.DS_Store
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/consolelog.js:
--------------------------------------------------------------------------------
1 | console.log(12);
2 | console.log(13);
3 | console.log(true, null, 13, "sanket");
4 |
5 | process.stdout.write("hello");
6 | process.stdout.write("world");
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/doubt.js:
--------------------------------------------------------------------------------
1 | console.log(typeof(typeof(12)));
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/hello.js:
--------------------------------------------------------------------------------
1 | console.log("Hello world");
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/typeof.js:
--------------------------------------------------------------------------------
1 | console.log(typeof 12);
2 | console.log(typeof "abcd");
3 | console.log(typeof -0);
4 | console.log(typeof undefined);
5 | console.log(typeof null); // corner case
6 | console.log(typeof {"sanket": 12});
7 | console.log(typeof NaN);
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/types.js:
--------------------------------------------------------------------------------
1 | // Numbers
2 | console.log(12);
3 | console.log(3.45);
4 | console.log(-45);
5 | console.log(0);
6 | console.log(-0);
7 |
8 | // string
9 | console.log("This is a text");
10 | console.log('single quoted string');
11 | console.log(`This is a backtick string`);
12 |
13 | // boolean
14 | console.log(false);
15 | console.log(true);
16 |
17 | // undefined, null
18 | console.log(undefined);
19 | console.log(null);
20 |
21 | // object
22 | console.log({"sanket": 123});
23 |
24 | // symbol
25 | console.log(Symbol('hello'));
--------------------------------------------------------------------------------
/Sep 16 - Introduction to JS/variables.js:
--------------------------------------------------------------------------------
1 | let x = 10;
2 | var y = 20;
3 | const z = "abcd";
4 | console.log(x, y, z);
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/breakdemo.js:
--------------------------------------------------------------------------------
1 | for(let i = 1; i < 20; i++) {
2 | if(i%7 === 0) {
3 | console.log("breaking now");
4 | break;
5 | }
6 | console.log(i);
7 | }
8 |
9 | for(let i = 0; i < 5; i++) {
10 | let str = "";
11 | for(let j = 0; true; j++ ) {
12 | str += "*";
13 | if(j == i) {
14 | break;
15 | }
16 | }
17 | console.log(str);
18 | }
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/conditionals.js:
--------------------------------------------------------------------------------
1 | if(10 > 20) {
2 | console.log("Hi");
3 | }
4 |
5 | if(101%2 === 0) {
6 | console.log("Even number");
7 | } else {
8 | console.log("Odd number");
9 | }
10 |
11 | if(2 < 1) {
12 | console.log("Hi");
13 | } else if(10 > 11) {
14 | console.log("By");
15 | } else if(2%2 === 0) { // ==
16 | console.log("good night");
17 | } else {
18 | console.log("nothing");
19 | }
20 |
21 | console.log((2 > 1) && "Sanket");
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/continuedemo.js:
--------------------------------------------------------------------------------
1 | for(let i = 0; i < 10; i++) {
2 | if(i%3 === 0) {
3 | continue; // this takes you back to the nearest loop
4 | }
5 | console.log(i);
6 | }
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/forloop.js:
--------------------------------------------------------------------------------
1 | for(let i = 0; i < 10; i++) {
2 | console.log(i)
3 | }
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/functiondemo.js:
--------------------------------------------------------------------------------
1 | function fun(x) {
2 | console.log(x + 10);
3 | return x*10;
4 | }
5 |
6 | // let x = fun(10);
7 | console.log(fun(10));
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/operators.js:
--------------------------------------------------------------------------------
1 | // bitwise operators
2 | console.log(5 & 3);
3 | console.log(8 | 1);
4 | console.log(3 ^ 3);
5 | console.log(5 << 2);
6 | console.log(5 >> 1); // 101 -> 10
7 |
8 | // string concatenation
9 | console.log("Sanket" + "node");
10 |
11 | console.log(5 + 5 + "5" + 5 + 5);
12 |
13 |
14 | console.log((2 < 1) ? "Sanket" : "Singh");
15 |
16 | let x = (2 < 1) ? "sanket": null;
17 | console.log(x);
18 |
19 | console.log(3**4); // exponentiation
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/switchdemo.js:
--------------------------------------------------------------------------------
1 | let exp = "%";
2 | let a = 10;
3 | let b = 3;
4 | switch(exp) {
5 | case "+":
6 | console.log(a + b);
7 | break;
8 | case "-":
9 | console.log(a-b);
10 | break;
11 | case "*":
12 | console.log(a*b);
13 | break;
14 | case "/":
15 | console.log(a/b);
16 | break;
17 | default:
18 | console.log("invalid input");
19 | break;
20 | }
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/switchdemo1.js:
--------------------------------------------------------------------------------
1 | let val = "10";
2 | switch(val) {
3 | case 10:
4 | console.log("yes");
5 | break;
6 | default:
7 | console.log("no");
8 | break;
9 | }
--------------------------------------------------------------------------------
/Sep 18 - Introduction to JS 2/whileloops.js:
--------------------------------------------------------------------------------
1 | let i = 0;
2 | while(i < 10) {
3 | console.log(i);
4 | i+=1;
5 | }
--------------------------------------------------------------------------------
/Sep 24 - Coercion/ToString_Demo1.js:
--------------------------------------------------------------------------------
1 | console.log("Sanket" + "Singh");
2 | /**
3 | * Both of them are already a string,
4 | * so toprimitive conversion will also be a string
5 | * and we concatenate them
6 | */
7 | console.log(undefined + "node");
8 | /**
9 | * undefined -> "undefined"
10 | * "undefined"+"node" -> "undefinednode"
11 | */
12 | console.log("5" + null);
13 | /**
14 | * One of them is already a string, so both of them becomes a string
15 | * "5" + "null" -> "5null"
16 | */
17 | console.log("sanket" + true);
18 |
19 | console.log("sanket" + [null]);
--------------------------------------------------------------------------------
/Sep 24 - Coercion/valueof_toString_demo.js:
--------------------------------------------------------------------------------
1 | let a = {"english": 90, "maths": 767};
2 | console.log(a.toString());
3 | console.log(a.valueOf());
4 |
5 | let x = [1,2,3];
6 | console.log(x.toString());
7 | console.log(x.valueOf());
8 |
--------------------------------------------------------------------------------
/Sep 25 - Coercion continued/ToBoolean_demo.js:
--------------------------------------------------------------------------------
1 | console.log(!0);
2 | /**
3 | * 0 -> false
4 | * ToBoolean(0) -> false
5 | * !0 -> true
6 | */
7 | console.log(!(-4));
8 | /**
9 | * -4 -> truthy
10 | * ToBoolean(-4) = true
11 | * !(-4) -> !true -> false
12 | */
13 | console.log(!{});
14 | /**
15 | * {} -> truthy
16 | * ToBoolean({}) -> true
17 | * !true -> false
18 | */
19 | console.log(!console.log(0));
--------------------------------------------------------------------------------
/Sep 25 - Coercion continued/strict_equality_demo.js:
--------------------------------------------------------------------------------
1 | console.log(NaN === 23);
2 | console.log(NaN === NaN);
3 | console.log(33 === 33);
4 | console.log(33 === 23);
5 | console.log(0 === -0);
6 | console.log(-0 === 0);
7 | console.log(undefined === undefined);
8 | console.log(null === null);
9 | console.log("sanket" === "sanket");
10 | console.log({} === {});
11 | let x = {};
12 | console.log(x === x);
13 | console.log(Symbol('sanket') === Symbol('sanket'));
14 | let y = Symbol('sanket');
15 | console.log(y === y);
--------------------------------------------------------------------------------
/Sep 29 - Abstract Equality, Nan/abstractequalitydemo.js:
--------------------------------------------------------------------------------
1 | console.log(null == undefined); // true
2 | console.log(undefined == null); // true
3 | console.log(10 == '10'); // ToNumber('10') => 10, 10 == 10 -> true
4 | console.log(10 == '12'); // ToNumber('12') => 12, 10 == 12 -> false
5 | console.log('99' == 99); // ToNumber('99') => 99, 99 == 99 -> true
6 | console.log(false == 0); // ToNumber(false) => 0, 0 == 0 -> true
7 | console.log(true == 10); // ToNumber(true) => 1, 1 == 10 -> false
8 | console.log(10 == {valueOf() {return 10}}); // ToPrimitive({valueOf() {return 10}}) -> hint:number, 10 == 10 -> true
9 |
--------------------------------------------------------------------------------
/Sep 29 - Abstract Equality, Nan/example1.js:
--------------------------------------------------------------------------------
1 | let a = 5;
2 | if(a) { // if (condition)
3 | console.log("Hi there"); // this line will be printed
4 | }
5 |
6 | if(a == true) { // 5 == 1 -> false
7 | console.log("By by"); // this line wont be printed
8 | }
--------------------------------------------------------------------------------
/Sep 29 - Abstract Equality, Nan/example2.js:
--------------------------------------------------------------------------------
1 | let ans = 0;
2 | for (let i = 0; i < "23"; i++) {
3 | ans++;
4 | }
5 | console.log(ans);
--------------------------------------------------------------------------------
/Sep 29 - Abstract Equality, Nan/homework.js:
--------------------------------------------------------------------------------
1 | function checkDirection(val) {
2 | // val will be always a number, and val won't be NaN
3 | // tell us whether val is a negative value or a positive value
4 | // if val is negative return 'left' otherwise if val is positive return 'right'
5 | }
--------------------------------------------------------------------------------
/Sep 29 - Abstract Equality, Nan/isNaNDemo.js:
--------------------------------------------------------------------------------
1 | let a = "10";
2 | let b = "abc";
3 | let c = "sanket";
4 | let d = 10 - c;
5 | console.log(a, b, c, d);
6 |
7 | console.log(isNaN(a));
8 | console.log(isNaN(b));
9 | console.log(isNaN(c));
10 | console.log(isNaN(d));
11 |
12 |
13 | let x = ""
14 | console.log(x);
15 | console.log((typeof(x) == 'number' && isNaN(x)) ? "NaN value" : "Not NaN value");
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Sep 29 - Abstract Equality, Nan/number_isNan_demo.js:
--------------------------------------------------------------------------------
1 | console.log(Number.isNaN(NaN));
2 | console.log(Number.isNaN("abc"));
3 | // This function doesn't do coercion
--------------------------------------------------------------------------------
/first_express_server/index.js:
--------------------------------------------------------------------------------
1 | const express = require('express');
2 | // create an express app object by calling the express function
3 | const app = express();
4 | const PORT = 3000;
5 |
6 | app.get('/', function (req, res) {
7 | res.send("hello world");
8 | });
9 |
10 | app.post('/home', function (req, res) {
11 | res.send("Welcome to home");
12 | });
13 |
14 | app.patch('/home', function (req, res) {
15 | res.json({
16 | message: "This is a patch request",
17 | success: true
18 | })
19 | })
20 |
21 | app.listen(PORT, function process() {
22 | console.log("Server started");
23 | })
--------------------------------------------------------------------------------
/first_express_server/node_modules/.bin/mime:
--------------------------------------------------------------------------------
1 | ../mime/cli.js
--------------------------------------------------------------------------------
/first_express_server/node_modules/call-bind/.eslintignore:
--------------------------------------------------------------------------------
1 | coverage/
2 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/call-bind/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "func-name-matching": 0,
8 | "id-length": 0,
9 | "new-cap": [2, {
10 | "capIsNewExceptions": [
11 | "GetIntrinsic",
12 | ],
13 | }],
14 | "no-magic-numbers": 0,
15 | "operator-linebreak": [2, "before"],
16 | },
17 | }
18 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/call-bind/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/call-bind
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/call-bind/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/call-bind/README.md:
--------------------------------------------------------------------------------
1 | # call-bind
2 | Robustly `.call.bind()` a function.
3 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/call-bind/callBound.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var GetIntrinsic = require('get-intrinsic');
4 |
5 | var callBind = require('./');
6 |
7 | var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
8 |
9 | module.exports = function callBoundIntrinsic(name, allowMissing) {
10 | var intrinsic = GetIntrinsic(name, !!allowMissing);
11 | if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
12 | return callBind(intrinsic);
13 | }
14 | return intrinsic;
15 | };
16 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/cookie-signature/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | *.sock
5 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/cookie-signature/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cookie-signature",
3 | "version": "1.0.6",
4 | "description": "Sign and unsign cookies",
5 | "keywords": ["cookie", "sign", "unsign"],
6 | "author": "TJ Holowaychuk ",
7 | "license": "MIT",
8 | "repository": { "type": "git", "url": "https://github.com/visionmedia/node-cookie-signature.git"},
9 | "dependencies": {},
10 | "devDependencies": {
11 | "mocha": "*",
12 | "should": "*"
13 | },
14 | "scripts": {
15 | "test": "mocha --require should --reporter spec"
16 | },
17 | "main": "index"
18 | }
19 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/debug/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
2 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/escape-html/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "escape-html",
3 | "description": "Escape string for use in HTML",
4 | "version": "1.0.3",
5 | "license": "MIT",
6 | "keywords": [
7 | "escape",
8 | "html",
9 | "utility"
10 | ],
11 | "repository": "component/escape-html",
12 | "devDependencies": {
13 | "benchmark": "1.0.0",
14 | "beautify-benchmark": "0.2.4"
15 | },
16 | "files": [
17 | "LICENSE",
18 | "Readme.md",
19 | "index.js"
20 | ],
21 | "scripts": {
22 | "bench": "node benchmark/index.js"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/forwarded/HISTORY.md:
--------------------------------------------------------------------------------
1 | 0.2.0 / 2021-05-31
2 | ==================
3 |
4 | * Use `req.socket` over deprecated `req.connection`
5 |
6 | 0.1.2 / 2017-09-14
7 | ==================
8 |
9 | * perf: improve header parsing
10 | * perf: reduce overhead when no `X-Forwarded-For` header
11 |
12 | 0.1.1 / 2017-09-10
13 | ==================
14 |
15 | * Fix trimming leading / trailing OWS
16 | * perf: hoist regular expression
17 |
18 | 0.1.0 / 2014-09-21
19 | ==================
20 |
21 | * Initial release
22 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/function-bind/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = tab
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 = 120
11 |
12 | [CHANGELOG.md]
13 | indent_style = space
14 | indent_size = 2
15 |
16 | [*.json]
17 | max_line_length = off
18 |
19 | [Makefile]
20 | max_line_length = off
21 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/function-bind/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "func-name-matching": 0,
8 | "indent": [2, 4],
9 | "max-nested-callbacks": [2, 3],
10 | "max-params": [2, 3],
11 | "max-statements": [2, 20],
12 | "no-new-func": [1],
13 | "strict": [0]
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/function-bind/.npmignore:
--------------------------------------------------------------------------------
1 | # gitignore
2 | .DS_Store
3 | .monitor
4 | .*.swp
5 | .nodemonignore
6 | releases
7 | *.log
8 | *.err
9 | fleet.json
10 | public/browserify
11 | bin/*.json
12 | .bin
13 | build
14 | compile
15 | .lock-wscript
16 | coverage
17 | node_modules
18 |
19 | # Only apps should have lockfiles
20 | npm-shrinkwrap.json
21 | package-lock.json
22 | yarn.lock
23 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/function-bind/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var implementation = require('./implementation');
4 |
5 | module.exports = Function.prototype.bind || implementation;
6 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/function-bind/test/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "array-bracket-newline": 0,
4 | "array-element-newline": 0,
5 | "max-statements-per-line": [2, { "max": 2 }],
6 | "no-invalid-this": 0,
7 | "no-magic-numbers": 0,
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/get-intrinsic/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "env": {
7 | "es6": true,
8 | "es2017": true,
9 | "es2020": true,
10 | "es2021": true,
11 | "es2022": true,
12 | },
13 |
14 | "rules": {
15 | "array-bracket-newline": 0,
16 | "complexity": 0,
17 | "eqeqeq": [2, "allow-null"],
18 | "func-name-matching": 0,
19 | "id-length": 0,
20 | "max-lines-per-function": [2, 90],
21 | "max-params": [2, 4],
22 | "max-statements": 0,
23 | "max-statements-per-line": [2, { "max": 2 }],
24 | "multiline-comment-style": 0,
25 | "no-magic-numbers": 0,
26 | "sort-keys": 0,
27 | },
28 |
29 | "overrides": [
30 | {
31 | "files": "test/**",
32 | "rules": {
33 | "new-cap": 0,
34 | },
35 | },
36 | ],
37 | }
38 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/get-intrinsic/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/get-intrinsic
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/get-intrinsic/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has-symbols/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "max-statements-per-line": [2, { "max": 2 }],
8 | "no-magic-numbers": 0,
9 | "multiline-comment-style": 0,
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has-symbols/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/has-symbols
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has-symbols/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "exclude": [
6 | "coverage",
7 | "test"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has-symbols/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var origSymbol = typeof Symbol !== 'undefined' && Symbol;
4 | var hasSymbolSham = require('./shams');
5 |
6 | module.exports = function hasNativeSymbols() {
7 | if (typeof origSymbol !== 'function') { return false; }
8 | if (typeof Symbol !== 'function') { return false; }
9 | if (typeof origSymbol('foo') !== 'symbol') { return false; }
10 | if (typeof Symbol('bar') !== 'symbol') { return false; }
11 |
12 | return hasSymbolSham();
13 | };
14 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has-symbols/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 | var hasSymbols = require('../');
5 | var runSymbolTests = require('./tests');
6 |
7 | test('interface', function (t) {
8 | t.equal(typeof hasSymbols, 'function', 'is a function');
9 | t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
10 | t.end();
11 | });
12 |
13 | test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
14 | runSymbolTests(t);
15 | t.end();
16 | });
17 |
18 | test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
19 | t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
20 | t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
21 | t.end();
22 | });
23 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has/README.md:
--------------------------------------------------------------------------------
1 | # has
2 |
3 | > Object.prototype.hasOwnProperty.call shortcut
4 |
5 | ## Installation
6 |
7 | ```sh
8 | npm install --save has
9 | ```
10 |
11 | ## Usage
12 |
13 | ```js
14 | var has = require('has');
15 |
16 | has({}, 'hasOwnProperty'); // false
17 | has(Object.prototype, 'hasOwnProperty'); // true
18 | ```
19 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has/src/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var bind = require('function-bind');
4 |
5 | module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
6 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/has/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var test = require('tape');
4 | var has = require('../');
5 |
6 | test('has', function (t) {
7 | t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
8 | t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
9 | t.end();
10 | });
11 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | try {
2 | var util = require('util');
3 | /* istanbul ignore next */
4 | if (typeof util.inherits !== 'function') throw '';
5 | module.exports = util.inherits;
6 | } catch (e) {
7 | /* istanbul ignore next */
8 | module.exports = require('./inherits_browser.js');
9 | }
10 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/inherits/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "inherits",
3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
4 | "version": "2.0.4",
5 | "keywords": [
6 | "inheritance",
7 | "class",
8 | "klass",
9 | "oop",
10 | "object-oriented",
11 | "inherits",
12 | "browser",
13 | "browserify"
14 | ],
15 | "main": "./inherits.js",
16 | "browser": "./inherits_browser.js",
17 | "repository": "git://github.com/isaacs/inherits",
18 | "license": "ISC",
19 | "scripts": {
20 | "test": "tap"
21 | },
22 | "devDependencies": {
23 | "tap": "^14.2.4"
24 | },
25 | "files": [
26 | "inherits.js",
27 | "inherits_browser.js"
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/mime-db/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * mime-db
3 | * Copyright(c) 2014 Jonathan Ong
4 | * Copyright(c) 2015-2022 Douglas Christopher Wilson
5 | * MIT Licensed
6 | */
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = require('./db.json')
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/mime/.npmignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/first_express_server/node_modules/mime/.npmignore
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/object-inspect
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "instrumentation": false,
5 | "sourceMap": false,
6 | "reporter": ["text-summary", "text", "html", "json"],
7 | "exclude": [
8 | "coverage",
9 | "example",
10 | "test",
11 | "test-core-js.js"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/example/all.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var Buffer = require('safer-buffer').Buffer;
5 |
6 | var holes = ['a', 'b'];
7 | holes[4] = 'e';
8 | holes[6] = 'g';
9 |
10 | var obj = {
11 | a: 1,
12 | b: [3, 4, undefined, null],
13 | c: undefined,
14 | d: null,
15 | e: {
16 | regex: /^x/i,
17 | buf: Buffer.from('abc'),
18 | holes: holes
19 | },
20 | now: new Date()
21 | };
22 | obj.self = obj;
23 | console.log(inspect(obj));
24 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/example/circular.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var obj = { a: 1, b: [3, 4] };
5 | obj.c = obj;
6 | console.log(inspect(obj));
7 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/example/fn.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var obj = [1, 2, function f(n) { return n + 5; }, 4];
5 | console.log(inspect(obj));
6 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/example/inspect.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /* eslint-env browser */
4 | var inspect = require('../');
5 |
6 | var d = document.createElement('div');
7 | d.setAttribute('id', 'beep');
8 | d.innerHTML = 'woooiiiii';
9 |
10 | console.log(inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]));
11 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/package-support.json:
--------------------------------------------------------------------------------
1 | {
2 | "versions": [
3 | {
4 | "version": "*",
5 | "target": {
6 | "node": "all"
7 | },
8 | "response": {
9 | "type": "time-permitting"
10 | },
11 | "backing": {
12 | "npm-funding": true,
13 | "donations": [
14 | "https://github.com/ljharb",
15 | "https://tidelift.com/funding/github/npm/object-inspect"
16 | ]
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test-core-js.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | require('core-js');
4 |
5 | var inspect = require('./');
6 | var test = require('tape');
7 |
8 | test('Maps', function (t) {
9 | t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}');
10 | t.end();
11 | });
12 |
13 | test('WeakMaps', function (t) {
14 | t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }');
15 | t.end();
16 | });
17 |
18 | test('Sets', function (t) {
19 | t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}');
20 | t.end();
21 | });
22 |
23 | test('WeakSets', function (t) {
24 | t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }');
25 | t.end();
26 | });
27 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/browser/dom.js:
--------------------------------------------------------------------------------
1 | var inspect = require('../../');
2 | var test = require('tape');
3 |
4 | test('dom element', function (t) {
5 | t.plan(1);
6 |
7 | var d = document.createElement('div');
8 | d.setAttribute('id', 'beep');
9 | d.innerHTML = 'woooiiiii';
10 |
11 | t.equal(
12 | inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]),
13 | '[ ...
, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [Object] ] ] ] } ]'
14 | );
15 | });
16 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/circular.js:
--------------------------------------------------------------------------------
1 | var inspect = require('../');
2 | var test = require('tape');
3 |
4 | test('circular', function (t) {
5 | t.plan(2);
6 | var obj = { a: 1, b: [3, 4] };
7 | obj.c = obj;
8 | t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }');
9 |
10 | var double = {};
11 | double.a = [double];
12 | double.b = {};
13 | double.b.inner = double.b;
14 | double.b.obj = double;
15 | t.equal(inspect(double), '{ a: [ [Circular] ], b: { inner: [Circular], obj: [Circular] } }');
16 | });
17 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/deep.js:
--------------------------------------------------------------------------------
1 | var inspect = require('../');
2 | var test = require('tape');
3 |
4 | test('deep', function (t) {
5 | t.plan(4);
6 | var obj = [[[[[[500]]]]]];
7 | t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]');
8 | t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]');
9 | t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]');
10 |
11 | t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]');
12 | });
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/has.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var inspect = require('../');
4 | var test = require('tape');
5 | var mockProperty = require('mock-property');
6 |
7 | test('when Object#hasOwnProperty is deleted', function (t) {
8 | t.plan(1);
9 | var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays
10 |
11 | t.teardown(mockProperty(Array.prototype, 1, { value: 2 })); // this is needed to account for "in" vs "hasOwnProperty"
12 | t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true }));
13 |
14 | t.equal(inspect(arr), '[ 1, , 3 ]');
15 | });
16 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/holes.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var inspect = require('../');
3 |
4 | var xs = ['a', 'b'];
5 | xs[5] = 'f';
6 | xs[7] = 'j';
7 | xs[8] = 'k';
8 |
9 | test('holes', function (t) {
10 | t.plan(1);
11 | t.equal(
12 | inspect(xs),
13 | "[ 'a', 'b', , , , 'f', , 'j', 'k' ]"
14 | );
15 | });
16 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/lowbyte.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var inspect = require('../');
3 |
4 | var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' };
5 |
6 | test('interpolate low bytes', function (t) {
7 | t.plan(1);
8 | t.equal(
9 | inspect(obj),
10 | "{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }"
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/test/undef.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var inspect = require('../');
3 |
4 | var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null };
5 |
6 | test('undef and null', function (t) {
7 | t.plan(1);
8 | t.equal(
9 | inspect(obj),
10 | '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }'
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/object-inspect/util.inspect.js:
--------------------------------------------------------------------------------
1 | module.exports = require('util').inspect;
2 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/path-to-regexp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "path-to-regexp",
3 | "description": "Express style path to RegExp utility",
4 | "version": "0.1.7",
5 | "files": [
6 | "index.js",
7 | "LICENSE"
8 | ],
9 | "scripts": {
10 | "test": "istanbul cover _mocha -- -R spec"
11 | },
12 | "keywords": [
13 | "express",
14 | "regexp"
15 | ],
16 | "component": {
17 | "scripts": {
18 | "path-to-regexp": "index.js"
19 | }
20 | },
21 | "license": "MIT",
22 | "repository": {
23 | "type": "git",
24 | "url": "https://github.com/component/path-to-regexp.git"
25 | },
26 | "devDependencies": {
27 | "mocha": "^1.17.1",
28 | "istanbul": "^0.2.6"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/first_express_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 = 160
11 | quote_type = single
12 |
13 | [test/*]
14 | max_line_length = off
15 |
16 | [LICENSE.md]
17 | indent_size = off
18 |
19 | [*.md]
20 | max_line_length = off
21 |
22 | [*.json]
23 | max_line_length = off
24 |
25 | [Makefile]
26 | max_line_length = off
27 |
28 | [CHANGELOG.md]
29 | indent_style = space
30 | indent_size = 2
31 |
32 | [LICENSE]
33 | indent_size = 2
34 | max_line_length = off
35 |
36 | [coverage/**/*]
37 | indent_size = off
38 | indent_style = off
39 | indent = off
40 | max_line_length = off
41 |
42 | [.nycrc]
43 | indent_style = tab
44 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/qs/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/qs
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with a single custom sponsorship URL
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/qs/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "dist"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/qs/lib/formats.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var replace = String.prototype.replace;
4 | var percentTwenties = /%20/g;
5 |
6 | var Format = {
7 | RFC1738: 'RFC1738',
8 | RFC3986: 'RFC3986'
9 | };
10 |
11 | module.exports = {
12 | 'default': Format.RFC3986,
13 | formatters: {
14 | RFC1738: function (value) {
15 | return replace.call(value, percentTwenties, '+');
16 | },
17 | RFC3986: function (value) {
18 | return String(value);
19 | }
20 | },
21 | RFC1738: Format.RFC1738,
22 | RFC3986: Format.RFC3986
23 | };
24 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/setprototypeof/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function setPrototypeOf(o: any, proto: object | null): any;
2 | export = setPrototypeOf;
3 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/setprototypeof/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | /* eslint no-proto: 0 */
3 | module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties)
4 |
5 | function setProtoOf (obj, proto) {
6 | obj.__proto__ = proto
7 | return obj
8 | }
9 |
10 | function mixinProperties (obj, proto) {
11 | for (var prop in proto) {
12 | if (!Object.prototype.hasOwnProperty.call(obj, prop)) {
13 | obj[prop] = proto[prop]
14 | }
15 | }
16 | return obj
17 | }
18 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/setprototypeof/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | /* eslint-env mocha */
3 | /* eslint no-proto: 0 */
4 | var assert = require('assert')
5 | var setPrototypeOf = require('..')
6 |
7 | describe('setProtoOf(obj, proto)', function () {
8 | it('should merge objects', function () {
9 | var obj = { a: 1, b: 2 }
10 | var proto = { b: 3, c: 4 }
11 | var mergeObj = setPrototypeOf(obj, proto)
12 |
13 | if (Object.getPrototypeOf) {
14 | assert.strictEqual(Object.getPrototypeOf(obj), proto)
15 | } else if ({ __proto__: [] } instanceof Array) {
16 | assert.strictEqual(obj.__proto__, proto)
17 | } else {
18 | assert.strictEqual(obj.a, 1)
19 | assert.strictEqual(obj.b, 2)
20 | assert.strictEqual(obj.c, 4)
21 | }
22 | assert.strictEqual(mergeObj, obj)
23 | })
24 | })
25 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/side-channel/.eslintignore:
--------------------------------------------------------------------------------
1 | coverage/
2 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/side-channel/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "max-lines-per-function": 0,
8 | "max-params": 0,
9 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
10 | },
11 | }
12 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/side-channel/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [ljharb]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: npm/side-channel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/side-channel/.nycrc:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "check-coverage": false,
4 | "reporter": ["text-summary", "text", "html", "json"],
5 | "lines": 86,
6 | "statements": 85.93,
7 | "functions": 82.43,
8 | "branches": 76.06,
9 | "exclude": [
10 | "coverage",
11 | "test"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/side-channel/README.md:
--------------------------------------------------------------------------------
1 | # side-channel
2 | Store information about any JS value in a side channel. Uses WeakMap if available.
3 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/toidentifier/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.1 / 2021-11-14
2 | ==================
3 |
4 | * pref: enable strict mode
5 |
6 | 1.0.0 / 2018-07-09
7 | ==================
8 |
9 | * Initial release
10 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/toidentifier/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * toidentifier
3 | * Copyright(c) 2016 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = toIdentifier
15 |
16 | /**
17 | * Trasform the given string into a JavaScript identifier
18 | *
19 | * @param {string} str
20 | * @returns {string}
21 | * @public
22 | */
23 |
24 | function toIdentifier (str) {
25 | return str
26 | .split(' ')
27 | .map(function (token) {
28 | return token.slice(0, 1).toUpperCase() + token.slice(1)
29 | })
30 | .join('')
31 | .replace(/[^ _0-9a-z]/gi, '')
32 | }
33 |
--------------------------------------------------------------------------------
/first_express_server/node_modules/unpipe/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.0 / 2015-06-14
2 | ==================
3 |
4 | * Initial release
5 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_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 |
--------------------------------------------------------------------------------
/first_express_server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "first_express_server",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "express": "^4.18.2"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/test/node_modules/.bin/telegraf:
--------------------------------------------------------------------------------
1 | ../telegraf/lib/cli.mjs
--------------------------------------------------------------------------------
/test/node_modules/abort-controller/browser.js:
--------------------------------------------------------------------------------
1 | /*globals self, window */
2 | "use strict"
3 |
4 | /*eslint-disable @mysticatea/prettier */
5 | const { AbortController, AbortSignal } =
6 | typeof self !== "undefined" ? self :
7 | typeof window !== "undefined" ? window :
8 | /* otherwise */ undefined
9 | /*eslint-enable @mysticatea/prettier */
10 |
11 | module.exports = AbortController
12 | module.exports.AbortSignal = AbortSignal
13 | module.exports.default = AbortController
14 |
--------------------------------------------------------------------------------
/test/node_modules/abort-controller/browser.mjs:
--------------------------------------------------------------------------------
1 | /*globals self, window */
2 |
3 | /*eslint-disable @mysticatea/prettier */
4 | const { AbortController, AbortSignal } =
5 | typeof self !== "undefined" ? self :
6 | typeof window !== "undefined" ? window :
7 | /* otherwise */ undefined
8 | /*eslint-enable @mysticatea/prettier */
9 |
10 | export default AbortController
11 | export { AbortController, AbortSignal }
12 |
--------------------------------------------------------------------------------
/test/node_modules/abort-controller/polyfill.js:
--------------------------------------------------------------------------------
1 | /*globals require, self, window */
2 | "use strict"
3 |
4 | const ac = require("./dist/abort-controller")
5 |
6 | /*eslint-disable @mysticatea/prettier */
7 | const g =
8 | typeof self !== "undefined" ? self :
9 | typeof window !== "undefined" ? window :
10 | typeof global !== "undefined" ? global :
11 | /* otherwise */ undefined
12 | /*eslint-enable @mysticatea/prettier */
13 |
14 | if (g) {
15 | if (typeof g.AbortController === "undefined") {
16 | g.AbortController = ac.AbortController
17 | }
18 | if (typeof g.AbortSignal === "undefined") {
19 | g.AbortSignal = ac.AbortSignal
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/test/node_modules/abort-controller/polyfill.mjs:
--------------------------------------------------------------------------------
1 | /*globals self, window */
2 | import * as ac from "./dist/abort-controller"
3 |
4 | /*eslint-disable @mysticatea/prettier */
5 | const g =
6 | typeof self !== "undefined" ? self :
7 | typeof window !== "undefined" ? window :
8 | typeof global !== "undefined" ? global :
9 | /* otherwise */ undefined
10 | /*eslint-enable @mysticatea/prettier */
11 |
12 | if (g) {
13 | if (typeof g.AbortController === "undefined") {
14 | g.AbortController = ac.AbortController
15 | }
16 | if (typeof g.AbortSignal === "undefined") {
17 | g.AbortSignal = ac.AbortSignal
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/node_modules/buffer-alloc-unsafe/index.js:
--------------------------------------------------------------------------------
1 | function allocUnsafe (size) {
2 | if (typeof size !== 'number') {
3 | throw new TypeError('"size" argument must be a number')
4 | }
5 |
6 | if (size < 0) {
7 | throw new RangeError('"size" argument must not be negative')
8 | }
9 |
10 | if (Buffer.allocUnsafe) {
11 | return Buffer.allocUnsafe(size)
12 | } else {
13 | return new Buffer(size)
14 | }
15 | }
16 |
17 | module.exports = allocUnsafe
18 |
--------------------------------------------------------------------------------
/test/node_modules/buffer-alloc-unsafe/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "buffer-alloc-unsafe",
3 | "version": "1.1.0",
4 | "license": "MIT",
5 | "repository": "LinusU/buffer-alloc-unsafe",
6 | "files": [
7 | "index.js"
8 | ],
9 | "scripts": {
10 | "test": "standard && node test"
11 | },
12 | "devDependencies": {
13 | "standard": "^7.1.2"
14 | },
15 | "keywords": [
16 | "allocUnsafe",
17 | "allocate",
18 | "buffer allocUnsafe",
19 | "buffer unsafe allocate",
20 | "buffer",
21 | "ponyfill",
22 | "unsafe allocate"
23 | ]
24 | }
25 |
--------------------------------------------------------------------------------
/test/node_modules/buffer-alloc/index.js:
--------------------------------------------------------------------------------
1 | var bufferFill = require('buffer-fill')
2 | var allocUnsafe = require('buffer-alloc-unsafe')
3 |
4 | module.exports = function alloc (size, fill, encoding) {
5 | if (typeof size !== 'number') {
6 | throw new TypeError('"size" argument must be a number')
7 | }
8 |
9 | if (size < 0) {
10 | throw new RangeError('"size" argument must not be negative')
11 | }
12 |
13 | if (Buffer.alloc) {
14 | return Buffer.alloc(size, fill, encoding)
15 | }
16 |
17 | var buffer = allocUnsafe(size)
18 |
19 | if (size === 0) {
20 | return buffer
21 | }
22 |
23 | if (fill === undefined) {
24 | return bufferFill(buffer, 0)
25 | }
26 |
27 | if (typeof encoding !== 'string') {
28 | encoding = undefined
29 | }
30 |
31 | return bufferFill(buffer, fill, encoding)
32 | }
33 |
--------------------------------------------------------------------------------
/test/node_modules/buffer-alloc/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "buffer-alloc",
3 | "version": "1.2.0",
4 | "license": "MIT",
5 | "repository": "LinusU/buffer-alloc",
6 | "files": [
7 | "index.js"
8 | ],
9 | "scripts": {
10 | "test": "standard && node test"
11 | },
12 | "dependencies": {
13 | "buffer-alloc-unsafe": "^1.1.0",
14 | "buffer-fill": "^1.0.0"
15 | },
16 | "devDependencies": {
17 | "standard": "^7.1.2"
18 | },
19 | "keywords": [
20 | "alloc",
21 | "allocate",
22 | "buffer alloc",
23 | "buffer allocate",
24 | "buffer"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------
/test/node_modules/buffer-fill/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "buffer-fill",
3 | "version": "1.0.0",
4 | "license": "MIT",
5 | "repository": "LinusU/buffer-fill",
6 | "files": [
7 | "index.js"
8 | ],
9 | "scripts": {
10 | "test": "standard && node test"
11 | },
12 | "devDependencies": {
13 | "buffer-alloc-unsafe": "^1.1.0",
14 | "standard": "^7.1.2"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/test/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer / nwjs process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/test/node_modules/mri/index.d.ts:
--------------------------------------------------------------------------------
1 | type Dict = Record;
2 | type Arrayable = T | T[];
3 | type Default = Dict;
4 |
5 | declare function mri(args?: string[], options?: mri.Options): mri.Argv;
6 |
7 | declare namespace mri {
8 | export interface Options {
9 | boolean?: Arrayable;
10 | string?: Arrayable;
11 | alias?: Dict>;
12 | default?: Dict;
13 | unknown?(flag: string): void;
14 | }
15 |
16 | export type Argv = T & {
17 | _: string[];
18 | }
19 | }
20 |
21 | export = mri;
22 |
--------------------------------------------------------------------------------
/test/node_modules/sandwich-stream/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_size = 4
6 | indent_style = space
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.md]
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/test/node_modules/sandwich-stream/LICENCE:
--------------------------------------------------------------------------------
1 | Copyright 2013 Paul Connolley (connrs)
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/format.d.ts:
--------------------------------------------------------------------------------
1 | export * from './typings/format'
2 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/format.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/format')
2 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/future.d.ts:
--------------------------------------------------------------------------------
1 | export * from './typings/future'
2 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/future.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/future')
2 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/lib/core/helpers/compact.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.compactOptions = void 0;
4 | function compactOptions(options) {
5 | if (!options) {
6 | return options;
7 | }
8 | const keys = Object.keys(options);
9 | const compactKeys = keys.filter((key) => options[key] !== undefined);
10 | const compactEntries = compactKeys.map((key) => [key, options[key]]);
11 | return Object.fromEntries(compactEntries);
12 | }
13 | exports.compactOptions = compactOptions;
14 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/lib/core/network/error.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.TelegramError = void 0;
4 | class TelegramError extends Error {
5 | constructor(response, on = {}) {
6 | super(`${response.error_code}: ${response.description}`);
7 | this.response = response;
8 | this.on = on;
9 | }
10 | get code() {
11 | return this.response.error_code;
12 | }
13 | get description() {
14 | return this.response.description;
15 | }
16 | get parameters() {
17 | return this.response.parameters;
18 | }
19 | }
20 | exports.TelegramError = TelegramError;
21 | exports.default = TelegramError;
22 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/lib/deunionize.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | exports.deunionize = void 0;
4 | /**
5 | * Expose properties from all union variants.
6 | * @see https://github.com/telegraf/telegraf/issues/1388#issuecomment-791573609
7 | * @see https://millsp.github.io/ts-toolbelt/modules/union_strict.html
8 | */
9 | function deunionize(t) {
10 | return t;
11 | }
12 | exports.deunionize = deunionize;
13 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/lib/middleware.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/lib/telegram-types.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | /** @format */
3 | Object.defineProperty(exports, "__esModule", { value: true });
4 | exports.Markup = void 0;
5 | var markup_1 = require("./markup");
6 | Object.defineProperty(exports, "Markup", { enumerable: true, get: function () { return markup_1.Markup; } });
7 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/src/core/helpers/compact.ts:
--------------------------------------------------------------------------------
1 | export function compactOptions(
2 | options?: T
3 | ): T | undefined {
4 | if (!options) {
5 | return options
6 | }
7 |
8 | const keys = Object.keys(options) as Array
9 | const compactKeys = keys.filter((key) => options[key] !== undefined)
10 | const compactEntries = compactKeys.map((key) => [key, options[key]])
11 | return Object.fromEntries(compactEntries)
12 | }
13 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/src/core/network/error.ts:
--------------------------------------------------------------------------------
1 | import { ResponseParameters } from '../types/typegram'
2 |
3 | interface ErrorPayload {
4 | error_code: number
5 | description: string
6 | parameters?: ResponseParameters
7 | }
8 | export class TelegramError extends Error {
9 | constructor(readonly response: ErrorPayload, readonly on = {}) {
10 | super(`${response.error_code}: ${response.description}`)
11 | }
12 |
13 | get code() {
14 | return this.response.error_code
15 | }
16 |
17 | get description() {
18 | return this.response.description
19 | }
20 |
21 | get parameters() {
22 | return this.response.parameters
23 | }
24 | }
25 |
26 | export default TelegramError
27 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/src/index.ts:
--------------------------------------------------------------------------------
1 | export { Telegraf } from './telegraf'
2 | export { Context } from './context'
3 | export { Composer, NarrowedContext } from './composer'
4 | export { Middleware, MiddlewareFn, MiddlewareObj } from './middleware'
5 | export { Router } from './router'
6 | export { TelegramError } from './core/network/error'
7 | export { Telegram } from './telegram'
8 | export * as Types from './telegram-types'
9 |
10 | export * as Markup from './markup'
11 | export * as Input from './input'
12 | export * as Format from './format'
13 |
14 | export { deunionize } from './deunionize'
15 | export { session, MemorySessionStore } from './session'
16 |
17 | export * as Scenes from './scenes'
18 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/src/middleware.ts:
--------------------------------------------------------------------------------
1 | import { Context } from './context'
2 |
3 | /*
4 | next's parameter is in a contravariant position, and thus, trying to type it
5 | prevents assigning `MiddlewareFn`
6 | to `MiddlewareFn`.
7 | Middleware passing the parameter should be a separate type instead.
8 | */
9 | export type MiddlewareFn = (
10 | ctx: C,
11 | next: () => Promise
12 | ) => Promise | void
13 |
14 | export interface MiddlewareObj {
15 | middleware: () => MiddlewareFn
16 | }
17 |
18 | export type Middleware = MiddlewareFn | MiddlewareObj
19 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/src/scenes/index.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @see https://github.com/telegraf/telegraf/issues/705#issuecomment-549056045
3 | * @see https://www.npmjs.com/package/telegraf-stateless-question
4 | * @packageDocumentation
5 | */
6 |
7 | export { Stage } from './stage'
8 | export {
9 | SceneContext,
10 | SceneSession,
11 | default as SceneContextScene,
12 | SceneSessionData,
13 | } from './context'
14 | export { BaseScene } from './base'
15 | export { WizardScene } from './wizard'
16 | export {
17 | WizardContext,
18 | WizardSession,
19 | default as WizardContextWizard,
20 | WizardSessionData,
21 | } from './wizard/context'
22 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/types.d.ts:
--------------------------------------------------------------------------------
1 | /** Experimental exports, shape of type exports may change in the future */
2 | export * from './typings/core/types/typegram'
3 | export * as Convenience from './typings/telegram-types'
4 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/types.js:
--------------------------------------------------------------------------------
1 | // Just an empty export to allow eslint to think there's an actual module here
2 | // types.d.ts is the file we actually want to import
3 | module.exports = {}
4 |
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/helpers/compact.d.ts:
--------------------------------------------------------------------------------
1 | export declare function compactOptions(options?: T): T | undefined;
4 | //# sourceMappingURL=compact.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/helpers/compact.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"compact.d.ts","sourceRoot":"","sources":["../../../src/core/helpers/compact.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EACjE,OAAO,CAAC,EAAE,CAAC,GACV,CAAC,GAAG,SAAS,CASf"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/error.d.ts:
--------------------------------------------------------------------------------
1 | import { ResponseParameters } from '../types/typegram';
2 | interface ErrorPayload {
3 | error_code: number;
4 | description: string;
5 | parameters?: ResponseParameters;
6 | }
7 | export declare class TelegramError extends Error {
8 | readonly response: ErrorPayload;
9 | readonly on: {};
10 | constructor(response: ErrorPayload, on?: {});
11 | get code(): number;
12 | get description(): string;
13 | get parameters(): ResponseParameters | undefined;
14 | }
15 | export default TelegramError;
16 | //# sourceMappingURL=error.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/error.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/core/network/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEtD,UAAU,YAAY;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC;AACD,qBAAa,aAAc,SAAQ,KAAK;IAC1B,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAAE,QAAQ,CAAC,EAAE;gBAAnC,QAAQ,EAAE,YAAY,EAAW,EAAE,KAAK;IAI7D,IAAI,IAAI,WAEP;IAED,IAAI,WAAW,WAEd;IAED,IAAI,UAAU,mCAEb;CACF;AAED,eAAe,aAAa,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/multipart-stream.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | import SandwichStream from 'sandwich-stream';
4 | interface Part {
5 | headers: {
6 | [key: string]: string;
7 | };
8 | body: NodeJS.ReadStream | NodeJS.ReadableStream | string;
9 | }
10 | declare class MultipartStream extends SandwichStream {
11 | constructor(boundary: string);
12 | addPart(part: Part): void;
13 | static isStream(stream: unknown): stream is {
14 | pipe: MultipartStream['pipe'];
15 | };
16 | }
17 | export default MultipartStream;
18 | //# sourceMappingURL=multipart-stream.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/multipart-stream.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"multipart-stream.d.ts","sourceRoot":"","sources":["../../../src/core/network/multipart-stream.ts"],"names":[],"mappings":";;AAEA,OAAO,cAAc,MAAM,iBAAiB,CAAA;AAG5C,UAAU,IAAI;IACZ,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IAClC,IAAI,EAAE,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,cAAc,GAAG,MAAM,CAAA;CACzD;AAED,cAAM,eAAgB,SAAQ,cAAc;gBAC9B,QAAQ,EAAE,MAAM;IAQ5B,OAAO,CAAC,IAAI,EAAE,IAAI;IAclB,MAAM,CAAC,QAAQ,CACb,MAAM,EAAE,OAAO,GACd,MAAM,IAAI;QAAE,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;KAAE;CAO/C;AAED,eAAe,eAAe,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/polling.d.ts:
--------------------------------------------------------------------------------
1 | import * as tg from '../types/typegram';
2 | import * as tt from '../../telegram-types';
3 | import ApiClient from './client';
4 | export declare class Polling {
5 | private readonly telegram;
6 | private readonly allowedUpdates;
7 | private readonly abortController;
8 | private skipOffsetSync;
9 | private offset;
10 | constructor(telegram: ApiClient, allowedUpdates: readonly tt.UpdateType[]);
11 | private [Symbol.asyncIterator];
12 | private syncUpdateOffset;
13 | loop(handleUpdate: (updates: tg.Update) => Promise): Promise;
14 | stop(): void;
15 | }
16 | //# sourceMappingURL=polling.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/polling.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"polling.d.ts","sourceRoot":"","sources":["../../../src/core/network/polling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE1C,OAAO,SAAS,MAAM,UAAU,CAAA;AAWhC,qBAAa,OAAO;IAKhB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,cAAc;IALjC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAwB;IACxD,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,MAAM,CAAI;gBAEC,QAAQ,EAAE,SAAS,EACnB,cAAc,EAAE,SAAS,EAAE,CAAC,UAAU,EAAE;YAG5C,CAAC,MAAM,CAAC,aAAa,CAAC;YA+CvB,gBAAgB;IAMxB,IAAI,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;IAgB9D,IAAI;CAGL"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/webhook.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import * as http from 'http';
3 | import { type Update } from '../types/typegram';
4 | export default function generateWebhook(filter: (req: http.IncomingMessage) => boolean, updateHandler: (update: Update, res: http.ServerResponse) => Promise): (req: http.IncomingMessage & {
5 | body?: Update;
6 | }, res: http.ServerResponse, next?: () => void) => Promise;
7 | //# sourceMappingURL=webhook.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/core/network/webhook.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../src/core/network/webhook.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAE5B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAG/C,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,KAAK,OAAO,EAC9C,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,SAGnE,KAAK,eAAe,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,OACxC,KAAK,cAAc,eACb,IAAI,KAKd,QAAQ,IAAI,CAAC,CAwCjB"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/deunionize.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"deunionize.d.ts","sourceRoot":"","sources":["../src/deunionize.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM,CAChB,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,CAAC,GAAG,SAAS,IACX,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAEpD,oBAAY,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,MAAM,CAAC,GAAG,KAAK,CAAA;AAE9D,aAAK,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI;IAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,SAAS;CAAE,CAAA;AAE/E;;GAEG;AACH,oBAAY,UAAU,CACpB,CAAC,SAAS,MAAM,GAAG,SAAS,EAC5B,CAAC,SAAS,CAAC,GAAG,CAAC,IACb,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AAE9E;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,SAAS,EAAE,CAAC,EAAE,CAAC,oBAE5D"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/format.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAuB,MAAM,2BAA2B,CAAA;AAE1E,OAAO,EAAE,SAAS,EAAE,CAAA;AAEpB,eAAO,MAAM,GAAG,kGAAqB,CAAA;AACrC,eAAO,MAAM,IAAI,kGAAe,CAAA;AAChC,eAAO,MAAM,MAAM,kGAAiB,CAAA;AACpC,eAAO,MAAM,OAAO,kGAAkB,CAAA;AACtC,eAAO,MAAM,aAAa,kGAAwB,CAAA;AAClD,eAAO,MAAM,SAAS,kGAAoB,CAAA;AAC1C,eAAO,MAAM,IAAI,oFAAe,CAAA;AAChC,eAAO,MAAM,GAAG,aAAc,MAAM,uFAA8B,CAAA;AAElE,eAAO,MAAM,IAAI,YAAa,MAAM,GAAG,SAAS,OAAO,MAAM,cACT,CAAA;AAEpD,eAAO,MAAM,OAAO,SAAU,MAAM,GAAG,SAAS,QAAQ,MAAM,GAAG,IAAI,cAGZ,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/future.d.ts:
--------------------------------------------------------------------------------
1 | import Context from './context';
2 | import { Middleware } from './middleware';
3 | /**
4 | * Sets up Context to use the new reply methods.
5 | * This middleware makes `ctx.reply()` and `ctx.replyWith*()` methods will actually reply to the message they are replying to.
6 | * Use `ctx.sendMessage()` to send a message in chat without replying to it.
7 | *
8 | * If the message to reply is deleted, `reply()` will send a normal message.
9 | * If the update is not a message and we are unable to reply, `reply()` will send a normal message.
10 | */
11 | export declare function useNewReplies(): Middleware;
12 | //# sourceMappingURL=future.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/future.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"future.d.ts","sourceRoot":"","sources":["../src/future.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AA2KzC;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,CA0BhE"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | export { Telegraf } from './telegraf';
2 | export { Context } from './context';
3 | export { Composer, NarrowedContext } from './composer';
4 | export { Middleware, MiddlewareFn, MiddlewareObj } from './middleware';
5 | export { Router } from './router';
6 | export { TelegramError } from './core/network/error';
7 | export { Telegram } from './telegram';
8 | export * as Types from './telegram-types';
9 | export * as Markup from './markup';
10 | export * as Input from './input';
11 | export * as Format from './format';
12 | export { deunionize } from './deunionize';
13 | export { session, MemorySessionStore } from './session';
14 | export * as Scenes from './scenes';
15 | //# sourceMappingURL=index.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/index.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/input.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../src/input.ts"],"names":[],"mappings":";;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD;;;;GAIG;AAEH,eAAO,MAAM,aAAa,SAAU,MAAM,aAAa,MAAM,KAAG,SAAyC,CAAA;AAEzG;;;;GAIG;AAEH,eAAO,MAAM,UAAU,WAAY,MAAM,aAAa,MAAM,KAAG,SAA2C,CAAA;AAE1G;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,WAAY,qBAAqB,aAAa,MAAM,KAAG,SAA2C,CAAA;AAEjI;;;;GAIG;AAEH,eAAO,MAAM,aAAa,QAAS,MAAM,GAAG,GAAG,aAAa,MAAM,KAAG,SAAgD,CAAA;AAErH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,QAAS,MAAM,GAAG,GAAG,KAAG,MAAwB,CAAA;AAEpE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,MAAgB,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/middleware.d.ts:
--------------------------------------------------------------------------------
1 | import { Context } from './context';
2 | export declare type MiddlewareFn = (ctx: C, next: () => Promise) => Promise | void;
3 | export interface MiddlewareObj {
4 | middleware: () => MiddlewareFn;
5 | }
6 | export declare type Middleware = MiddlewareFn | MiddlewareObj;
7 | //# sourceMappingURL=middleware.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/middleware.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAQnC,oBAAY,YAAY,CAAC,CAAC,SAAS,OAAO,IAAI,CAC5C,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KACtB,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;AAE5B,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,OAAO;IAC9C,UAAU,EAAE,MAAM,YAAY,CAAC,CAAC,CAAC,CAAA;CAClC;AAED,oBAAY,UAAU,CAAC,CAAC,SAAS,OAAO,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/scenes/index.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * @see https://github.com/telegraf/telegraf/issues/705#issuecomment-549056045
3 | * @see https://www.npmjs.com/package/telegraf-stateless-question
4 | * @packageDocumentation
5 | */
6 | export { Stage } from './stage';
7 | export { SceneContext, SceneSession, default as SceneContextScene, SceneSessionData, } from './context';
8 | export { BaseScene } from './base';
9 | export { WizardScene } from './wizard';
10 | export { WizardContext, WizardSession, default as WizardContextWizard, WizardSessionData, } from './wizard/context';
11 | //# sourceMappingURL=index.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/scenes/index.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scenes/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,OAAO,IAAI,iBAAiB,EAC5B,gBAAgB,GACjB,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EACL,aAAa,EACb,aAAa,EACb,OAAO,IAAI,mBAAmB,EAC9B,iBAAiB,GAClB,MAAM,kBAAkB,CAAA"}
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/util.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { FmtString } from './format';
3 | export declare const env: NodeJS.ProcessEnv;
4 | export declare type Expand = T extends object ? T extends infer O ? {
5 | [K in keyof O]: O[K];
6 | } : never : T;
7 | declare type MaybeExtra = (Extra & {
8 | caption?: string;
9 | }) | undefined;
10 | export declare function fmtCaption>(extra?: Extra): MaybeExtra;
13 | export declare function deprecate(method: string, ignorable: string | undefined, use: string | undefined, see?: string): void;
14 | export {};
15 | //# sourceMappingURL=util.d.ts.map
--------------------------------------------------------------------------------
/test/node_modules/telegraf/typings/util.d.ts.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEpC,eAAO,MAAM,GAAG,mBAAc,CAAA;AAE9B,oBAAY,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACpC,CAAC,SAAS,MAAM,CAAC,GACf;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,GACxB,KAAK,GACP,CAAC,CAAA;AAEL,aAAK,UAAU,CAAC,KAAK,IAAI,CAAC,KAAK,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,CAAA;AAEnE,wBAAgB,UAAU,CACxB,KAAK,SAAS;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAYlC;AAED,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
--------------------------------------------------------------------------------
/test/node_modules/tr46/.npmignore:
--------------------------------------------------------------------------------
1 | scripts/
2 | test/
3 |
4 | !lib/mapping_table.json
5 |
--------------------------------------------------------------------------------
/test/node_modules/tr46/lib/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/test/node_modules/tr46/lib/.gitkeep
--------------------------------------------------------------------------------
/test/node_modules/typegram/.editorconfig:
--------------------------------------------------------------------------------
1 | [*]
2 | end_of_line = lf
3 | charset = utf-8
4 | indent_style = space
5 | indent_size = 2
6 | insert_final_newline = true
7 | trim_trailing_whitespace = true
8 | max_line_length = 80
9 |
--------------------------------------------------------------------------------
/test/node_modules/typegram/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [KnorpelSenf]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
14 |
--------------------------------------------------------------------------------
/test/node_modules/typegram/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from "./api";
2 | export * from "./default";
3 | export * from "./inline";
4 | export * from "./manage";
5 | export * from "./markup";
6 | export * from "./menu-button";
7 | export * from "./message";
8 | export * from "./passport";
9 | export * from "./payment";
10 | export * from "./proxied";
11 | export * from "./update";
12 |
--------------------------------------------------------------------------------
/test/node_modules/typegram/index.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/singhsanket143/Sep-2022-Node-Batch-Codes/98b29a9f014f20ca054f6b2f59c96b9da60486ae/test/node_modules/typegram/index.js
--------------------------------------------------------------------------------
/test/node_modules/webidl-conversions/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "webidl-conversions",
3 | "version": "3.0.1",
4 | "description": "Implements the WebIDL algorithms for converting to and from JavaScript values",
5 | "main": "lib/index.js",
6 | "scripts": {
7 | "test": "mocha test/*.js"
8 | },
9 | "repository": "jsdom/webidl-conversions",
10 | "keywords": [
11 | "webidl",
12 | "web",
13 | "types"
14 | ],
15 | "files": [
16 | "lib/"
17 | ],
18 | "author": "Domenic Denicola (https://domenic.me/)",
19 | "license": "BSD-2-Clause",
20 | "devDependencies": {
21 | "mocha": "^1.21.4"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/test/node_modules/whatwg-url/lib/public-api.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | exports.URL = require("./URL").interface;
4 | exports.serializeURL = require("./url-state-machine").serializeURL;
5 | exports.serializeURLOrigin = require("./url-state-machine").serializeURLOrigin;
6 | exports.basicURLParse = require("./url-state-machine").basicURLParse;
7 | exports.setTheUsername = require("./url-state-machine").setTheUsername;
8 | exports.setThePassword = require("./url-state-machine").setThePassword;
9 | exports.serializeHost = require("./url-state-machine").serializeHost;
10 | exports.serializeInteger = require("./url-state-machine").serializeInteger;
11 | exports.parseURL = require("./url-state-machine").parseURL;
12 |
--------------------------------------------------------------------------------
/test/node_modules/whatwg-url/lib/utils.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | module.exports.mixin = function mixin(target, source) {
4 | const keys = Object.getOwnPropertyNames(source);
5 | for (let i = 0; i < keys.length; ++i) {
6 | Object.defineProperty(target, keys[i], Object.getOwnPropertyDescriptor(source, keys[i]));
7 | }
8 | };
9 |
10 | module.exports.wrapperSymbol = Symbol("wrapper");
11 | module.exports.implSymbol = Symbol("impl");
12 |
13 | module.exports.wrapperForImpl = function (impl) {
14 | return impl[module.exports.wrapperSymbol];
15 | };
16 |
17 | module.exports.implForWrapper = function (wrapper) {
18 | return wrapper[module.exports.implSymbol];
19 | };
20 |
21 |
--------------------------------------------------------------------------------
/test/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "test",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "telegraf": "^4.10.0"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------