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

tearex

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tearex - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "tearex",
"version": "0.1.1",
"version": "0.1.2",
"private": false,

@@ -5,0 +5,0 @@ "dependencies": {

@@ -8,3 +8,3 @@ import * as models from './models';

interface TeaRexService {
init({url, apiKey}?: {url?: string, apiKey?: string}): void;
init({url, apiKey, stage}?: {url?: string, apiKey?: string, stage?: string}): void;

@@ -49,4 +49,5 @@ createEntity(

private client: ApolloClient<any> | undefined;
private stage: string | undefined;
public init({url, apiKey}: {url?: string, apiKey?: string} = {}): void {
public init({url, apiKey, stage}: {url?: string, apiKey?: string, stage?: string} = {stage: "dev"}): void {
const defaultOptions: DefaultOptions = {

@@ -75,2 +76,4 @@ watchQuery: {

});
this.stage = stage
}

@@ -94,9 +97,9 @@

const mutation = gql`
mutation CreateEntity($entity: EntityInput!) {
createEntity(entity: $entity) {
id
label
properties
}
}
mutation createEntity($entity: EntityInput, $stage: String) {
createEntity(entity: $entity, stage: $stage) {
id
label
properties
}
}
`

@@ -106,3 +109,4 @@ return this.client.mutate({

variables: {
entity
entity,
stage: this.stage
}

@@ -125,4 +129,4 @@ })

const mutation = gql`
mutation DeleteEntity($entity: EntityInput) {
deleteEntity(entity: $entity) {
mutation deleteEntity($entity: EntityInput, $stage: String) {
deleteEntity(entity: $entity, stage: $stage) {
id,

@@ -136,3 +140,4 @@ properties

variables: {
entity
entity,
stage: this.stage
}

@@ -151,4 +156,4 @@ })

const mutation = gql`
mutation batchCreateEntities($entities: [EntityInput]) {
batchCreateEntities(entities: $entities) {
mutation batchCreateEntities($entities: [EntityInput], $stage: String) {
batchCreateEntities(entities: $entities, stage: $stage) {
id

@@ -171,3 +176,4 @@ label

variables: {
entities
entities,
stage: this.stage
}

@@ -191,4 +197,4 @@ })

const mutation = gql`
mutation CreateEvent($inEntity: EntityInput, $event: EventInput, $outEntity: EntityInput) {
createEvent(inEntity: $inEntity, event: $event, outEntity: $outEntity) {
mutation createEvent($inEntity: EntityInput, $event: EventInput, $outEntity: EntityInput, $stage: String) {
createEvent(inEntity: $inEntity, event: $event, outEntity: $outEntity, stage: $stage) {
label

@@ -217,3 +223,4 @@ }

event,
outEntity
outEntity,
stage: this.stage
}

@@ -234,4 +241,4 @@ })

const mutation = gql`
mutation DeleteEvent($inEntity: EntityInput, $event: EventInput, $outEntity: EntityInput) {
deleteEvent(inEntity: $inEntity, event: $event, outEntity: $outEntity) {
mutation deleteEvent($inEntity: EntityInput, $event: EventInput, $outEntity: EntityInput, $stage: String) {
deleteEvent(inEntity: $inEntity, event: $event, outEntity: $outEntity, stage: $stage) {
label

@@ -260,3 +267,4 @@ }

event,
outEntity
outEntity,
stage: this.stage
}

@@ -275,4 +283,4 @@ })

const mutation = gql`
mutation batchCreateEvents($events: [BatchEventInput]) {
batchCreateEvents(events: $events) {
mutation batchCreateEvents($events: [BatchEventInput], $stage: String) {
batchCreateEvents(events: $events, stage: $stage) {
label

@@ -306,3 +314,4 @@ }

variables: {
events: eventVars
events: eventVars,
stage: this.stage
}

@@ -330,4 +339,4 @@ })

const query = gql`
query GetSimilar($entity: EntityInput, $target: String, $filter: FilterInput) {
similar(entity: $entity, target: $target, filter: $filter) {
query getSimilar($entity: EntityInput, $target: String $filter: FilterInput, $stage: String) {
similar(entity: $entity, target: $target, filter: $filter, stage: $stage) {
entity {

@@ -350,3 +359,4 @@ id

limit
}
},
stage: this.stage
}

@@ -353,0 +363,0 @@ })

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