Skip to content

Commit d048b32

Browse files
authored
Merge pull request #31 from primno/dev
Update @primno/dpapi version
2 parents 93a9526 + f42a945 commit d048b32

11 files changed

Lines changed: 173 additions & 136 deletions

File tree

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
pull_request:
8+
branches: [ main ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macos-latest]
18+
node-version: [16, 18]
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Install and build
29+
run: |
30+
npm ci
31+
npm run build

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![npm](https://img.shields.io/npm/v/@primno/dataverse-client.svg)](https://www.npmjs.com/package/@primno/dataverse-client)
44
[![npm](https://img.shields.io/npm/l/@primno/dataverse-client.svg)](https://github.com/primno/dataverse-client/blob/main/LICENSE)
5+
![build](https://img.shields.io/github/actions/workflow/status/primno/dataverse-client/build.yml)
56

67
dataverse-client is library for Node.JS to make WebAPI requests to Dataverse and Dynamics 365 CE (on-premises).
78

package-lock.json

Lines changed: 39 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@primno/dataverse-client",
3-
"version": "0.8.1-beta.0",
4-
"description": "Dataverse / Dynamics 365 CE (on-premises) client for Node.JS",
3+
"version": "0.8.1-beta.1",
4+
"description": "Dataverse / Dynamics 365 CE (on-premises) client for Node.JS. Provides authentication with connection string or OAuth 2.0.",
55
"repository": "github:primno/dataverse-client",
66
"main": "dist/index.cjs.js",
77
"module": "dist/index.esm.js",
@@ -10,14 +10,14 @@
1010
"dist"
1111
],
1212
"scripts": {
13-
"build": "rollup -c --environment NODE_ENV:production",
14-
"watch": "rollup -c -w"
13+
"build": "rollup -c --configPlugin typescript --environment NODE_ENV:production",
14+
"watch": "rollup -c -w --configPlugin typescript"
1515
},
1616
"author": "Xavier Monin",
1717
"license": "MIT",
1818
"dependencies": {
19-
"@azure/msal-node": "^1.15.0",
20-
"@primno/dpapi": "^1.0.0",
19+
"@azure/msal-node": "^1.16.0",
20+
"@primno/dpapi": "^1.1.0",
2121
"@tediousjs/connection-string": "^0.4.2",
2222
"axios": "^1.3.4",
2323
"keytar": "^7.9.0"
@@ -28,23 +28,30 @@
2828
"@rollup/plugin-terser": "^0.4.0",
2929
"@rollup/plugin-typescript": "^11.0.0",
3030
"@types/node": "^18.14.0",
31-
"rollup": "^3.17.1",
31+
"rollup": "^3.19.1",
3232
"tslib": "^2.5.0"
3333
},
3434
"eslintIgnore": [
3535
"build",
3636
"dist",
3737
"node_modules"
3838
],
39+
"engines": {
40+
"node": ">=16",
41+
"npm": ">=7"
42+
},
3943
"publishConfig": {
4044
"access": "public",
4145
"registry": "https://registry.npmjs.org/"
4246
},
4347
"keywords": [
44-
"dataverse",
45-
"dynamics",
46-
"d365",
47-
"client",
48-
"webapi"
48+
"Dataverse",
49+
"Dynamics",
50+
"D365",
51+
"Client",
52+
"Authentication",
53+
"WebApi",
54+
"OAuth",
55+
"MSAL"
4956
]
5057
}

rollup.config.mjs

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)