{"bugs":{"url":"https://github.com/architect/asap/issues"},"dist":{"shasum":"e0b070447dacf07bdb14c8136a7b298ada1690fb","tarball":"https://registry.npmjs.org/@architect/asap/-/asap-4.0.1-RC.0.tgz","fileCount":16,"integrity":"sha512-rr7wxRQr4udAAMANgxzJYFwpwfPQKkwUyOE1zrqGJ+UOQdDZ0NkXp3r2aQkZ5xfM+uyMLoNpYCSR2q50fG1+xQ==","signatures":[{"sig":"MEQCIBdQKpBnn3m+KMU/6PKPRy6E7wINx7SjOqLjRWgRCBl0AiAhHz/hLYobsjNMmqxSok5J8IlfF6I9slGV6G1cN7pbnA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQm/yCRA9TVsSAnZWagAAYtMP/ioosGtYLbgUsVU3Vmlh\nXJghPVoxgoiKIyr1Zaho1GyGv3mV299+0NZmIsVzvwRKrEEMjue7VkQfO8zr\nJhzFyrttDoq8tn+UOn3n651qKvUxJan6wneAejvZEb5lcV+Q9rbAmD/32xHa\n1FMwEEzyCscUhttVJ9FffCQNKU76BCIR1X+baO0+NIRuvuhZFaa26wIzuQnS\nlgJgduOUupjIxCAnAMikBE5V2jXB1G0IQRihisyfD1iTgESmuQk+UGN8vEoF\nn7m1qIRWdd3x9Jf+gLicoGSzM+cQpzwGrAetA/uyZyisVZ/ZdlCFztEcgz4/\nGZKE/MHTRLNl9YAZB09XTNYNSwxV3Pxl0NmJK9HS5IOH2pxaMhkUU3YfEA4N\negfYhlmzfR5SXbibKy4tneNwVEzG5Eu7n1Q5e9LXB1D2UP3af88cdlG9FV6W\nKCfF5Bbrpk6taJlq2FXO20n9XJoSwBx62UHxB1KzVRXnqnYu+Vul2sMonkWB\ncyBEK3NC6AY9n7TKxIsiIOiSRquEngmklPyT4qU/uACj8pdP/WGrR+Flmdb7\n2Eyhfoemo1ID+pIqICsZbfYpPzABMDTSDXvMAtlEfS9A++MGMGuUamXLLkRZ\nlp65Ux2yUjHqkM4ox1o+gz1lHtPyX/aQgLdaAcZOT3wEFfZmGuITX4/Ayw3P\nUGpd\r\n=cP68\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 `false`)\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":"8d337b80e20b88168d68e3d64927658e74de42b5","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.15","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.6","eslintConfig":{"extends":"@architect/eslint-config"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"nyc":"~15.1.0","tape":"~5.3.1","eslint":"~7.32.0","semver":"~7.3.5","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.32","proxyquire":"~2.1.3","run-series":"~1.1.9","@architect/eslint-config":"~2.0.0","@architect/req-res-fixtures":"git+https://github.com/architect/req-res-fixtures.git"},"_npmOperationalInternal":{"tmp":"tmp/asap_4.0.1-RC.0_1631743986353_0.9928667700837921","host":"s3://npm-registry-packages"},"_id":"@architect/asap@4.0.1-RC.0","version":"4.0.1-RC.0"}