Socket
Socket
Sign inDemoInstall

@ndustrial/contxt-sdk

Package Overview
Dependencies
Maintainers
18
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndustrial/contxt-sdk - npm Package Versions

1
13

1.2.2

Diff

Changelog

Source

v1.2.2 (2019-06-03)

Fixed

  • v1.2.1 was published without the changes introduced in 1.1.0. Republishing to re-add this code.
melting
published 1.2.1 •

Changelog

Source

v1.2.1 (2019-05-30)

Added

  • Added Coordinator.roles#create for adding a new role within an organization
  • Added Coordinator.roles#delete for deleting a role within an organization
smstromb
published 1.2.0 •

Changelog

Source

v1.2.0 (2019-05-30)

Added

  • Added Coordinator.permissions#getOneByOrganizationId for getting a single user's permissions within an organization

Changed

  • Renamed Coordinator.permissions#getByOrganizationId to Coordinator.permissions#getAllByOrganizationId for getting every user's permissions within an organization.
greg5green
published 1.1.0 •

Changelog

Source

v1.1.0 (2019-05-29)

Added

  • Added Coordinator.applications#getGroupings for getting all application groupings and modules for an application that a user has access to
greg5green
published 1.0.0 •

Changelog

Source

v1.0.0 (2019-05-28)

Changed

  • Updated build process to only transpile source files instead of also concatenating into a single module

    • This will allow us to substitute out modules when the browser and Node version needs to differ (like the Message Bus module at the moment)
    • Additionally, it will allow end users to import a specific file from the package to use or extend it (i.e. when creating a custom module, a user might want to use our object utilities to transform object key cases or extend off an already built module to add or monkey-patch functionality)
    • Provides separate CommonJS and ES Module file trees (in /lib and /esm, respectively) to be used directly by Node, Webpack, or the user's preferred bundling application
    • The directory for the ES modules build has changed. If a project was directly importing the ES module instead of the root package, this will need to be updated (i.e. import ContxtSdk from 'contxt-sdk/es' to import ContxtSdk from 'contxt-sdk/esm')
    • NOTE: The Babel configuration has been moved from the .babelrc file to the package.json so that the configuration can be shared with the Gulp build process and testing via Mocha. If upgrading to Babel 7, this should be moved to a babel.config.js file (this functionality was added in 7).
  • Added Browser versions of Message Bus related modules that indicate connecting to the Message Bus is not supported in browser environments at the moment.

  • Changed back to using UUIDv4s as IDs for Message Bus subscriptions and publications.

  • Refactored Auth0WebAuth to better handle access tokens provided by contxt-auth. Each API/audience now gets its own token instead of getting one big token that contained every possible API/audience combination.

    • If using Auth#getCurrentApiToken (especially if not passing in the audience name/API name), pay extra attention to this update. The output has the same format, but the information that should be expected in the token is slightly different (there will be less information).
  • Split Coordinator module into multiple submodules

//Applications Module
coordinator.createFavoriteApplication()	-> coordinator.applications.addFavorite()
coordinator.getAllApplications() -> coordinator.applications.getAll()
coordinator.getFavoriteApplications() -> coordinator.applications.getFavorites()
coordinator.getFeaturedApplications() -> coordinator.applications.getFeatured()
coordinator.deleteFavoriteApplication()	-> coordinator.applications.removeFavorite()

//Organizations Module
coordinator.getOrganizationById() -> coordinator.organizations.get()
coordinator.getAllOrganizations() -> coordinator.organizations.getAll()

//Permissions Module
coordinator.getUserPermissionsMap()	-> coordinator.permissions.getByUserId()

//Users Module
coordinator.activateNewUser() -> coordinator.users.activate()
coordinator.getUser() -> coordinator.users.get()
coordinator.getUsersByOrganization() -> coordinator.users.getByOrganizationId()
coordinator.inviteNewUserToOrganization() -> coordinator.users.invite()
coordinator.removeUserFromOrganization() -> coordinator.users.remove()

Added

  • Added Permissions#getByOrganizationId for fetching all user permissions for an entire organization.
  • Added Users#addRole for adding a role to a user
  • Added Users#removeRole for removing a role from a user
  • Added Users#addApplication for adding an application to a user
  • Added Users#removeApplication for removing an application from a user
  • Added Users#addStack for adding a stack to a user
  • Added Users#removeStack for removing a stack from a user
smstromb
published 1.0.0-beta.9 •

smstromb
published 1.0.0-beta.8 •

smstromb
published 0.0.50 •

Changelog

Source

v0.0.50 (2019-05-14)

Added

  • Added Roles Module coordinator.roles
  • Added Roles#getByOrganizationId for getting all roles belonging to an organization
greg5green
published 1.0.0-beta.7 •

smstromb
published 1.0.0-beta.6 •

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