Socket
Socket
Sign inDemoInstall

@statoscope/report-writer

Package Overview
Dependencies
1
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @statoscope/report-writer

Statoscope report writer


Version published
Weekly downloads
283K
increased by75.31%
Maintainers
1
Install size
91.3 kB
Created
Weekly downloads
 

Changelog

Source

5.9.0 (27 September 2021)

Features

  • [stats-extension-custom-reports] - add package for passing custom reports to the UI (#108)

  • [webpack-plugin] - support custom reports (#108)

  • [webpack-ui] - support custom reports (#108)

  • [helpers] - support lock/unlock for Resolver (#107) By default, all the resolvers is locked (no items can be added to resolver storage)

    const resolver = makeResolver(modules, m => m.identifier);
    modules.push(fooModule);
    resolver('foo'); // null
    resolver.unlock(); // allow to fetch resolver storage for new elements
    modules.push(fooModule);
    resolver('foo'); // fooModule
    

    In other words, locked resolver remembers its source items and ignores any source changes.

    It is useful for performance.

  • [helpers] - add Indexer to build an index (#108) Index is more complex of resolver. It provides some API to manipulate its storage:

    const moduleIndex = makeIndex(module => module.identifier); // no source needed
    moduleIndex.add(fooModule);
    moduleIndex.get('foo'); // fooModule
    moduleIndex.get('bar'); // null
    moduleIndex.add(barModule);
    moduleIndex.get('bar'); // barModule
    moduleIndex.getAll(); // [fooModule, barModule]
    
  • [stats-extension-compressed] - support indexer (#108)

  • [stats-extension-package-info] - support indexer (#108)

  • [stats-extension-stats-validation-result] - support indexer (#108)

  • [config] - add requireConfig (#108)

  • [cli] - support requireConfig (#108)

  • [cli] - add makeReplacer helper to create json replacer (#107)

  • [webpack-model] - add __statoscope.context field (#107)

  • [report-writer] - remove context path from stats (it makes all the path relative from context) (#107)

  • [webpack-plugin] - remove context path from stats (it makes all the path relative from context) (#107)

  • [webpack-stats-extension-package-info] - remove context path from stats (it makes all the path relative from context) (#107)

Refactor

  • [webpack-model] - use module.identifier to resolve a module (#107)

  • [webpack-model] - decouple extension and compilation (#108)

    Extensions have attached to files, not to compilations

  • [webpack-ui] - use module.identifier to resolve a module (#107)

  • [webpack-stats-extension-compressed] - use module.identifier to resolve a module (#107)

  • [stats-validator-plugin-webpack] - use module.identifier to resolve a module (#107)

Fixes

  • [webpack-model] - not fail when incomplete stats have used

Readme

Source

Statoscope report writer

npm version Support

This package generates a stream with statoscope HTML-report from one or more json-files.

FAQs

Last updated on 27 Sep 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc