@jungvonmatt/contentful-fakes 1.4.1 → 1.4.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.4.2](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.1...v1.4.2) (2022-01-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * 🐛 Don't ask for delivery & preview token ([10a9a74](https://github.com/jungvonmatt/contentful-ssg/commit/10a9a74f24fecca9d8866d39e2ca9095e9a4d638))
12
+ * 🐛 lint ([22c8b38](https://github.com/jungvonmatt/contentful-ssg/commit/22c8b38fbe1f62e20a597545808181fc488d04c6))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [1.4.1](https://github.com/jungvonmatt/contentful-ssg/compare/v1.4.0...v1.4.1) (2022-01-20)
7
19
 
8
20
  **Note:** Version bump only for package @jungvonmatt/contentful-fakes
package/dist/index.js CHANGED
@@ -3,7 +3,10 @@ import { getConfig } from '@jungvonmatt/contentful-ssg/lib/config';
3
3
  import { askMissing } from '@jungvonmatt/contentful-ssg/lib/ui';
4
4
  import { getMockData } from './lib/faker.js';
5
5
  export async function createFakes(contentTypeIds) {
6
- const contentfulConfig = (await askMissing(await getConfig({})));
6
+ const contentfulConfig = (await askMissing(await getConfig({
7
+ previewAccessToken: '-',
8
+ accessToken: '-',
9
+ })));
7
10
  const environment = await getEnvironment(contentfulConfig);
8
11
  const { items: contentTypes } = await environment.getContentTypes();
9
12
  const { items } = await environment.getEditorInterfaces();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jungvonmatt/contentful-fakes",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Create fake data based on contentful data models",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -46,5 +46,5 @@
46
46
  "@types/chance": "^1.1.3",
47
47
  "@types/faker": "^6.6.9"
48
48
  },
49
- "gitHead": "22c8b38fbe1f62e20a597545808181fc488d04c6"
49
+ "gitHead": "2c0a6fa6cf3baa2b2917de30497907d7014e1685"
50
50
  }
package/src/index.ts CHANGED
@@ -7,7 +7,12 @@ import { getMockData, ContentTypes } from './lib/faker.js';
7
7
  export async function createFakes(
8
8
  contentTypeIds: string[]
9
9
  ): Promise<Record<string, KeyValueMap[]>> {
10
- const contentfulConfig = (await askMissing(await getConfig({}))) as ContentfulConfig;
10
+ const contentfulConfig = (await askMissing(
11
+ await getConfig({
12
+ previewAccessToken: '-',
13
+ accessToken: '-',
14
+ })
15
+ )) as ContentfulConfig;
11
16
  const environment = await getEnvironment(contentfulConfig);
12
17
  const { items: contentTypes } = await environment.getContentTypes();
13
18
  const { items } = await environment.getEditorInterfaces();