Skip to content

Commit

Permalink
Merge pull request #13 from allanhvam/dev
Browse files Browse the repository at this point in the history
1.12.0
  • Loading branch information
allanhvam authored Oct 1, 2024
2 parents 69c45db + 021ebe9 commit 7750518
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@ const tenant = {
the handlers to the specific setup function:

```
import { handlers } from 'msw-sp';
// Node.js
import { setupServer } from 'msw/node'
import { handlers } from 'msw-sp';
export const server = setupServer(...handlers({ tenant }));
// Browser
import { setupServer } from 'msw/browser'
import { handlers } from 'msw-sp';
export const worker = setupWorker(...handlers({ tenant }));
```

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "msw-sp",
"version": "1.11.0",
"version": "1.12.0",
"description": "MSW handlers for mocking SharePoint REST api.",
"main": "lib/index.js",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions src/types/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export type Field = {
title: string;
description?: string;
internalName: string;
hidden?: boolean;
readOnlyField?: boolean;
} & (TextField |
LookupField |
ComputedField |
Expand Down

0 comments on commit 7750518

Please sign in to comment.