{"bugs":{"url":"https://github.com/architect/asap/issues"},"dist":{"shasum":"9a74d7a5778fbbde61d4ed8ebed9a253d0420e98","tarball":"https://registry.npmjs.org/@architect/asap/-/asap-7.0.0-RC.1.tgz","fileCount":17,"integrity":"sha512-oRdA+1G8Lem3a/wEkNfct9yeL8ezb3ojK7YNCwmFqb8DPAIQFnGPPYS3xE6Q4fSu68u6Qv3Y2Ey2nHKbxXu1Jg==","signatures":[{"sig":"MEYCIQCmnNF9axat+ygh/4UYwS62zeGEBtPv2QD3Ew9huUPt1QIhAP87EgN7z4gbDSL+R47235HCjnN7TJ/gDwu0J5gx327W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31487},"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- `ARC_ENV`: `staging` or `production`\n- `ARC_STATIC_BUCKET`: the S3 bucket name where your assets are stored\n","engines":{"node":">=14"},"gitHead":"1889fa39522c7e14185349c20866c06047ca9eab","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-arc"},"_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":"10.2.3","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":"20.10.0","dependencies":{"@aws-lite/s3":"~0.1.12","@aws-lite/client":"~0.14.2"},"eslintConfig":{"extends":"@architect/eslint-config"},"_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"nyc":"~15.1.0","tape":"~5.7.3","eslint":"~8.56.0","tap-arc":"~1.2.2","mock-tmp":"~0.0.2","cross-env":"7.0.3","mime-types":"~2.1.35","proxyquire":"~2.1.3","@architect/eslint-config":"~2.1.2","@architect/req-res-fixtures":"git+https://github.com/architect/req-res-fixtures.git"},"_npmOperationalInternal":{"tmp":"tmp/asap_7.0.0-RC.1_1706110094525_0.09759182971399993","host":"s3://npm-registry-packages"},"_id":"@architect/asap@7.0.0-RC.1","version":"7.0.0-RC.1"}