@theholocron/postman-client 1.5.6 → 1.6.1

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.
Files changed (2) hide show
  1. package/README.md +8 -15
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -28,24 +28,21 @@ const { collections } = await postman.collections.list("workspace-id");
28
28
  await postman.collections.delete("collection-uid");
29
29
 
30
30
  // Import an OpenAPI spec as a collection
31
- const { collections: imported } = await postman.import.openapi(
32
- "workspace-id",
33
- spec,
34
- );
31
+ const { collections: imported } = await postman.import.openapi("workspace-id", spec);
35
32
 
36
33
  // List environments
37
34
  const { environments } = await postman.environments.list("workspace-id");
38
35
 
39
36
  // Create an environment
40
37
  await postman.environments.create("workspace-id", {
41
- name: "Production",
42
- values: [],
38
+ name: "Production",
39
+ values: [],
43
40
  });
44
41
 
45
42
  // Update an environment
46
43
  await postman.environments.update("environment-uid", {
47
- name: "Production",
48
- values: [],
44
+ name: "Production",
45
+ values: [],
49
46
  });
50
47
 
51
48
  // List Spec Hub specs
@@ -53,16 +50,12 @@ const { specs } = await postman.specs.list("workspace-id");
53
50
 
54
51
  // Create a spec
55
52
  await postman.specs.create("workspace-id", {
56
- name: "My API",
57
- fileContent: JSON.stringify(openApiSpec),
53
+ name: "My API",
54
+ fileContent: JSON.stringify(openApiSpec),
58
55
  });
59
56
 
60
57
  // Update a spec file
61
- await postman.specs.updateFile(
62
- "spec-id",
63
- "index.json",
64
- JSON.stringify(updatedSpec),
65
- );
58
+ await postman.specs.updateFile("spec-id", "index.json", JSON.stringify(updatedSpec));
66
59
  ```
67
60
 
68
61
  ## Status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/postman-client",
3
- "version": "1.5.6",
3
+ "version": "1.6.1",
4
4
  "description": "A TypeScript client for the Postman API",
5
5
  "homepage": "https://github.com/theholocron/clients/tree/main/packages/postman-client#readme",
6
6
  "bugs": "https://github.com/theholocron/clients/issues",
@@ -29,14 +29,14 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@theholocron/http-client": "^1.5.6"
32
+ "@theholocron/http-client": "^1.6.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^26.1.2",
36
- "@theholocron/eslint-config": "^7.6.1",
37
- "@theholocron/tsconfig": "^7.6.1",
38
- "@theholocron/tsdown-config": "^7.6.1",
39
- "@theholocron/vitest-config": "^7.6.1",
36
+ "@theholocron/eslint-config": "^7.7.0",
37
+ "@theholocron/tsconfig": "^7.7.0",
38
+ "@theholocron/tsdown-config": "^7.7.0",
39
+ "@theholocron/vitest-config": "^7.7.0",
40
40
  "@vitest/coverage-v8": "^4.1.10",
41
41
  "@vitest/eslint-plugin": "^1.6.24",
42
42
  "eslint": "^10.8.0",