New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spotfire/mods-api

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spotfire/mods-api

API typings and schemas for Spotfire® Mods

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-67.5%
Maintainers
3
Weekly downloads
 
Created
Source

Spotfire Mods API (@spotfire/mods-api)
Documentation | Getting started | @spotfire/mods-sdk

NPM version

The Spotfire Mods API contains the JSON schema for the mod manifest and the TypeScript typings for the Spotfire API. Each mod type has its own schema and typings, available at <type>-mods/schema.json and <type>-mods/api.d.ts. The schema and typings are automtically setup and configured if you create your mod using the @spotfire/mods-sdk tool.

This package is versioned in sync with the mods version. So if your mod manifest declares version 2.0 then you should depend on @spotfire/mods-api@~2.0.0. If you change the version in your manifest, for instance to version 1.3 to support older versions of Spotfire, then you should update the package version accordingly.

To add typings manually:

  1. Add this package as dependency, e.g. npm add --save-dev @spotfire/mods-api.
  2. Create an env.d.ts file and reference the relevant API:
    // env.d.ts
    /// <reference types="@spotfire/mods-api/visualization-mods/api.d.ts" />
    
  3. For visualization mods you also have to set allowUmdGlobalAccess to true in your tsconfig.json.

To add schema manually follow the instructions given by your editor of choice, for instance if you're using Visual Studio Code see: https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings

FAQs

Package last updated on 05 Jun 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc