Skip to content

Commit

Permalink
Changed package maintainer and package scope
Browse files Browse the repository at this point in the history
  • Loading branch information
bostjan-cigan committed Oct 12, 2022
1 parent 3fadebf commit 41cf691
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
[![RESULT d.o.o.](https://www.result.eu/wp-content/uploads/2020/09/Result_400.png "RESULT d.o.o.")](https://www.result.eu/graphql "RESULT d.o.o.")
------------

# Hasura Parser

[![npm version](https://badge.fury.io/js/%40result%2Fhasura-parser.svg)](https://badge.fury.io/js/%40result%2Fhasura-parser)
[![npm version](https://badge.fury.io/js/%40snotra%2Fhasura-parser.svg)](https://badge.fury.io/js/%40snotra%2Fhasura-parser)
![Coverage](badges/coverage.svg)
![Dependencies](https://david-dm.org/resultdoo/hasura-parser.svg)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

An easy utility library for parsing data from Hasura events and actions.

Made with :heart: at RESULT d.o.o.

## Getting started

First install the package.

```bash
yarn add @result/hasura-parser
npm install @result/hasura-parser
yarn add @snotra/hasura-parser
npm install @snotra/hasura-parser
```

## Actions

To use the Action Parser you can either import ActionParser or require the whole package.

```javascript
import { ActionParser } from '@result/hasura-parser'
import { ActionParser } from '@snotra/hasura-parser'

// Data is from your request body
const actionParser = new ActionParser( data )
Expand Down Expand Up @@ -89,7 +83,7 @@ const sessionVariables = actionParser.getActionName()
To use the Events Parser you can either import EventParser or require the whole package.

```javascript
import { EventParser } from '@result/hasura-parser'
import { EventParser } from '@snotra/hasura-parser'

// Data is from your request body
const eventParser = new EventParser( data )
Expand Down Expand Up @@ -217,4 +211,4 @@ const traceContextSpanID = eventParser.getTraceContextSpanID()

## Contributions

If you would like to make any contribution you are welcome to do so.
If you would like to make any contribution you are welcome to do so.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@result/hasura-parser",
"version": "1.0.1",
"name": "@snotra/hasura-parser",
"version": "1.0.2",
"description": "Helper module for Hasura actions and events.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -32,7 +32,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/resultdoo/hasura-parser.git"
"url": "https://github.com/snotra-org/hasura-parser.git"
},
"license": "Apache-2.0",
"dependencies": {},
Expand Down

0 comments on commit 41cf691

Please sign in to comment.