{"bugs":{"url":"https://github.com/architect/asap/issues"},"dist":{"shasum":"c1d75e94a5faad81b517f1b6df235313c4fc0bed","tarball":"https://registry.npmjs.org/@architect/asap/-/asap-4.0.0-RC.0.tgz","fileCount":16,"integrity":"sha512-zNfShfI/07rLYQo4XhqyjMXxnQU7sAoom4jfSbuYiPylO1k7rixzK0XkX5RFK6YFEstUxsyaXpfv4DzneQMoAw==","signatures":[{"sig":"MEUCIFvd3XnCkmap0oRiy5j8khlDYA/DAzzuTuLlyTWwuvHxAiEA0m0S3al5XnRGz+DY/lyOBuxG/FrbO+adwzKE77d3VCQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg/jW8CRA9TVsSAnZWagAA8zwP/37nG7Q4vHJHnBzFK6xo\n2dPnUZAi7Zu6uOTA8EMeHwlzb1pAw2sZ+NA4PfX389hj/Q7JTQ6ohvoGmgCd\nNj19rmImjGWpV8UMqK05i2/RFTIwh1M1jnvIanVJKup1cBQ6hAGy40YFQKri\nTbtyMkBTmlkATgx4+3tbNQVU8bqqpZJZoah6E3ToCsSilNY6j2NeRYnM5Kdl\nO5CDWz5Cr9raaL4v0WKXByVVjl3UDRuMyo0GuaZdzQH2tgXG71w+6fsK9wUZ\nCvQEc23+1tn8pl77ibXhKu93pDjgm5G8XS2iWace09CflWyVi6RKBEOEAKUs\na3Nfc9kHMFj9+vJQB//piBtJU36wZ64sGZaZ2l0RbgcIoKewuK5k53jNMf8t\nu2O1RRnPYBoNTOVhEfj0JVb3eDXM52EcgY9Geep1g2qzfXisjnrIZv1xl3XK\n9Y0t/NxmKN4FC320aFFM7fsw7E/ix+FzgngBhf0U66Om/VQC0psx983bxIdn\nt0rNWXnFByrJjYseyDKfm/ly0xjgPrJTZ98zP3+ja94lZ+VtJAPEUMjHmo0w\no+vDgLq2akl8Za67O5OIA35qjD4skfcq0/Pxc+Eon+/G9NI0DML9VEZhLuBV\nygxxqGZlfQ0chEa3pijEs8PX2emrfcpBEdp+LsgRs0kM6wsAsEiucn6eRDXg\nBf+f\r\n=uACC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/asap.js","name":"@architect/asap","readme":"# @architect/asap\n\n>  Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery\n\n[![GitHub CI status](https://github.com/architect/asap/workflows/Node%20CI/badge.svg)](https://github.com/architect/asap/actions?query=workflow%3A%22Node+CI%22)\n\n# Usage\n\n## Module\n\nCall ASAP within your handler function manually like so:\n\n```javascript\nlet asap = require('@architect/asap')\n\n// All config is optional!\nmodule.exports = asap({\n  // Alias assets to different filenames\n  alias: {\n    '/an-asset.jpg': '/a-different-filename.jpg',\n    '/a-path': '/a-different-path',\n  },\n  // Pass your own fingerprinted static asset manifest (defaults to Arc-generated static.json)\n  assets: { 'some-file.gif': 'some-file-a1b2c3.gif' },\n  // Set a custom bucket configuration (defaults to Arc-generated buckets)\n  bucket: {\n    staging: 'staging-bucket-name',\n    production: 'production-bucket-name',\n    folder: 'some-bucket-subfolder',\n  },\n  // Override the content-aware cache-control header\n  cacheControl: 'max-age=0',\n  // Manually set response headers\n  headers: { 'some-header': 'ok=true' },\n  // Return null if asset is not found (defaults to false)\n  passthru: true,\n  // Engage SPA mode (defaults to true)\n  spa: false,\n})\n```\n\n\n## Lambda handler\n\nUse ASAP as the handler for your Lambda! If you're using Architect, this is done automatically for you when you don't define a root handler for your `@http` pragma.\n\nIf using ASAP with non-Architect projects, just point your Lambda's source directory to `src/`, and make sure you set the following two env vars:\n- `NODE_ENV`: `staging` or `production`\n- `ARC_STATIC_BUCKET`: the S3 bucket name where your assets are stored\n","engines":{"node":">=12"},"gitHead":"0d2ceae6a83d31d392e1d7525cfa6d8297dfa4d2","license":"Apache-2.0","scripts":{"rc":"npm version prerelease --preid RC","lint":"eslint . --fix","test":"npm run lint && npm run coverage","vendor":"node scripts/generate-mime-files.js","coverage":"nyc --reporter=lcov --reporter=text npm run test:unit","test:unit":"cross-env tape 'test/unit/**/*-test.js' | tap-spec"},"_npmUser":{"name":"architectci","email":"ryan+architectci@begin.com"},"homepage":"https://github.com/architect/asap#readme","keywords":["aws","lambda","amazon","serverless","cloud","cloudfunctions","apigateway","dynamodb","s3","sns","api gateway","framework"],"repository":{"url":"git+https://github.com/architect/asap.git","type":"git"},"_npmVersion":"6.14.13","description":"Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery","directories":{},"maintainers":[{"name":"brianleroux","email":"b@brian.io"},{"name":"dam","email":"kristoferjoseph@gmail.com"},{"name":"kborchers","email":"kris.borchers@gmail.com"},{"name":"ryanblock","email":"rblock+npm@gmail.com"},{"name":"architectci","email":"ryan+architectci@begin.com"},{"name":"filmaj","email":"maj.fil@gmail.com"}],"_nodeVersion":"12.22.3","eslintConfig":{"extends":"@architect/eslint-config"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"nyc":"~15.1.0","tape":"~5.2.2","eslint":"~7.31.0","semver":"~7.3.5","terser":"~5.7.1","aws-sdk":"2.880.0","mock-fs":"~5.0.0","tap-spec":"~5.0.0","cross-env":"7.0.3","browserify":"~17.0.0","mime-types":"~2.1.31","proxyquire":"~2.1.3","run-series":"~1.1.9","@architect/eslint-config":"~1.0.0","@architect/req-res-fixtures":"git+https://github.com/architect/req-res-fixtures.git"},"_npmOperationalInternal":{"tmp":"tmp/asap_4.0.0-RC.0_1627272635992_0.3181954798869362","host":"s3://npm-registry-packages"},"_id":"@architect/asap@4.0.0-RC.0","version":"4.0.0-RC.0"}