Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed May 17, 2024
1 parent 5873d0a commit d9178ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm install json-schema-patch
### import the `JSONSchemaPatch` class

```js
import JSONSchemaPatch from 'path-to-json-schema-patch';
import { JSONSchemaPatch } from 'path-to-json-schema-patch';
```

### Create an instance
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json-schema-patch",
"version": "0.1.0",
"version": "0.2.0",
"description": "json-schema-patch",
"author": "Dan Lynch <[email protected]>",
"homepage": "https://github.com/cosmology-tech/json-schema-patch#readme",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getValueAtPath(obj, path) {
}


class JSONSchemaPatch {
export class JSONSchemaPatch {
private ops: JSONSchemaPatchOperation[] = [];

constructor(public schema: any) { }
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ interface JSONSchemaPatchOperation {
path: string;
value?: any;
}
declare class JSONSchemaPatch {
export declare class JSONSchemaPatch {
schema: any;
private ops;
constructor(schema: any);
Expand Down

0 comments on commit d9178ba

Please sign in to comment.