{"_id":"@crabas0npm/quis-tenetur-nam","name":"@crabas0npm/quis-tenetur-nam","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@crabas0npm/quis-tenetur-nam","version":"1.0.0","description":"This project is ment to be used with Microsoft Azure Functions. This simple wrapper makes it easier to work with Azure Functions since common HTTP methods are wrapped to individual function calls within a specfic Azure Function. And in addition a function","main":"index.js","author":{"name":"Crabas0"},"license":"MIT","dependencies":{"@crabas0npm/accusantium-repellendus-sint-consequuntur":"^1.0.0","@crabas0npm/alias-consequuntur-hic-enim":"^1.0.0","@crabas0npm/aliquid-vitae-magnam-perspiciatis":"^1.0.0","@crabas0npm/aut-cupiditate-quam-dicta":"^1.0.0","@crabas0npm/blanditiis-est-molestias-a":"^1.0.0","@crabas0npm/consectetur-impedit-exercitationem-error":"^1.0.0","@crabas0npm/corporis-rerum-reprehenderit-voluptates":"^1.0.0","@crabas0npm/delectus-dolorem-consectetur-corrupti":"^1.0.0","@crabas0npm/ea-nisi-earum-mollitia":"^1.0.0","@crabas0npm/et-perspiciatis-eius-modi":"^1.0.0","@crabas0npm/expedita-magnam-quia-perferendis":"^1.0.0","@crabas0npm/expedita-optio-recusandae-nesciunt":"^1.0.0","@crabas0npm/expedita-voluptas-corrupti-ullam":"^1.0.0","@crabas0npm/facilis-doloribus-provident-optio":"^1.0.0","@crabas0npm/fugiat-necessitatibus-recusandae-quo":"^1.0.0","@crabas0npm/maxime-sequi-nam-facere":"^1.0.0","@crabas0npm/minus-iure-ipsum-temporibus":"^1.0.0","@crabas0npm/nulla-minima-vero-facere":"^1.0.0","@crabas0npm/odio-exercitationem-ducimus-provident":"^1.0.0","@crabas0npm/officia-nostrum-at-hic":"^1.0.0","@crabas0npm/officiis-labore-tempora-sint":"^1.0.0","@crabas0npm/omnis-neque-asperiores-rerum":"^1.0.0","@crabas0npm/optio-sequi-optio-quidem":"^1.0.0","@crabas0npm/porro-voluptatem-consectetur-beatae":"^1.0.0","@crabas0npm/possimus-sit-repellat-perspiciatis":"^1.0.0","@crabas0npm/quo-dolorem-molestiae-porro":"^1.0.0","@crabas0npm/ratione-nisi-deleniti-provident":"^1.0.0","@crabas0npm/ratione-voluptatibus-quo-sed":"^1.0.0","@crabas0npm/repellendus-illum-cum-fugit":"^1.0.0","@crabas0npm/unde-quos-asperiores-modi":"^1.0.0","@diahkomalasarinpm/praesentium-sint-dolorem":"^1.0.0","@f1stnpm2/adipisci-adipisci-praesentium":"^1.0.0","@wemnyelezxnpm/delectus-repellendus-neque":"^1.0.0"},"keywords":["toolkit","prototype","Object","offset","popmotion","guid","YAML","styleguide","option","http","regex","css-in-js","Array.prototype.flatMap","inspect","drop","RegExp#flags","signal","serialization","optimizer","Object.getPrototypeOf","typanion","macos","opens","descriptor","is","getPrototypeOf","WeakSet","argument","findLast","parse","fs","Int32Array","ArrayBuffer","dom-testing-library","es2017","extend","promises","touch","JSON","call-bound","deep","slice","hasOwn","es7","ast","api","utils","spawn","redux-toolkit","performant","weakmap","isConcatSpreadable","cjk","AsyncIterator","ECMAScript 2023","reduce","language","sanitization","website","negative zero","javascript","Uint16Array","arraybuffer","Stream","exit","rfc4122","clone","getintrinsic","some","fixed-width","value","irq","walk","queueMicrotask","tester","ECMAScript 2020","stream","RegExp.prototype.flags","properties","json-schema-validation","deterministic","serialize","Object.fromEntries","class-validator","codes","const","defineProperty","nope","WebSocket","crypt","collection.es6","trimLeft","redact","modules","urls","limited","shrinkwrap","file","terminal","name","fastcopy","process","hardlinks","jsdiff","typed","https","-0","bound","ajv","fast","TypeScript","eslintconfig","chrome","readablestream","contains","ie","once","postcss","up","fast-clone","variables","assert","settings","JSON-Schema","Array.prototype.contains","point-free","mixins","waapi","bootstrap css","String.prototype.trim","starter","windows","vest","create","css less","limit","width","picomatch","ava","prune","graphql","util.inspect","fp","rm -fr","getter","ES2017","rate","syntaxerror","i18n","es","immutable","wordwrap","flat","package manager","ratelimit","wrap","toStringTag","less","editor","tools","string","toArray","internal","gdpr","ender","regexp","invariant","console","find","full-width","form","copy","typescript","styled-components","l10n","password","@@toStringTag","gradients css","has","eventDispatcher","map","symbols","estree","flags","art","watcher","efficient","logger","uninstall","escape","full","resolve","RFC-6455","handlers","queue","tty","react-hook-form","forms","korean","iterator","stateless","ES2015","ECMAScript 2015","curried","regular expression","exe","valid","spec","validate","rangeerror","Array.prototype.flatten","read","getopt","256","performance","Array.prototype.flat","traverse","lru","walking","whatwg","setter","dayjs","spinner","ArrayBuffer#slice","classes","mkdirp","classnames","preprocessor","make dir","flatten","_.extend","eslint-plugin","nodejs","Array","drag","sorted","getOwnPropertyDescriptor","app","parent","parser","less css","3d","request","env","typeof","utilities","object","BigInt64Array","start","symbol","TypeBox","es2016","ECMAScript 2022","user-streams","view","bcrypt","stringifier","ArrayBuffer.prototype.slice","autoprefixer","interrupts","authentication","fantasy-land","classname","eslint","jest","trim","mime","stable","ES","command","scheme","bundler","expression","chinese","connect","flatMap","lazy","computed-types","banner","cmd","speed","mocha","es6","datastructure","ReactiveX","enumerable","tc39","launch","chromium","accessibility","tape","Iterator","regular","column","rapid","linux","runtime","dotenv","real-time","arrays","prop","stringify","private data","redux","break","js","mkdir","electron","Float32Array","awesomesauce","native","es-abstract","formatting","sequence","values","colors","bdd","Array.prototype.findLast","xdg","throttle","styles","Underscore","loading","lesscss","json-schema-validator","less mixins","tacit","Set","wget","Uint32Array","ES3","ESnext","groupBy","BigUint64Array","trimRight","Uint8ClampedArray","Object.defineProperty","arktype","pipe","assertion","buffers","multi-package","callbound","recursive","xdg-open","group","cors","jasmine","circular","validator","yaml","bluebird","warning","debug","a11y","id","Map","spinners","consume","transpiler","toobject","shared","monorepo","ECMAScript 2016","es8","react-hooks","fast-deep-copy","utility","descriptors","es-shims","setImmediate","rgb","Reflect.getPrototypeOf","reuse","status","persistent","telephone","protobuf","browserslist","task","cli","weakset","config","typedarray","protocol-buffers","Rx","intrinsic","CSSStyleDeclaration","setPrototypeOf","toSorted","directory","var","idle","inference","fast-copy","functions","make","japanese","term","libphonenumber","reducer","busy","ES6","move","mkdirs","ECMAScript 6","mru","Object.entries","eslintplugin","testing","transpile","push","columns","dom","command-line","types","deep-clone","Object.keys","throat","jwt","time","Symbol.toStringTag","crypto","patch","ES8","link","side","yup","node","bind","schema","safe","typedarrays","deep-copy","middleware","code points","metadata","framer","async","joi","default","look","output","Float64Array","dependency manager","Observable","ES7","diff","find-up","ES2016","log","byte","test","pretty","last","ES2023","Array.prototype.includes","less compiler","scheme-validation","environment","bundling","phone","hooks","visual","unicode","filter","hookform","compare","progress","6to5","higher-order","which","String.prototype.matchAll","worker","module","util","flag","ECMAScript 5","airbnb","wordbreak","accessor","ES2022","rmdir","fetch","require","tdd","typesafe","generics","character","characters","key","packages","package","pure","private","dir","Function.prototype.name","structuredClone","workspace:*","moment","type","dataView","ecmascript","import","styling","fastify","findLastIndex","shell","url","sameValueZero","Streams","pyyaml","proto","react animation","superagent","qs","asserts","json-schema","querystring","configurable","entries","streams2","executable","es-shim API","ascii","channel","0","opener","bootstrap less","matches","date","extra","exit-code","installer","mimetypes","query","mobile","typeerror","equality","operating-system","set","await","less.js","wait","three","immer","minimal","ajax","WeakMap","signals","folder","fsevents","arguments","emoji","ES2018","form-validation","Array.prototype.findLastIndex","RxJS","merge","karma","browserlist","from","child","HyBi","css variable","stylesheet","WebSockets","cache","emit","ponyfill","fast-deep-clone","tap","positive","equal","sigterm"],"repository":{"type":"git","url":"git+https://github.com/crabas0npm/quis-tenetur-nam.git"},"homepage":"https://github.com/crabas0npm/quis-tenetur-nam/#readme","bugs":{"url":"https://github.com/crabas0npm/quis-tenetur-nam/issues"},"packageManager":"yarn@4.1.1","_id":"@crabas0npm/quis-tenetur-nam@1.0.0","gitHead":"816f04fbf7083a0ffb00e9c3575bfd51d83533b6","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-56U7Wm/vEKpUPUZ3A4MqjVRE1ajCK+MmMT9LV1mLlEJaAf634tbZTlXdF+v/xF74EC8jTEAuV1y6L4yrE1MIYA==","shasum":"0a630f1eac39565ffe1b01f6edbea43c5a38a3cc","tarball":"https://registry.npmjs.org/@crabas0npm/quis-tenetur-nam/-/quis-tenetur-nam-1.0.0.tgz","fileCount":10,"unpackedSize":17506,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIbxmqmajZpBgRSO8hvgiiuJMtpTP3NtIk9tG+7U0tfAiEA79dIcoPiFEnAfYS76p+onx6yNKY1RDLfstKgPgMhFGY="}]},"_npmUser":{"name":"thanhl4861","email":"thanhl4861@gmail.com"},"directories":{},"maintainers":[{"name":"thanhl4861","email":"thanhl4861@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quis-tenetur-nam_1.0.0_1714028053027_0.2671498091769373"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-25T06:54:12.908Z","1.0.0":"2024-04-25T06:54:13.162Z","modified":"2024-04-25T06:54:13.475Z"},"maintainers":[{"name":"thanhl4861","email":"thanhl4861@gmail.com"}],"description":"This project is ment to be used with Microsoft Azure Functions. This simple wrapper makes it easier to work with Azure Functions since common HTTP methods are wrapped to individual function calls within a specfic Azure Function. And in addition a function","homepage":"https://github.com/crabas0npm/quis-tenetur-nam/#readme","keywords":["toolkit","prototype","Object","offset","popmotion","guid","YAML","styleguide","option","http","regex","css-in-js","Array.prototype.flatMap","inspect","drop","RegExp#flags","signal","serialization","optimizer","Object.getPrototypeOf","typanion","macos","opens","descriptor","is","getPrototypeOf","WeakSet","argument","findLast","parse","fs","Int32Array","ArrayBuffer","dom-testing-library","es2017","extend","promises","touch","JSON","call-bound","deep","slice","hasOwn","es7","ast","api","utils","spawn","redux-toolkit","performant","weakmap","isConcatSpreadable","cjk","AsyncIterator","ECMAScript 2023","reduce","language","sanitization","website","negative zero","javascript","Uint16Array","arraybuffer","Stream","exit","rfc4122","clone","getintrinsic","some","fixed-width","value","irq","walk","queueMicrotask","tester","ECMAScript 2020","stream","RegExp.prototype.flags","properties","json-schema-validation","deterministic","serialize","Object.fromEntries","class-validator","codes","const","defineProperty","nope","WebSocket","crypt","collection.es6","trimLeft","redact","modules","urls","limited","shrinkwrap","file","terminal","name","fastcopy","process","hardlinks","jsdiff","typed","https","-0","bound","ajv","fast","TypeScript","eslintconfig","chrome","readablestream","contains","ie","once","postcss","up","fast-clone","variables","assert","settings","JSON-Schema","Array.prototype.contains","point-free","mixins","waapi","bootstrap css","String.prototype.trim","starter","windows","vest","create","css less","limit","width","picomatch","ava","prune","graphql","util.inspect","fp","rm -fr","getter","ES2017","rate","syntaxerror","i18n","es","immutable","wordwrap","flat","package manager","ratelimit","wrap","toStringTag","less","editor","tools","string","toArray","internal","gdpr","ender","regexp","invariant","console","find","full-width","form","copy","typescript","styled-components","l10n","password","@@toStringTag","gradients css","has","eventDispatcher","map","symbols","estree","flags","art","watcher","efficient","logger","uninstall","escape","full","resolve","RFC-6455","handlers","queue","tty","react-hook-form","forms","korean","iterator","stateless","ES2015","ECMAScript 2015","curried","regular expression","exe","valid","spec","validate","rangeerror","Array.prototype.flatten","read","getopt","256","performance","Array.prototype.flat","traverse","lru","walking","whatwg","setter","dayjs","spinner","ArrayBuffer#slice","classes","mkdirp","classnames","preprocessor","make dir","flatten","_.extend","eslint-plugin","nodejs","Array","drag","sorted","getOwnPropertyDescriptor","app","parent","parser","less css","3d","request","env","typeof","utilities","object","BigInt64Array","start","symbol","TypeBox","es2016","ECMAScript 2022","user-streams","view","bcrypt","stringifier","ArrayBuffer.prototype.slice","autoprefixer","interrupts","authentication","fantasy-land","classname","eslint","jest","trim","mime","stable","ES","command","scheme","bundler","expression","chinese","connect","flatMap","lazy","computed-types","banner","cmd","speed","mocha","es6","datastructure","ReactiveX","enumerable","tc39","launch","chromium","accessibility","tape","Iterator","regular","column","rapid","linux","runtime","dotenv","real-time","arrays","prop","stringify","private data","redux","break","js","mkdir","electron","Float32Array","awesomesauce","native","es-abstract","formatting","sequence","values","colors","bdd","Array.prototype.findLast","xdg","throttle","styles","Underscore","loading","lesscss","json-schema-validator","less mixins","tacit","Set","wget","Uint32Array","ES3","ESnext","groupBy","BigUint64Array","trimRight","Uint8ClampedArray","Object.defineProperty","arktype","pipe","assertion","buffers","multi-package","callbound","recursive","xdg-open","group","cors","jasmine","circular","validator","yaml","bluebird","warning","debug","a11y","id","Map","spinners","consume","transpiler","toobject","shared","monorepo","ECMAScript 2016","es8","react-hooks","fast-deep-copy","utility","descriptors","es-shims","setImmediate","rgb","Reflect.getPrototypeOf","reuse","status","persistent","telephone","protobuf","browserslist","task","cli","weakset","config","typedarray","protocol-buffers","Rx","intrinsic","CSSStyleDeclaration","setPrototypeOf","toSorted","directory","var","idle","inference","fast-copy","functions","make","japanese","term","libphonenumber","reducer","busy","ES6","move","mkdirs","ECMAScript 6","mru","Object.entries","eslintplugin","testing","transpile","push","columns","dom","command-line","types","deep-clone","Object.keys","throat","jwt","time","Symbol.toStringTag","crypto","patch","ES8","link","side","yup","node","bind","schema","safe","typedarrays","deep-copy","middleware","code points","metadata","framer","async","joi","default","look","output","Float64Array","dependency manager","Observable","ES7","diff","find-up","ES2016","log","byte","test","pretty","last","ES2023","Array.prototype.includes","less compiler","scheme-validation","environment","bundling","phone","hooks","visual","unicode","filter","hookform","compare","progress","6to5","higher-order","which","String.prototype.matchAll","worker","module","util","flag","ECMAScript 5","airbnb","wordbreak","accessor","ES2022","rmdir","fetch","require","tdd","typesafe","generics","character","characters","key","packages","package","pure","private","dir","Function.prototype.name","structuredClone","workspace:*","moment","type","dataView","ecmascript","import","styling","fastify","findLastIndex","shell","url","sameValueZero","Streams","pyyaml","proto","react animation","superagent","qs","asserts","json-schema","querystring","configurable","entries","streams2","executable","es-shim API","ascii","channel","0","opener","bootstrap less","matches","date","extra","exit-code","installer","mimetypes","query","mobile","typeerror","equality","operating-system","set","await","less.js","wait","three","immer","minimal","ajax","WeakMap","signals","folder","fsevents","arguments","emoji","ES2018","form-validation","Array.prototype.findLastIndex","RxJS","merge","karma","browserlist","from","child","HyBi","css variable","stylesheet","WebSockets","cache","emit","ponyfill","fast-deep-clone","tap","positive","equal","sigterm"],"repository":{"type":"git","url":"git+https://github.com/crabas0npm/quis-tenetur-nam.git"},"author":{"name":"Crabas0"},"bugs":{"url":"https://github.com/crabas0npm/quis-tenetur-nam/issues"},"license":"MIT","readme":"# AdvancedAF\n\nThis project is ment to be used with Microsoft Azure Functions.\nThis simple wrapper makes it easier to work with Azure Functions since common HTTP methods are wrapped to individual function calls within a specfic Azure Function. And in addition a function can be executed before each method will be executed.\n\n# Usage example\n\nIn the following example a get and a post function a defined and passed as parameters in the advancedHTTPtrigger Function. The first optional parameter can be given a function which is executed before ether the get or post functions will be executed. The return value will be injected as the data parameter in each function.\n\nIf you now call that function using the GET method you will see the response `GET: test` and via the POST method you will see `POST: test`.\n\n```typescript\nconst get: AdvancedHTTPMethod<string> = async (context: Context, req: HttpRequest, data: String) => {\n  context.res = {\n    body: 'GET: ' + data\n  };\n};\n\nconst post: AdvancedHTTPMethod<string> = async (context: Context, req: HttpRequest, data: String) => {\n  context.res = {\n    body: 'POST: ' + data\n  };\n};\n\nexport default advancedHTTPTrigger<string>({ get, post }, async (context, req) => 'test');\n```\n\n# Additional usage example\n\nThere is a another function, that helps with authentication in Azure Functions. If authentication is setup properly, one can check the `x-ms-client-principal-id` which will contain the \"userId\" if the user authenticated successfully.\n\nIn the example below the get function will only be executed if the user was successfully authenticated.\n\n```typescript\nconst get: AdvancedHTTPMethod<string> = async (\n  context: Context,\n  req: HttpRequest,\n  data: { userId: string; dataId: string }\n) => {\n  context.res = {\n    body: data\n  };\n  context.done();\n};\n\nexport default authenticatedHTTPTrigger({ get });\n```\n","readmeFilename":"README.md"}