Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
expo-updates-server
Advanced tools
expo-updates-server =================== > port from expo/custom/expo-updates-server
port from expo/custom/expo-updates-server
yarn/npm expo-updates-server
FileSystemUpdatesStorage implements ExpoUpdatesStorageApi based on files. you need output "expo export --experimental-bundle" to UPDATES folder under ${UPDATES}/${version}/${datetime:20230505}/[assets|bundles|metadata.json|expoConfig.json].
const express = require('express')
const {FileSystemUpdatesStorage, manifest, assets}=require("expo-updates-server")
const server=express()
const updatesStorage=new FileSystemUpdatesStorage({
UPDATES: "/users/test/updates",
HOSTNAME: "https://mydomain.com/updates",
PRIVATE_KEY_PATH: "/users/test/private-key.pem",
})
server.use("/updates/manifest", manifest(updatesStorage))
server.use("/updates/assets", assets(updatesStorage))
the interface is at expo-updates-server/lib/common/ExpoUpdatesStorage.
const {ExpoUpdatesStorageApi}=require("expo-updates-server")
class MyExpoUpdatesStorage extends ExpoUpdatesStorageApi{
getLatestUpdateBundlePathForRuntimeVersionAsync(runtimeVersion) {
}
getAssetMetadataAsync() {
}
getMetadataAsync() {
}
getPrivateKeyAsync() {
}
getExpoConfigAsync() {
}
//optional
getAssetExtensionHeaders(){
}
//optional
createRollBackDirectiveAsync() {
}
//optional
createNoUpdateAvailableDirectiveAsync() {
}
}
or if you already have manifest somewhere
const {ExpoUpdatesStorageApi}=require("expo-updates-server")
const storage=ExpoUpdatesStorageApi.fromManifestURI(({runtimeVersion, platform})=>`https://mydomain.com/updates/${runtimeVersion}/${platform}/manifest.json`)
FAQs
expo-updates-server =================== > port from expo/custom/expo-updates-server
The npm package expo-updates-server receives a total of 8 weekly downloads. As such, expo-updates-server popularity was classified as not popular.
We found that expo-updates-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.