Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@ngx-pwa/ngsw-schema
Advanced tools
Readme
ngsw-config.json
)My PR in Angular repo has been accepted and merged, so this feature is now directly available in Angular >= 8.0.0-beta.7. This lib is only useful in Angular 6 or 7.
@angular/service-worker
is a very powerful tool to build Progressive Web Apps.
The default service worker configuration file (ngsw-config.json
) generated by the Angular CLI
(either via ng add @angular/pwa
or ng g service-worker
) already takes care of saving permanently the static files of your application
(index.html
, JavaScript files...).
But you can go a lot further by adding dataGroups
to save temporarily dynamic data (for example,
your API calls, including images), which would be too big for localStorage
or too difficult via indexedDB
.
The official documentation explains it all,
but as the ngsw-config.json
file doesn't have a JSON schema,
you don't get any assistance, and worse, mistakes are not always catched by the building system,
so you could end up with errors in your production build.
So this lib is just the missing JSON schema for ngsw-config.json
for productivity:
Install the lib (as a dev dependency):
npm install @ngx-pwa/ngsw-schema -D
Now you just have to add it to your ngsw-config.json
file (of course, adapt the path to your case):
{
"$schema": "../node_modules/@ngx-pwa/ngsw-schema/schema.json"
}
MIT
FAQs
JSON schema for Angular service worker configuration file (ngsw-config.json)
The npm package @ngx-pwa/ngsw-schema receives a total of 23 weekly downloads. As such, @ngx-pwa/ngsw-schema popularity was classified as not popular.
We found that @ngx-pwa/ngsw-schema 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.