@sveltejs/adapter-static
Advanced tools
Comparing version 1.0.0-next.2 to 1.0.0-next.3
# @sveltejs/adapter-static | ||
## 1.0.0-next.3 | ||
### Patch Changes | ||
- f35a5cd: Change adapter signature | ||
## 1.0.0-next.2 | ||
@@ -4,0 +10,0 @@ |
20
index.js
@@ -1,11 +0,13 @@ | ||
'use strict'; | ||
export default function ({ pages = 'build', assets = 'build' } = {}) { | ||
return { | ||
async adapt(builder) { | ||
builder.copy_static_files(assets); | ||
builder.copy_client_files(assets); | ||
export default async function adapter(builder, { pages = 'build', assets = 'build' } = {}) { | ||
builder.copy_static_files(assets); | ||
builder.copy_client_files(assets); | ||
await builder.prerender({ | ||
force: true, | ||
dest: pages | ||
}); | ||
await builder.prerender({ | ||
force: true, | ||
dest: pages | ||
}); | ||
} | ||
}; | ||
} |
{ | ||
"name": "@sveltejs/adapter-static", | ||
"version": "1.0.0-next.2", | ||
"version": "1.0.0-next.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3641
12