@narrative.io/data-collaboration-sdk-ts 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,6 @@ export class DatasetApi extends BaseApi {
47
47
  const records = await getDatasetSample(datasetId, size);
48
48
  */
49
49
  async getDatasetSample(datasetId, size = 1000) {
50
- return await this.get(`${resourceName}/${datasetId}/stats?size=${size}`);
50
+ return await this.get(`${resourceName}/${datasetId}/sample?size=${size}`);
51
51
  }
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",
@@ -14,24 +14,29 @@
14
14
  "preversion": "npm run lint",
15
15
  "version": "npm run && git add -A src",
16
16
  "postversion": "git push && git push --tags",
17
- "test": "vitest run --coverage"
17
+ "test": "jest",
18
+ "coverage": "jest --coverage"
18
19
  },
19
20
  "keywords": [],
20
21
  "author": "",
21
22
  "license": "ISC",
22
23
  "devDependencies": {
24
+ "@babel/core": "^7.20.12",
25
+ "@babel/preset-env": "^7.20.2",
26
+ "@babel/preset-typescript": "^7.18.6",
23
27
  "@commitlint/cli": "^17.4.2",
24
28
  "@commitlint/config-conventional": "^17.4.2",
29
+ "@types/jest": "^29.4.0",
25
30
  "@typescript-eslint/eslint-plugin": "^5.51.0",
26
- "@vitest/coverage-c8": "^0.28.4",
31
+ "babel-jest": "^29.4.3",
27
32
  "eslint": "^8.33.0",
28
33
  "eslint-config-standard-with-typescript": "^34.0.0",
29
34
  "eslint-plugin-import": "^2.27.5",
30
35
  "eslint-plugin-n": "^15.6.1",
31
36
  "eslint-plugin-promise": "^6.1.1",
32
- "msw": "^1.0.1",
33
- "typescript": "^4.9.5",
34
- "vitest": "^0.28.4"
37
+ "jest": "^29.4.3",
38
+ "ts-jest": "^29.0.5",
39
+ "typescript": "^4.9.5"
35
40
  },
36
41
  "dependencies": {
37
42
  "mande": "^2.0.3"