@originator-profile/model 0.5.0-beta.3 → 0.5.0
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 +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -56,7 +56,7 @@ const DateTimeStamp = zod.z.iso.datetime({
|
|
|
56
56
|
error: "Must be an xsd:dateTimeStamp string (e.g. 2024-01-01T00:00:00Z or 2024-01-01T00:00:00+09:00)"
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
const DNS_URI_PATTERN = /^dns:([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)
|
|
59
|
+
const DNS_URI_PATTERN = /^dns:([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
|
|
60
60
|
const OpId = zod.z.string().regex(DNS_URI_PATTERN, {
|
|
61
61
|
error: "Invalid OP ID: must be dns:<valid-domain>"
|
|
62
62
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -644,4 +644,5 @@ declare const WebsiteProfile: z.ZodObject<{
|
|
|
644
644
|
}, z.core.$loose>;
|
|
645
645
|
type WebsiteProfile = z.infer<typeof WebsiteProfile>;
|
|
646
646
|
|
|
647
|
-
export { AdvertisementCA,
|
|
647
|
+
export { AdvertisementCA, AdvertorialCA, AllowedOrigin, AllowedUrl, ArticleCA, BasicTarget, Certificate, CertificationSystem, ContentAttestation, ContentAttestationSet, ContentAttestationSetItem, CoreProfile, DateTimeStamp, Description, ExternalResourceTarget, Image, JapaneseExistenceCertificate, JapaneseExistenceCertificateProperties, Jwk, Jwks, OpId, OpMeta, OpVc, OriginatorProfile, OriginatorProfileSet, Page, RawImage, RawTarget, SiteProfile, SubresourceIntegrity, Target, UnsignedContentAttestation, UnsignedWebsiteProfile, WebMediaProfile, WebsiteProfile, subject };
|
|
648
|
+
export type { AdvertisementSubject };
|
package/dist/index.d.mts
CHANGED
|
@@ -644,4 +644,5 @@ declare const WebsiteProfile: z.ZodObject<{
|
|
|
644
644
|
}, z.core.$loose>;
|
|
645
645
|
type WebsiteProfile = z.infer<typeof WebsiteProfile>;
|
|
646
646
|
|
|
647
|
-
export { AdvertisementCA,
|
|
647
|
+
export { AdvertisementCA, AdvertorialCA, AllowedOrigin, AllowedUrl, ArticleCA, BasicTarget, Certificate, CertificationSystem, ContentAttestation, ContentAttestationSet, ContentAttestationSetItem, CoreProfile, DateTimeStamp, Description, ExternalResourceTarget, Image, JapaneseExistenceCertificate, JapaneseExistenceCertificateProperties, Jwk, Jwks, OpId, OpMeta, OpVc, OriginatorProfile, OriginatorProfileSet, Page, RawImage, RawTarget, SiteProfile, SubresourceIntegrity, Target, UnsignedContentAttestation, UnsignedWebsiteProfile, WebMediaProfile, WebsiteProfile, subject };
|
|
648
|
+
export type { AdvertisementSubject };
|
package/dist/index.mjs
CHANGED
|
@@ -54,7 +54,7 @@ const DateTimeStamp = z.iso.datetime({
|
|
|
54
54
|
error: "Must be an xsd:dateTimeStamp string (e.g. 2024-01-01T00:00:00Z or 2024-01-01T00:00:00+09:00)"
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
const DNS_URI_PATTERN = /^dns:([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)
|
|
57
|
+
const DNS_URI_PATTERN = /^dns:([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
|
|
58
58
|
const OpId = z.string().regex(DNS_URI_PATTERN, {
|
|
59
59
|
error: "Invalid OP ID: must be dns:<valid-domain>"
|
|
60
60
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@originator-profile/model",
|
|
3
|
-
"version": "0.5.0
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://docs.originator-profile.org",
|
|
6
6
|
"repository": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"zod": "^4.3.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"eslint": "^
|
|
37
|
-
"pkgroll": "^2.
|
|
38
|
-
"typescript": "^
|
|
39
|
-
"vitest": "^4.
|
|
40
|
-
"@originator-profile/tsconfig": "0.5.0
|
|
41
|
-
"eslint-config-originator-profile": "0.5.0
|
|
36
|
+
"eslint": "^10.1.0",
|
|
37
|
+
"pkgroll": "^2.27.0",
|
|
38
|
+
"typescript": "^6.0.2",
|
|
39
|
+
"vitest": "^4.1.2",
|
|
40
|
+
"@originator-profile/tsconfig": "0.5.0",
|
|
41
|
+
"eslint-config-originator-profile": "0.5.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "pkgroll --clean-dist --target=node20",
|