@unhead/schema-org 0.4.0 → 0.4.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.
package/dist/index.cjs CHANGED
@@ -321,6 +321,7 @@ const imageResolver = defineSchemaOrgResolver({
321
321
  "@type": "ImageObject"
322
322
  },
323
323
  inheritMeta: [
324
+ // @todo possibly only do if there's a caption
324
325
  "inLanguage"
325
326
  ],
326
327
  idPrefix: "host",
package/dist/index.d.ts CHANGED
@@ -990,7 +990,7 @@ interface JobPostingSimple extends Thing {
990
990
  /**
991
991
  * Type of employment
992
992
  */
993
- employmentType?: 'FULL_TIME' | 'PART_TIME' | 'CONTRACTOR' | 'TEMPORARY' | 'INTERN' | 'VOLUNTEER' | 'PER_DIEM' | 'OTHER';
993
+ employmentType?: EmploymentType | EmploymentType[];
994
994
  /**
995
995
  * The date when the job posting will expire in ISO 8601 format. For example, "2017-02-24"
996
996
  * or "2017-02-24T19:33:17+00:00".
@@ -1008,6 +1008,7 @@ interface JobPostingSimple extends Thing {
1008
1008
  interface JobPosting extends JobPostingSimple {
1009
1009
  }
1010
1010
  declare const jobPostingResolver: SchemaOrgNodeDefinition<JobPosting>;
1011
+ type EmploymentType = 'FULL_TIME' | 'PART_TIME' | 'CONTRACTOR' | 'TEMPORARY' | 'INTERN' | 'VOLUNTEER' | 'PER_DIEM' | 'OTHER';
1011
1012
 
1012
1013
  type DayOfWeek = 'Friday' | 'Monday' | 'PublicHolidays' | 'Saturday' | 'Sunday' | 'Thursday' | 'Tuesday' | 'Wednesday';
1013
1014
  type Time = `${number}${number}:${number}${number}`;
package/dist/index.mjs CHANGED
@@ -319,6 +319,7 @@ const imageResolver = defineSchemaOrgResolver({
319
319
  "@type": "ImageObject"
320
320
  },
321
321
  inheritMeta: [
322
+ // @todo possibly only do if there's a caption
322
323
  "inLanguage"
323
324
  ],
324
325
  idPrefix: "host",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unhead/schema-org",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "packageManager": "pnpm@7.8.0",
5
5
  "description": "Node Schema.org for Simple and Automated Google Rich Results",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "ufo": "^1.0.1",
41
- "unhead": "^1.0.14"
41
+ "unhead": "^1.0.20"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "unbuild .",