0.0.19 • Published 4 months ago

@usssa/core-client v0.0.19

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Installation

Using npm:

npm install @usssa/core-client

Using yarn:

yarn add @usssa/core-client

Usage

Import the functions you need from the package.

import { compareObjects } from '@usssa/core-client'

const diff = compareObjects({ a: 1, b: 2, c: 3 }, { a: 1, b: 2, c: 4 })
console.log(diff)

Functions

compareObjects

Compares two objects and returns their differences, excluding specified properties

const diff = compareObjects({ a: 1, b: 2, c: 3 }, { a: 1, b: 2, c: 4 })
console.log(diff)

Local Development

Perform code changes in the src directory. Make sure there are corresponding tests in the __tests__ directory.

To verify your changes make sure to run a build and run the tests.

npm run build
npm run test:ci

Once verified, commit your changes. Then run npm version <patch|minor|major> to update the package version. This will also push the changes to the remote repository and create a new git tag.

In GitHub, find the new tag and publish it as a release. This will trigger GitHub Actions to build the package and publish it to NPM.

Testing Core-Client in Project

  • Run yarn link in core-client
  • Run yarn link @usssa/core-client in either client project, i.e. TACO or dotCom
0.0.19

4 months ago

0.0.17

5 months ago

0.0.18

5 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.8

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.3

7 months ago