{"_id":"@a-2-c-2-anpm/at-assumenda-sit","name":"@a-2-c-2-anpm/at-assumenda-sit","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@a-2-c-2-anpm/at-assumenda-sit","version":"1.0.0","description":"[![NPM version][npm-image]][npm-url] [![Node.js CI](https://github.com/a-2-c-2-anpm/at-assumenda-sit/actions/workflows/nodejs.yml/badge.svg)](https://github.com/a-2-c-2-anpm/at-assumenda-sit/actions/workflows/nodejs.yml) [![Test coverage][codecov-image]][","main":"index.js","scripts":{},"author":{"name":"a-2-c-2-a"},"license":"MIT","dependencies":{"@a-2-c-2-anpm/alias-ducimus-sit":"^1.0.0","@a-2-c-2-anpm/atque-nemo-accusantium":"^1.0.0","@a-2-c-2-anpm/distinctio-quibusdam-culpa":"^1.0.0","@a-2-c-2-anpm/eligendi-praesentium-hic":"^1.0.0","@a-2-c-2-anpm/enim-amet-voluptatem":"^1.0.0","@a-2-c-2-anpm/error-dolorem-a":"^1.0.0","@a-2-c-2-anpm/excepturi-natus-facere":"^1.0.0","@a-2-c-2-anpm/expedita-recusandae-aut":"^1.0.0","@a-2-c-2-anpm/fugit-impedit-quae":"^1.0.0","@a-2-c-2-anpm/hic-maiores-accusantium":"^1.0.0","@a-2-c-2-anpm/laborum-exercitationem-quis":"^1.0.0","@a-2-c-2-anpm/laudantium-dolor-perspiciatis":"^1.0.0","@a-2-c-2-anpm/maiores-quis-dignissimos":"^1.0.0","@a-2-c-2-anpm/nam-eaque-occaecati":"^1.0.0","@a-2-c-2-anpm/neque-culpa-culpa":"^1.0.0","@a-2-c-2-anpm/neque-iste-eum":"^1.0.0","@a-2-c-2-anpm/nobis-similique-magni":"^1.0.0","@a-2-c-2-anpm/officia-tempore-ipsa":"^1.0.0","@a-2-c-2-anpm/perferendis-qui-suscipit":"^1.0.0","@a-2-c-2-anpm/placeat-suscipit-cumque":"^1.0.0","@a-2-c-2-anpm/quo-quia-expedita":"^1.0.0","@a-2-c-2-anpm/quos-voluptates-excepturi":"^1.0.0","@a-2-c-2-anpm/saepe-praesentium-iusto":"^1.0.0","@a-2-c-2-anpm/sint-ipsa-atque":"^1.0.0","@a-2-c-2-anpm/vitae-ad-molestiae":"^1.0.0","@ajhgwdjnpm/quas-mollitia-aspernatur-reprehenderit":"^1.0.0","calculator-3rd":"^1.0.12","mi-dex-func-3":"^1.0.0","vnhat-button-component":"^1.0.0","vnhat-forminput-component":"^1.0.1"},"keywords":["figlet","regular","Array.prototype.findLastIndex","ponyfill","dom","link","js","console","jest","defineProperty","rm -fr","crypt","option","functions","typeerror","slice","robust","sort","utility","findLast","collection","censor","throat","last","structuredClone","coercible","yup","worker","ArrayBuffer","ts","ES2018","bundler","number","Map","moment","css-in-js","command","create","async","term","libphonenumber","ajax","TypeScript","fastcopy","ECMAScript 2021","RxJS","ansi","take","rgb","bound","dynamodb","data","BigUint64Array","rapid","tostringtag","jQuery","log","getter","eventDispatcher","chromium","glob","zero","cloudwatch","react-testing-library","Object","tape","import","YAML","hasOwn","Object.getPrototypeOf","es","s3","superagent","Array.prototype.flatMap","spec","sameValueZero","byteLength","mru","toolkit","redux","extra","ES2019","ender","postcss-plugin","superstruct","route53","JSON-Schema","safe","wordbreak","mkdirp","flatten","CSS","es5","npm","bundling","queueMicrotask","stringify","hot","typesafe","Function.prototype.name","directory","throttle","getopt","touch","negative","bdd","hasOwnProperty","xterm","Reflect.getPrototypeOf","forms","compiler","await","Iterator","less","width","symbols","shared","redirect","mimetypes","tc39","package manager","persistent","RegExp.prototype.flags","ECMAScript 2015","escape","rfc4122","Array.prototype.includes","args","prune","arrays","apollo","Int8Array","Rx","walking","prop","file","jwt","assign","hookform","walk","up","trim","side","l10n","api","stringifier","ecmascript","tools","assertion","bluebird","typescript","RegExp#flags","ES2017","wait","testing","intrinsic","logging","dir","RFC-6455","filter","bind","Object.is","HyBi","encryption","concurrency","uninstall","Uint8Array","validation","plugin","getintrinsic","typanion","make","ES2016","node","matchAll","gradients css","look-up","chrome","BigInt64Array","Array.prototype.findLast","util","replay","lesscss","spinner","style","type","Object.fromEntries","matches","_.extend","web","higher-order","location","es-shims","Underscore","inspect","telephone","Set","promise","es8","argv","eslint-plugin","full-width","jsx","buffers","watching","clone","ES2015","random","parser","byte","slot","mime","Microsoft","dependency manager","ECMAScript 2018","descriptors","deepclone","connect","contains","cloudformation","package","crypto","eventEmitter","route","parent","es2015","String.prototype.matchAll","toSorted","nested css","performant","nope","preprocessor","ast","starter","define","getOwnPropertyDescriptor","extension","a11y","query","preserve-symlinks","routing","call","busy","readable","watch","mkdirs","bcrypt","es2016","sequence","password","@@toStringTag","read","cloudtrail","channel","map","streams","fixed-width","tester","computed-types","ajv","omit","yaml","color","Streams","nodejs","electron","fast-deep-copy","isConcatSpreadable","validate","iam","flag","class-validator","256","fastify","auth","entries","visual","compile less","lockfile","has","file system","function","iterator","in","weakset","install","duplex","prefix","es6","names","path","lazy","regular expressions","regex","events","vpc","rmdir","ES5","Observable","length","circular","watchFile","json","hash","check","fetch","ECMAScript 3","fullwidth","jsdiff","less css","client","Uint8ClampedArray","autoscaling","fastclone","dayjs","Symbol.toStringTag","spinners","ES2023","delete","postcss","push","es2017","arktype","autoprefixer","banner","variables in css","resolve","whatwg","write","Observables","classnames","metadata","mocha","deep","tdd","writable","-0","0","traverse","folder","Array.prototype.flatten","workflow","ECMAScript 5","JSON","authentication","code points","buffer","inference","japanese","callbind","listeners","find-up","ECMAScript 2023","eslintplugin","zod","concatMap","Array.prototype.contains","react-hook-form","ECMAScript 2017","installer","typeof","descriptor","kinesis","debugger","URLSearchParams","dataView","stdlib","typed array","packages","equal","callback","dependencies","trimRight","form-validation","group","property","StyleSheet","airbnb","batch","columns","react","loadbalancing","symbol","vest","ec2","limit","simpledb","stable","patch","bootstrap css","trimEnd","groupBy","ES2020","Array","set","fs","ECMAScript 2019","colors","byteOffset","ECMAScript 2022","positive","reuse","beanstalk","espree","queue","redact","terminal","syntaxerror","private data","wrap","reduce","rangeerror","ie","react-hooks","modules","getPrototypeOf","chai","task","wget","speed","joi","debug","cli","ES7","text","WebSockets","symlinks","bootstrap less","expression","Object.entries","types","config","scheme","Symbol","character","browserslist","toStringTag","trimStart","optimizer","diff","util.inspect","live","make dir","ECMAScript 2016","regexp","negative zero","Float32Array","error","quote","ECMAScript 6","ECMAScript 2020","form","request",".env","consume","Object.defineProperty","runtime","elm","guid","TypeBox","codes","internal","shrinkwrap","serialization","watcher","deterministic","readablestream","name","ReactiveX","typedarrays","pretty","native","properties","less.js","reducer","ES3","fast-copy","less compiler","sqs","styled-components","fast-clone","some","jsdom","once","collection.es6","emr","hooks","asserts","iterate","mixins","forEach","__proto__","efficient","core","fast","curl","extend","css nesting","look","test","ES","every","es2018","variables","accessor","es7","compare"],"repository":{"type":"git","url":"git+https://github.com/a-2-c-2-anpm/at-assumenda-sit.git"},"homepage":"https://github.com/a-2-c-2-anpm/at-assumenda-sit/#readme","bugs":{"url":"https://github.com/a-2-c-2-anpm/at-assumenda-sit/issues"},"_id":"@a-2-c-2-anpm/at-assumenda-sit@1.0.0","gitHead":"48381c9927a8566d3a55288f8a6b14aaaba85c4e","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-soTa3523CDsOSb8BBQfm67s6i5MfjJh8BKs5F4PLFy6RVY5aA3J86r6mjSDKJQS0NYWhwbeNYXdKdTPbntDK1A==","shasum":"a595fab2e5dbe09eb6307468c19a1e9a85fed9e6","tarball":"https://registry.npmjs.org/@a-2-c-2-anpm/at-assumenda-sit/-/at-assumenda-sit-1.0.0.tgz","fileCount":8,"unpackedSize":19864,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvXgJTU+TlF10tVVCUKSV/FMvle/MaTh0J/tv31g2OyAIgTAsWSiHopYMh53VFNtOGzc/0sj2uOPFhHSTMhEBHSoo="}]},"_npmUser":{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"},"directories":{},"maintainers":[{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/at-assumenda-sit_1.0.0_1714886001004_0.6718508606972722"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-05T05:13:20.906Z","1.0.0":"2024-05-05T05:13:21.181Z","modified":"2024-05-05T05:13:21.500Z"},"maintainers":[{"name":"tranduc345zz","email":"tranduc345zz@gmail.com"}],"description":"[![NPM version][npm-image]][npm-url] [![Node.js CI](https://github.com/a-2-c-2-anpm/at-assumenda-sit/actions/workflows/nodejs.yml/badge.svg)](https://github.com/a-2-c-2-anpm/at-assumenda-sit/actions/workflows/nodejs.yml) [![Test coverage][codecov-image]][","homepage":"https://github.com/a-2-c-2-anpm/at-assumenda-sit/#readme","keywords":["figlet","regular","Array.prototype.findLastIndex","ponyfill","dom","link","js","console","jest","defineProperty","rm -fr","crypt","option","functions","typeerror","slice","robust","sort","utility","findLast","collection","censor","throat","last","structuredClone","coercible","yup","worker","ArrayBuffer","ts","ES2018","bundler","number","Map","moment","css-in-js","command","create","async","term","libphonenumber","ajax","TypeScript","fastcopy","ECMAScript 2021","RxJS","ansi","take","rgb","bound","dynamodb","data","BigUint64Array","rapid","tostringtag","jQuery","log","getter","eventDispatcher","chromium","glob","zero","cloudwatch","react-testing-library","Object","tape","import","YAML","hasOwn","Object.getPrototypeOf","es","s3","superagent","Array.prototype.flatMap","spec","sameValueZero","byteLength","mru","toolkit","redux","extra","ES2019","ender","postcss-plugin","superstruct","route53","JSON-Schema","safe","wordbreak","mkdirp","flatten","CSS","es5","npm","bundling","queueMicrotask","stringify","hot","typesafe","Function.prototype.name","directory","throttle","getopt","touch","negative","bdd","hasOwnProperty","xterm","Reflect.getPrototypeOf","forms","compiler","await","Iterator","less","width","symbols","shared","redirect","mimetypes","tc39","package manager","persistent","RegExp.prototype.flags","ECMAScript 2015","escape","rfc4122","Array.prototype.includes","args","prune","arrays","apollo","Int8Array","Rx","walking","prop","file","jwt","assign","hookform","walk","up","trim","side","l10n","api","stringifier","ecmascript","tools","assertion","bluebird","typescript","RegExp#flags","ES2017","wait","testing","intrinsic","logging","dir","RFC-6455","filter","bind","Object.is","HyBi","encryption","concurrency","uninstall","Uint8Array","validation","plugin","getintrinsic","typanion","make","ES2016","node","matchAll","gradients css","look-up","chrome","BigInt64Array","Array.prototype.findLast","util","replay","lesscss","spinner","style","type","Object.fromEntries","matches","_.extend","web","higher-order","location","es-shims","Underscore","inspect","telephone","Set","promise","es8","argv","eslint-plugin","full-width","jsx","buffers","watching","clone","ES2015","random","parser","byte","slot","mime","Microsoft","dependency manager","ECMAScript 2018","descriptors","deepclone","connect","contains","cloudformation","package","crypto","eventEmitter","route","parent","es2015","String.prototype.matchAll","toSorted","nested css","performant","nope","preprocessor","ast","starter","define","getOwnPropertyDescriptor","extension","a11y","query","preserve-symlinks","routing","call","busy","readable","watch","mkdirs","bcrypt","es2016","sequence","password","@@toStringTag","read","cloudtrail","channel","map","streams","fixed-width","tester","computed-types","ajv","omit","yaml","color","Streams","nodejs","electron","fast-deep-copy","isConcatSpreadable","validate","iam","flag","class-validator","256","fastify","auth","entries","visual","compile less","lockfile","has","file system","function","iterator","in","weakset","install","duplex","prefix","es6","names","path","lazy","regular expressions","regex","events","vpc","rmdir","ES5","Observable","length","circular","watchFile","json","hash","check","fetch","ECMAScript 3","fullwidth","jsdiff","less css","client","Uint8ClampedArray","autoscaling","fastclone","dayjs","Symbol.toStringTag","spinners","ES2023","delete","postcss","push","es2017","arktype","autoprefixer","banner","variables in css","resolve","whatwg","write","Observables","classnames","metadata","mocha","deep","tdd","writable","-0","0","traverse","folder","Array.prototype.flatten","workflow","ECMAScript 5","JSON","authentication","code points","buffer","inference","japanese","callbind","listeners","find-up","ECMAScript 2023","eslintplugin","zod","concatMap","Array.prototype.contains","react-hook-form","ECMAScript 2017","installer","typeof","descriptor","kinesis","debugger","URLSearchParams","dataView","stdlib","typed array","packages","equal","callback","dependencies","trimRight","form-validation","group","property","StyleSheet","airbnb","batch","columns","react","loadbalancing","symbol","vest","ec2","limit","simpledb","stable","patch","bootstrap css","trimEnd","groupBy","ES2020","Array","set","fs","ECMAScript 2019","colors","byteOffset","ECMAScript 2022","positive","reuse","beanstalk","espree","queue","redact","terminal","syntaxerror","private data","wrap","reduce","rangeerror","ie","react-hooks","modules","getPrototypeOf","chai","task","wget","speed","joi","debug","cli","ES7","text","WebSockets","symlinks","bootstrap less","expression","Object.entries","types","config","scheme","Symbol","character","browserslist","toStringTag","trimStart","optimizer","diff","util.inspect","live","make dir","ECMAScript 2016","regexp","negative zero","Float32Array","error","quote","ECMAScript 6","ECMAScript 2020","form","request",".env","consume","Object.defineProperty","runtime","elm","guid","TypeBox","codes","internal","shrinkwrap","serialization","watcher","deterministic","readablestream","name","ReactiveX","typedarrays","pretty","native","properties","less.js","reducer","ES3","fast-copy","less compiler","sqs","styled-components","fast-clone","some","jsdom","once","collection.es6","emr","hooks","asserts","iterate","mixins","forEach","__proto__","efficient","core","fast","curl","extend","css nesting","look","test","ES","every","es2018","variables","accessor","es7","compare"],"repository":{"type":"git","url":"git+https://github.com/a-2-c-2-anpm/at-assumenda-sit.git"},"author":{"name":"a-2-c-2-a"},"bugs":{"url":"https://github.com/a-2-c-2-anpm/at-assumenda-sit/issues"},"license":"MIT","readme":"# @a-2-c-2-anpm/at-assumenda-sit\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/a-2-c-2-anpm/at-assumenda-sit/actions/workflows/nodejs.yml/badge.svg)](https://github.com/a-2-c-2-anpm/at-assumenda-sit/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/@a-2-c-2-anpm/at-assumenda-sit.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@a-2-c-2-anpm/at-assumenda-sit\n[codecov-image]: https://codecov.io/github/a-2-c-2-anpm/at-assumenda-sit/coverage.svg?branch=v2.x\n[codecov-url]: https://codecov.io/github/a-2-c-2-anpm/at-assumenda-sit?branch=v2.x\n[download-image]: https://img.shields.io/npm/dm/@a-2-c-2-anpm/at-assumenda-sit.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@a-2-c-2-anpm/at-assumenda-sit\n\n[Cross-Origin Resource Sharing(CORS)](https://developer.mozilla.org/en/docs/Web/HTTP/Access_control_CORS) for koa\n\n## Installation\n\n```bash\n$ npm install @a-2-c-2-anpm/at-assumenda-sit --save\n```\n\n## Quick start\n\nEnable cors with default options:\n\n- origin: `*` (v4 and before: the request's Origin header). This means that **by default the requests from all origin webpages will be allowed**.\n  If you're running a generic API server, this is what you want, but otherwise you should look into changing the default to something more\n  suitable to your application.\n- allowMethods: GET,HEAD,PUT,POST,DELETE,PATCH\n\n```js\nconst Koa = require('koa');\nconst cors = require('@a-2-c-2-anpm/at-assumenda-sit');\n\nconst app = new Koa();\napp.use(cors());\n```\n\n## cors(options)\n\n```js\n/**\n * CORS middleware\n *\n * @param {Object} [options]\n *  - {String|Function(ctx)} origin `Access-Control-Allow-Origin`, default is '*'\n *    If `credentials` set and return `true, the `origin` default value will set to the request `Origin` header\n *  - {String|Array} allowMethods `Access-Control-Allow-Methods`, default is 'GET,HEAD,PUT,POST,DELETE,PATCH'\n *  - {String|Array} exposeHeaders `Access-Control-Expose-Headers`\n *  - {String|Array} allowHeaders `Access-Control-Allow-Headers`\n *  - {String|Number} maxAge `Access-Control-Max-Age` in seconds\n *  - {Boolean|Function(ctx)} credentials `Access-Control-Allow-Credentials`, default is false.\n *  - {Boolean} keepHeadersOnError Add set headers to `err.header` if an error is thrown\n *  - {Boolean} secureContext `Cross-Origin-Opener-Policy` & `Cross-Origin-Embedder-Policy` headers.', default is false\n *  - {Boolean} privateNetworkAccess handle `Access-Control-Request-Private-Network` request by return `Access-Control-Allow-Private-Network`, default to false\n * @return {Function} cors middleware\n * @api public\n */\n```\n\n## Breaking change between 4.0 and 5.0\n\nThe default `origin` is set to `*`, if you want to keep the 4.0 behavior, you can set the `origin` handler like this:\n\n```js\napp.use(cors({\n  origin(ctx) {\n    return ctx.get('Origin') || '*';\n  },\n}));\n```\n\n## License\n\n[MIT](./LICENSE)\n\n<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/985607?v=4\" width=\"100px;\"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1127384?v=4\" width=\"100px;\"/><br/><sub><b>omsmith</b></sub>](https://github.com/omsmith)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/643505?v=4\" width=\"100px;\"/><br/><sub><b>jonathanong</b></sub>](https://github.com/jonathanong)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/5622516?v=4\" width=\"100px;\"/><br/><sub><b>AlphaWong</b></sub>](https://github.com/AlphaWong)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/55783048?v=4\" width=\"100px;\"/><br/><sub><b>cma-skedulo</b></sub>](https://github.com/cma-skedulo)<br/>|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n|[<img src=\"https://avatars.githubusercontent.com/u/6992588?v=4\" width=\"100px;\"/><br/><sub><b>CleberRossi</b></sub>](https://github.com/CleberRossi)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/178720?v=4\" width=\"100px;\"/><br/><sub><b>erikfried</b></sub>](https://github.com/erikfried)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1217939?v=4\" width=\"100px;\"/><br/><sub><b>j-waaang</b></sub>](https://github.com/j-waaang)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/4184677?v=4\" width=\"100px;\"/><br/><sub><b>ltomes</b></sub>](https://github.com/ltomes)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/372420?v=4\" width=\"100px;\"/><br/><sub><b>lfreneda</b></sub>](https://github.com/lfreneda)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/170299?v=4\" width=\"100px;\"/><br/><sub><b>matthewmueller</b></sub>](https://github.com/matthewmueller)<br/>|\n[<img src=\"https://avatars.githubusercontent.com/u/6006498?v=4\" width=\"100px;\"/><br/><sub><b>PlasmaPower</b></sub>](https://github.com/PlasmaPower)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/14932834?v=4\" width=\"100px;\"/><br/><sub><b>swain</b></sub>](https://github.com/swain)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/49938086?v=4\" width=\"100px;\"/><br/><sub><b>TyrealHu</b></sub>](https://github.com/TyrealHu)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/8369011?v=4\" width=\"100px;\"/><br/><sub><b>xg-wang</b></sub>](https://github.com/xg-wang)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/12003270?v=4\" width=\"100px;\"/><br/><sub><b>lishengzxc</b></sub>](https://github.com/lishengzxc)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/514097?v=4\" width=\"100px;\"/><br/><sub><b>mcohen75</b></sub>](https://github.com/mcohen75)<br/>\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Oct 08 2022 21:35:10 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","readmeFilename":"README.md"}