Socket
Socket
Sign inDemoInstall

@jupiterone/integration-sdk-runtime

Package Overview
Dependencies
Maintainers
1
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupiterone/integration-sdk-runtime - npm Package Versions

1
27

8.4.2

Diff

Changelog

Source

[8.4.2] - 2022-02-19

Fixed

Fix #629 - Create relationships from Neo4j store using _class as the label instead of _type

Which GitHub repositories are accessible to outside collaborators?

Old query:

MATCH (n:github_repo)-[r:github_repo_allows_user]->(u:github_user{role:"OUTSIDE"})
RETURN n, u

MATCH (account:github_account)-[github_account_owns_repo]->
  (repo:github_repo)-[github_repo_allows_user]->
  (user:github_user {
    role:"OUTSIDE"
  })
RETURN account, repo, user

New query:

MATCH (account:github_account)-[OWNS]->
  (repo:github_repo)-[ALLOWS]->
  (user:github_user {
    role:"OUTSIDE"
  })
RETURN account, repo, user
jupiterone-dev
published 8.4.1 •

Changelog

Source

[8.4.1] - 2022-02-17

Fixed

  • Bumped @types/jest@^27.1.0 in order to fix Namespace 'NodeJS' has no exported member 'Global'. issues captured here: https://github.com/facebook/jest/issues/11640
jupiterone-dev
published 8.4.0 •

Changelog

Source

[8.4.0] - 2022-02-16

Fixed

  • Changed logger to fully mask config field values, rather than displaying last 4 chars

Added

  • Added .toMatchStepMetadata jest matcher. This matcher complements the executeStepWithDependencies utility. Usage:

    const stepResult = await executeStepWithDependencies({
      stepId: Steps.FETCH_USERS.id,
      invocationConfig,
      instanceConfig,
    });
    
    expect(stepResult).toMatchStepMetadata({
      stepId: Steps.FETCH_USERS.id,
      invocationConfig,
    });
    
  • Updated jest matchers in the following way:

    • added optional _type argument to .toMatchGraphObjectSchema matcher
    • added optional _type and _class arguments to .toMatchDirectRelationshipSchema matcher

    This enables developers to simply pass the StepEntityMetadata and StepRelationshipMetadata interfaces to these matchers. Usage:

    expect(collectedEntities).toMatchGraphObjectSchema(Entities.USER);
    expect(collectedRelationships).toMatchDirectRelationshipSchema(
      Relationships.ACCOUNT_HAS_USER,
    );
    
  • Added optional schema property to StepGraphObjectMetadata. This allows developers to provide the property schema to expect on entities, relationships, and mapped relationships. This serves two uses:

    1. Schemas can be used at runtime or test-time to verify that an entity has the correct properties
    2. The j1-integration document command could automatically produce consumer documentation about the properties that an entity / relationship is expected to have
  • Added executeStepWithDependencies utility to @jupiterone/integration-sdk-testing package. This allows developers to test specific integration steps in isolation, while assuring that all of its dependencies have indeed executed. Usage:

    const { collectedEntities, collectedRelationships, collectedData } =
      await executeStepWithDependencies({
        stepId: Steps.FETCH_USERS.id,
        invocationConfig,
        instanceConfig,
      });
    
    expect(collectedEntities.length).toBeGreaterThan(0);
    expect(collectedEnities).toMatchGraphObjectSchema({
      _class: Entities.USER._class,
      schema: Entities.USER.schema,
    });
    // ... additional expectations
    
  • Added MockJobState.collectedData to capture data that has been collected in the job state. Usage:

    const jobState = createMockJobState({
      setData: { existingKey: 'existing-value' },
    });
    await executeStepThatAddsAccountEntity();
    
    expect(jobState.collectedData).toEqual({
      ACCOUNT_ENTITY: {
        _type: 'account',
        _class: 'Account',
        _key: 'account1',
      },
    });
    expect(jobState.collectedData.existingKey).toBeUndefined();
    
jupiterone-dev
published 8.3.2 •

Changelog

Source

[8.3.2] - 2022-02-09

Added

  • Added ability to disable matching class schema in toMatchGraphObjectSchema
jupiterone-dev
published 8.3.1 •

Changelog

Source

[8.3.1] - 2022-02-07

Fixed

  • Fixed #603 - Add missing chalk production dependency to @jupiterone/integration-sdk-cli
jupiterone-dev
published 8.3.0 •

Changelog

Source

[8.3.0] - 2022-02-03

Changed

  • Bumped version of @jupiterone/data-model to add state property to Host entity class
jupiterone-dev
published 8.2.1 •

Changelog

Source

[8.2.1] - 2022-01-25

Changed

Updated the error message within the sdk-core to reference support email instead of the support.jupiterone.io site.

jupiterone-dev
published 8.2.0 •

Changelog

Source

[8.2.0] - 2022-01-12

Added

  • Added the loadExecutionConfig lifecycle method to the InvocationConfig interface. loadExecutionConfig loads shared configuration assets, such as shared API credentials. Example:

    import { fromTemporaryCredentials } from '@aws-sdk/credential-providers';
    
    /**
     * The AWS integration uses shared `fromTemporaryCredentials` across all of
     * its clients.
     */
    export function loadExecutionConfig({
      config: { roleArn: string, externalId: string },
    }) {
      return {
        credentials: fromTemporaryCredentials({
          params: {
            RoleArn: config.roleArn,
            ExternalId: config.externalId,
            RoleSessionName: `juptierone-${uuid()}`,
          },
        }),
      };
    }
    
jupiterone-dev
published 8.1.3 •

Changelog

Source

[8.1.3] - 2022-01-11

Changed

  • Bump @jupiterone/data-model to expose RelationshipClass.SENDS
jupiterone-dev
published 8.1.2 •

Changelog

Source

[8.1.2] - 2022-01-04

Changed

  • Bump @jupiterone/data-model to remove warning messages for User and Person entities
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