@kittycad/lib 4.4.7 → 4.4.9

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.
package/README.md CHANGED
@@ -15,17 +15,19 @@ npm install @kittycad/lib
15
15
  yarn add @kittycad/lib
16
16
 
17
17
  ## set your token
18
- export KITTYCAD_TOKEN=<your token>
18
+ export ZOO_API_TOKEN=<your token>
19
19
  ```
20
20
 
21
21
  ### Basic example
22
22
  ```typescript
23
- import { file } from '@kittycad/lib';
23
+ import { Client, file } from '@kittycad/lib';
24
24
  import fsp from 'fs/promises';
25
25
 
26
26
  async function main() {
27
+ const client = new Client()
27
28
  // zoo.dev/docs/api/get-cad-file-mass?lang=typescript
28
29
  const response = await file.create_file_mass({
30
+ client,
29
31
  src_format: 'obj',
30
32
  material_density_unit: 'kg:m3',
31
33
  output_unit: 'g',
@@ -40,4 +42,3 @@ async function main() {
40
42
 
41
43
  main();
42
44
  ```
43
-