make-mp-data 1.5.54 → 1.5.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-mp-data",
3
- "version": "1.5.054",
3
+ "version": "1.5.055",
4
4
  "description": "builds all mixpanel primitives for a given project",
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",
@@ -46,15 +46,17 @@
46
46
  "homepage": "https://github.com/ak--47/make-mp-data#readme",
47
47
  "dependencies": {
48
48
  "@google-cloud/functions-framework": "^3.4.2",
49
+ "@google-cloud/storage": "^7.14.0",
49
50
  "@google/generative-ai": "^0.16.0",
50
- "ak-fetch": "^1.0.4",
51
- "ak-tools": "^1.0.64",
51
+ "ak-fetch": "^1.0.89",
52
+ "ak-tools": "^1.0.68",
52
53
  "chance": "^1.1.11",
53
54
  "chart.js": "^3.9.1",
54
55
  "chartjs-node-canvas": "^4.1.6",
55
56
  "dayjs": "^1.11.11",
56
57
  "dotenv": "^16.4.5",
57
- "mixpanel-import": "^2.6.4",
58
+ "google-auth-library": "^9.15.0",
59
+ "mixpanel-import": "^2.7.47",
58
60
  "p-limit": "^3.1.0",
59
61
  "yargs": "^17.7.2"
60
62
  },
package/scratch.mjs CHANGED
@@ -29,8 +29,10 @@ const numEvents = 1000;
29
29
 
30
30
  /** @type {main.Config} */
31
31
  const spec = {
32
- ...big,
33
- writeToDisk: true,
32
+ ...simple,
33
+ numEvents: 10_000,
34
+ batchSize: 1_000,
35
+ writeToDisk: "gs://dungeon_master_4/scratch",
34
36
  verbose: true,
35
37
  makeChart: false,
36
38
  hasAnonIds: true,
package/scripts/deploy.sh CHANGED
@@ -8,4 +8,8 @@ gcloud alpha functions deploy dm4 \
8
8
  --entry-point entry \
9
9
  --env-vars-file env.yaml \
10
10
  --timeout=3600 \
11
- --memory=2G
11
+ --region=us-central1 \
12
+ --max-instances=1000 \
13
+ --min-instances=0 \
14
+ --concurrency=1 \
15
+ --memory=4G