@hadoku/jobplatform-worker 2.32.46 → 2.32.47
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/dist/index.js +59 -12
- package/dist/routes/profiles.d.ts.map +1 -1
- package/dist/schemas.d.ts +47 -15
- package/dist/schemas.d.ts.map +1 -1
- package/migrations/0034_profile_view_defaults.sql +14 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -438,6 +438,14 @@ const HealthResponseSchema = z.object({
|
|
|
438
438
|
}).openapi("HealthResponse");
|
|
439
439
|
const ProfileTrackSchema = z.enum(["ic", "manager", "either"]).openapi("ProfileTrack");
|
|
440
440
|
const RoleLevelSchema = z.enum([...IC_LEVELS, ...MANAGER_LEVELS]).openapi("RoleLevel");
|
|
441
|
+
const ProfileViewDefaultsShape = {
|
|
442
|
+
/** near= centre: a place key from GET /locations or free text, stored as given. */
|
|
443
|
+
location: z.string().trim().max(100).nullable(),
|
|
444
|
+
radius_miles: z.number().int().min(1).max(500),
|
|
445
|
+
min_salary: z.number().int().min(0).max(1e7).nullable(),
|
|
446
|
+
include_undisclosed_salary: z.boolean(),
|
|
447
|
+
us_only: z.boolean()
|
|
448
|
+
};
|
|
441
449
|
const ProfileSchema = z.object({
|
|
442
450
|
id: z.string(),
|
|
443
451
|
name: z.string(),
|
|
@@ -445,20 +453,34 @@ const ProfileSchema = z.object({
|
|
|
445
453
|
track: ProfileTrackSchema,
|
|
446
454
|
levels: z.array(RoleLevelSchema),
|
|
447
455
|
remote_pref: z.enum(["remote", "hybrid", "onsite", "any"]),
|
|
456
|
+
...ProfileViewDefaultsShape,
|
|
448
457
|
created_at: z.string(),
|
|
449
458
|
// True for the shared default profile (id 'default') — whether the caller
|
|
450
459
|
// is seeing the code seed or their own edited copy. Regular profiles omit
|
|
451
460
|
// it (defaults to false).
|
|
452
461
|
is_default: z.boolean().default(false)
|
|
453
462
|
}).openapi("Profile");
|
|
454
|
-
const
|
|
463
|
+
const ProfileWritableShape = {
|
|
455
464
|
name: z.string().min(1),
|
|
456
|
-
keywords: z.array(z.string())
|
|
457
|
-
track: ProfileTrackSchema
|
|
458
|
-
levels: z.array(RoleLevelSchema)
|
|
459
|
-
remote_pref: z.enum(["remote", "hybrid", "onsite", "any"])
|
|
465
|
+
keywords: z.array(z.string()),
|
|
466
|
+
track: ProfileTrackSchema,
|
|
467
|
+
levels: z.array(RoleLevelSchema),
|
|
468
|
+
remote_pref: z.enum(["remote", "hybrid", "onsite", "any"]),
|
|
469
|
+
...ProfileViewDefaultsShape
|
|
470
|
+
};
|
|
471
|
+
const CreateProfileSchema = z.object({
|
|
472
|
+
...ProfileWritableShape,
|
|
473
|
+
keywords: ProfileWritableShape.keywords.default([]),
|
|
474
|
+
track: ProfileWritableShape.track.default("either"),
|
|
475
|
+
levels: ProfileWritableShape.levels.default([]),
|
|
476
|
+
remote_pref: ProfileWritableShape.remote_pref.default("any"),
|
|
477
|
+
location: ProfileWritableShape.location.default(null),
|
|
478
|
+
radius_miles: ProfileWritableShape.radius_miles.default(25),
|
|
479
|
+
min_salary: ProfileWritableShape.min_salary.default(null),
|
|
480
|
+
include_undisclosed_salary: ProfileWritableShape.include_undisclosed_salary.default(true),
|
|
481
|
+
us_only: ProfileWritableShape.us_only.default(false)
|
|
460
482
|
}).openapi("CreateProfile");
|
|
461
|
-
const UpdateProfileSchema =
|
|
483
|
+
const UpdateProfileSchema = z.object(ProfileWritableShape).partial().openapi("UpdateProfile");
|
|
462
484
|
const ProfilesResponseSchema = S(z.object({ profiles: z.array(ProfileSchema) })).openapi(
|
|
463
485
|
"ProfilesResponse"
|
|
464
486
|
);
|
|
@@ -3645,8 +3667,9 @@ app$3.openapi(
|
|
|
3645
3667
|
const id = crypto.randomUUID();
|
|
3646
3668
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
3647
3669
|
await db.prepare(
|
|
3648
|
-
`INSERT INTO profiles (id, user_id, name, keywords, target_companies, track, levels, remote_pref,
|
|
3649
|
-
|
|
3670
|
+
`INSERT INTO profiles (id, user_id, name, keywords, target_companies, track, levels, remote_pref,
|
|
3671
|
+
location, radius_miles, min_salary, include_undisclosed_salary, us_only, created_at)
|
|
3672
|
+
VALUES (?, ?, ?, ?, '[]', ?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
3650
3673
|
).bind(
|
|
3651
3674
|
id,
|
|
3652
3675
|
userId,
|
|
@@ -3655,6 +3678,11 @@ app$3.openapi(
|
|
|
3655
3678
|
body.track,
|
|
3656
3679
|
JSON.stringify(body.levels),
|
|
3657
3680
|
body.remote_pref,
|
|
3681
|
+
body.location,
|
|
3682
|
+
body.radius_miles,
|
|
3683
|
+
body.min_salary,
|
|
3684
|
+
body.include_undisclosed_salary ? 1 : 0,
|
|
3685
|
+
body.us_only ? 1 : 0,
|
|
3658
3686
|
now
|
|
3659
3687
|
).run();
|
|
3660
3688
|
if (body.keywords.length > 0) triggerSearchBg(c, c.env);
|
|
@@ -3697,21 +3725,30 @@ app$3.openapi(
|
|
|
3697
3725
|
}
|
|
3698
3726
|
const base = extractFields(existing);
|
|
3699
3727
|
const merged = mergeFields(base, body);
|
|
3728
|
+
const criteriaBefore = criteriaHash(await loadScorableProfile(db, id));
|
|
3700
3729
|
await db.prepare(
|
|
3701
|
-
`UPDATE profiles SET name=?, keywords=?, track=?, levels=?, remote_pref
|
|
3730
|
+
`UPDATE profiles SET name=?, keywords=?, track=?, levels=?, remote_pref=?,
|
|
3731
|
+
location=?, radius_miles=?, min_salary=?, include_undisclosed_salary=?, us_only=?
|
|
3732
|
+
WHERE id=? AND user_id=?`
|
|
3702
3733
|
).bind(
|
|
3703
3734
|
merged.name,
|
|
3704
3735
|
JSON.stringify(merged.keywords),
|
|
3705
3736
|
merged.track,
|
|
3706
3737
|
JSON.stringify(merged.levels),
|
|
3707
3738
|
merged.remote_pref,
|
|
3739
|
+
merged.location,
|
|
3740
|
+
merged.radius_miles,
|
|
3741
|
+
merged.min_salary,
|
|
3742
|
+
merged.include_undisclosed_salary ? 1 : 0,
|
|
3743
|
+
merged.us_only ? 1 : 0,
|
|
3708
3744
|
id,
|
|
3709
3745
|
userId
|
|
3710
3746
|
).run();
|
|
3711
3747
|
if (JSON.stringify(merged.keywords) !== JSON.stringify(base.keywords)) {
|
|
3712
3748
|
triggerSearchBg(c, c.env);
|
|
3713
3749
|
}
|
|
3714
|
-
|
|
3750
|
+
const scorable = await loadScorableProfile(db, id);
|
|
3751
|
+
if (criteriaHash(scorable) !== criteriaBefore) scheduleRankBuild(c, db, id, scorable);
|
|
3715
3752
|
const profile = {
|
|
3716
3753
|
id,
|
|
3717
3754
|
...merged,
|
|
@@ -3929,7 +3966,12 @@ function extractFields(r) {
|
|
|
3929
3966
|
keywords: JSON.parse(r.keywords),
|
|
3930
3967
|
track: r.track,
|
|
3931
3968
|
levels: JSON.parse(r.levels),
|
|
3932
|
-
remote_pref: r.remote_pref
|
|
3969
|
+
remote_pref: r.remote_pref,
|
|
3970
|
+
location: r.location ?? null,
|
|
3971
|
+
radius_miles: Number(r.radius_miles ?? 25),
|
|
3972
|
+
min_salary: r.min_salary === null || r.min_salary === void 0 ? null : Number(r.min_salary),
|
|
3973
|
+
include_undisclosed_salary: Number(r.include_undisclosed_salary ?? 1) === 1,
|
|
3974
|
+
us_only: Number(r.us_only ?? 0) === 1
|
|
3933
3975
|
};
|
|
3934
3976
|
}
|
|
3935
3977
|
function mergeFields(base, body) {
|
|
@@ -3938,7 +3980,12 @@ function mergeFields(base, body) {
|
|
|
3938
3980
|
keywords: body.keywords ?? base.keywords,
|
|
3939
3981
|
track: body.track ?? base.track,
|
|
3940
3982
|
levels: body.levels ?? base.levels,
|
|
3941
|
-
remote_pref: body.remote_pref ?? base.remote_pref
|
|
3983
|
+
remote_pref: body.remote_pref ?? base.remote_pref,
|
|
3984
|
+
location: body.location !== void 0 ? body.location : base.location,
|
|
3985
|
+
radius_miles: body.radius_miles ?? base.radius_miles,
|
|
3986
|
+
min_salary: body.min_salary !== void 0 ? body.min_salary : base.min_salary,
|
|
3987
|
+
include_undisclosed_salary: body.include_undisclosed_salary ?? base.include_undisclosed_salary,
|
|
3988
|
+
us_only: body.us_only ?? base.us_only
|
|
3942
3989
|
};
|
|
3943
3990
|
}
|
|
3944
3991
|
function deserializeProfile(r) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/routes/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAwB9E,UAAU,YAAY;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QACV,WAAW,EAAE,iBAAiB,CAAC;QAC/B;;;;WAIG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/routes/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAwB9E,UAAU,YAAY;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QACV,WAAW,EAAE,iBAAiB,CAAC;QAC/B;;;;WAIG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACF;AA0qBD,eAAO,MAAM,aAAa,oCAAM,CAAC"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -32,6 +32,13 @@ export declare const RoleLevelSchema: z.ZodEnum<{
|
|
|
32
32
|
cxo: "cxo";
|
|
33
33
|
}>;
|
|
34
34
|
export declare const ProfileSchema: z.ZodObject<{
|
|
35
|
+
created_at: z.ZodString;
|
|
36
|
+
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
location: z.ZodNullable<z.ZodString>;
|
|
38
|
+
radius_miles: z.ZodNumber;
|
|
39
|
+
min_salary: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
include_undisclosed_salary: z.ZodBoolean;
|
|
41
|
+
us_only: z.ZodBoolean;
|
|
35
42
|
id: z.ZodString;
|
|
36
43
|
name: z.ZodString;
|
|
37
44
|
keywords: z.ZodArray<z.ZodString>;
|
|
@@ -59,11 +66,8 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
59
66
|
remote: "remote";
|
|
60
67
|
onsite: "onsite";
|
|
61
68
|
}>;
|
|
62
|
-
created_at: z.ZodString;
|
|
63
|
-
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
64
69
|
}, z.core.$strip>;
|
|
65
70
|
export declare const CreateProfileSchema: z.ZodObject<{
|
|
66
|
-
name: z.ZodString;
|
|
67
71
|
keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
72
|
track: z.ZodDefault<z.ZodEnum<{
|
|
69
73
|
ic: "ic";
|
|
@@ -89,16 +93,34 @@ export declare const CreateProfileSchema: z.ZodObject<{
|
|
|
89
93
|
remote: "remote";
|
|
90
94
|
onsite: "onsite";
|
|
91
95
|
}>>;
|
|
96
|
+
location: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
radius_miles: z.ZodDefault<z.ZodNumber>;
|
|
98
|
+
min_salary: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
99
|
+
include_undisclosed_salary: z.ZodDefault<z.ZodBoolean>;
|
|
100
|
+
us_only: z.ZodDefault<z.ZodBoolean>;
|
|
101
|
+
name: z.ZodString;
|
|
92
102
|
}, z.core.$strip>;
|
|
103
|
+
/**
|
|
104
|
+
* Every field optional and NOT defaulted: an omitted field keeps its stored
|
|
105
|
+
* value. Built from the default-free shape on purpose — under zod 4,
|
|
106
|
+
* `CreateProfileSchema.partial()` still applies each field's `.default()`, so a
|
|
107
|
+
* PUT naming only `radius_miles` used to reset keywords to [], track to
|
|
108
|
+
* 'either', levels to [] and remote_pref to 'any'.
|
|
109
|
+
*/
|
|
93
110
|
export declare const UpdateProfileSchema: z.ZodObject<{
|
|
111
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
radius_miles: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
min_salary: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
114
|
+
include_undisclosed_salary: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
us_only: z.ZodOptional<z.ZodBoolean>;
|
|
94
116
|
name: z.ZodOptional<z.ZodString>;
|
|
95
|
-
keywords: z.ZodOptional<z.
|
|
96
|
-
track: z.ZodOptional<z.
|
|
117
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
|
+
track: z.ZodOptional<z.ZodEnum<{
|
|
97
119
|
ic: "ic";
|
|
98
120
|
manager: "manager";
|
|
99
121
|
either: "either";
|
|
100
|
-
}
|
|
101
|
-
levels: z.ZodOptional<z.
|
|
122
|
+
}>>;
|
|
123
|
+
levels: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
102
124
|
manager: "manager";
|
|
103
125
|
junior: "junior";
|
|
104
126
|
mid: "mid";
|
|
@@ -110,18 +132,25 @@ export declare const UpdateProfileSchema: z.ZodObject<{
|
|
|
110
132
|
director: "director";
|
|
111
133
|
vp: "vp";
|
|
112
134
|
cxo: "cxo";
|
|
113
|
-
}
|
|
114
|
-
remote_pref: z.ZodOptional<z.
|
|
135
|
+
}>>>;
|
|
136
|
+
remote_pref: z.ZodOptional<z.ZodEnum<{
|
|
115
137
|
hybrid: "hybrid";
|
|
116
138
|
any: "any";
|
|
117
139
|
remote: "remote";
|
|
118
140
|
onsite: "onsite";
|
|
119
|
-
}
|
|
141
|
+
}>>;
|
|
120
142
|
}, z.core.$strip>;
|
|
121
143
|
export declare const ProfilesResponseSchema: z.ZodObject<{
|
|
122
144
|
success: z.ZodLiteral<true>;
|
|
123
145
|
data: z.ZodObject<{
|
|
124
146
|
profiles: z.ZodArray<z.ZodObject<{
|
|
147
|
+
created_at: z.ZodString;
|
|
148
|
+
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
149
|
+
location: z.ZodNullable<z.ZodString>;
|
|
150
|
+
radius_miles: z.ZodNumber;
|
|
151
|
+
min_salary: z.ZodNullable<z.ZodNumber>;
|
|
152
|
+
include_undisclosed_salary: z.ZodBoolean;
|
|
153
|
+
us_only: z.ZodBoolean;
|
|
125
154
|
id: z.ZodString;
|
|
126
155
|
name: z.ZodString;
|
|
127
156
|
keywords: z.ZodArray<z.ZodString>;
|
|
@@ -149,8 +178,6 @@ export declare const ProfilesResponseSchema: z.ZodObject<{
|
|
|
149
178
|
remote: "remote";
|
|
150
179
|
onsite: "onsite";
|
|
151
180
|
}>;
|
|
152
|
-
created_at: z.ZodString;
|
|
153
|
-
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
154
181
|
}, z.core.$strip>>;
|
|
155
182
|
}, z.core.$strip>;
|
|
156
183
|
}, z.core.$strip>;
|
|
@@ -158,6 +185,13 @@ export declare const ProfileResponseSchema: z.ZodObject<{
|
|
|
158
185
|
success: z.ZodLiteral<true>;
|
|
159
186
|
data: z.ZodObject<{
|
|
160
187
|
profile: z.ZodObject<{
|
|
188
|
+
created_at: z.ZodString;
|
|
189
|
+
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
190
|
+
location: z.ZodNullable<z.ZodString>;
|
|
191
|
+
radius_miles: z.ZodNumber;
|
|
192
|
+
min_salary: z.ZodNullable<z.ZodNumber>;
|
|
193
|
+
include_undisclosed_salary: z.ZodBoolean;
|
|
194
|
+
us_only: z.ZodBoolean;
|
|
161
195
|
id: z.ZodString;
|
|
162
196
|
name: z.ZodString;
|
|
163
197
|
keywords: z.ZodArray<z.ZodString>;
|
|
@@ -185,8 +219,6 @@ export declare const ProfileResponseSchema: z.ZodObject<{
|
|
|
185
219
|
remote: "remote";
|
|
186
220
|
onsite: "onsite";
|
|
187
221
|
}>;
|
|
188
|
-
created_at: z.ZodString;
|
|
189
|
-
is_default: z.ZodDefault<z.ZodBoolean>;
|
|
190
222
|
}, z.core.$strip>;
|
|
191
223
|
}, z.core.$strip>;
|
|
192
224
|
}, z.core.$strip>;
|
|
@@ -417,8 +449,8 @@ export declare const SetJobFeedbackSchema: z.ZodObject<{
|
|
|
417
449
|
vote: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
|
|
418
450
|
reasons: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
419
451
|
stack: "stack";
|
|
420
|
-
company: "company";
|
|
421
452
|
location: "location";
|
|
453
|
+
company: "company";
|
|
422
454
|
pay: "pay";
|
|
423
455
|
domain: "domain";
|
|
424
456
|
level: "level";
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAItC,eAAO,MAAM,mBAAmB;;;;iBAA8B,CAAC;AAO/D,eAAO,MAAM,oBAAoB;;;;;;;;iBAMN,CAAC;AAS5B,eAAO,MAAM,kBAAkB;;;;EAA8D,CAAC;AAC9F,eAAO,MAAM,eAAe;;;;;;;;;;;;EAAiE,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAItC,eAAO,MAAM,mBAAmB;;;;iBAA8B,CAAC;AAO/D,eAAO,MAAM,oBAAoB;;;;;;;;iBAMN,CAAC;AAS5B,eAAO,MAAM,kBAAkB;;;;EAA8D,CAAC;AAC9F,eAAO,MAA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AM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCN,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgD,CAAC;AAMpF,eAAO,MAAM,sBAAsB;;;;EAAiD,CAAC;AAErF,eAAO,MAAM,WAAW;;;;;;;;;;iBAQN,CAAC;AAEnB,eAAO,MAAM,cAAc;;;;;;;;iBAMN,CAAC;AAEtB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAEhC,CAAC;AACF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAA+D,CAAC;AAEhG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAcN,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
-- View defaults a profile carries for the feed (JobPulse's search profiles had
|
|
2
|
+
-- them): where to centre the near= filter and how far, the salary floor to
|
|
3
|
+
-- filter by, whether postings with no listed salary stay, and US-only.
|
|
4
|
+
--
|
|
5
|
+
-- These are DEFAULTS a UI passes to GET /jobs (near / radius_miles /
|
|
6
|
+
-- min_salary). They are not scoring criteria: scoring.ts never reads them and
|
|
7
|
+
-- rank.ts's criteriaHash leaves them out, so editing one never invalidates or
|
|
8
|
+
-- rebuilds the precomputed ranking (job_profile_rank). `salary_floor`, which
|
|
9
|
+
-- IS scored, is a different column.
|
|
10
|
+
ALTER TABLE profiles ADD COLUMN location TEXT;
|
|
11
|
+
ALTER TABLE profiles ADD COLUMN radius_miles INTEGER NOT NULL DEFAULT 25;
|
|
12
|
+
ALTER TABLE profiles ADD COLUMN min_salary INTEGER;
|
|
13
|
+
ALTER TABLE profiles ADD COLUMN include_undisclosed_salary INTEGER NOT NULL DEFAULT 1;
|
|
14
|
+
ALTER TABLE profiles ADD COLUMN us_only INTEGER NOT NULL DEFAULT 0;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/jobplatform-worker",
|
|
3
|
-
"version": "2.32.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "2.32.47",
|
|
4
|
+
"gitHead": "97d25f07f68bcbe31e27cb81c517f99c17770c15",
|
|
5
5
|
"description": "Job listings aggregation and tracking dashboard - Worker package",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|