rtblint-core 0.11.0 → 0.12.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/index.cjs +2 -2
- package/index.d.ts +5 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
- package/wasm/rtblint_wasm.d.ts +1 -1
- package/wasm/rtblint_wasm.js +1 -1
- package/wasm/rtblint_wasm_bg.wasm +0 -0
package/index.cjs
CHANGED
|
@@ -73,7 +73,7 @@ function validateResponseDialect(input, dialect, version) {
|
|
|
73
73
|
* /openrtb2/auction: each Imp must name a bidder or stored request, and
|
|
74
74
|
* wseat/bseat are refused.
|
|
75
75
|
* @param {string} input - Raw bid request JSON.
|
|
76
|
-
* @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
|
|
76
|
+
* @param {"spec"|"google-ab"|"prebid-server"|"xandr"|"magnite"} profile - Exchange profile.
|
|
77
77
|
* @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
|
|
78
78
|
*/
|
|
79
79
|
function validateProfile(input, profile, version) {
|
|
@@ -83,7 +83,7 @@ function validateProfile(input, profile, version) {
|
|
|
83
83
|
/**
|
|
84
84
|
* Validate an OpenRTB bid response against an exchange profile.
|
|
85
85
|
* @param {string} input - Raw bid response JSON.
|
|
86
|
-
* @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
|
|
86
|
+
* @param {"spec"|"google-ab"|"prebid-server"|"xandr"|"magnite"} profile - Exchange profile.
|
|
87
87
|
* @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
|
|
88
88
|
*/
|
|
89
89
|
function validateResponseProfile(input, profile, version) {
|
package/index.d.ts
CHANGED
|
@@ -108,9 +108,12 @@ export function validateResponseDialect(
|
|
|
108
108
|
* only. "google-ab" is Google Authorized Buyers OpenRTB: at=3 (FIXED_PRICE)
|
|
109
109
|
* is a valid auction type, and each Imp must carry ext.billing_id.
|
|
110
110
|
* "prebid-server" is Prebid Server /openrtb2/auction: each Imp must name a
|
|
111
|
-
* bidder or stored request, and wseat/bseat are refused.
|
|
111
|
+
* bidder or stored request, and wseat/bseat are refused. "xandr" is Microsoft
|
|
112
|
+
* Monetize outgoing requests: ext.appnexus.seller_member_id and
|
|
113
|
+
* video.ext.appnexus.context. "magnite" is Magnite xAPI identity fields:
|
|
114
|
+
* imp.ext.rp.zone_id, site/app ext.rp.site_id, publisher.ext.rp.account_id.
|
|
112
115
|
*/
|
|
113
|
-
export type Profile = "spec" | "google-ab" | "prebid-server";
|
|
116
|
+
export type Profile = "spec" | "google-ab" | "prebid-server" | "xandr" | "magnite";
|
|
114
117
|
|
|
115
118
|
/**
|
|
116
119
|
* Validate an OpenRTB bid request against an exchange profile.
|
package/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ export function validateResponseDialect(input, dialect, version) {
|
|
|
74
74
|
* /openrtb2/auction: each Imp must name a bidder or stored request, and
|
|
75
75
|
* wseat/bseat are refused.
|
|
76
76
|
* @param {string} input - Raw bid request JSON.
|
|
77
|
-
* @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
|
|
77
|
+
* @param {"spec"|"google-ab"|"prebid-server"|"xandr"|"magnite"} profile - Exchange profile.
|
|
78
78
|
* @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
|
|
79
79
|
*/
|
|
80
80
|
export function validateProfile(input, profile, version) {
|
|
@@ -84,7 +84,7 @@ export function validateProfile(input, profile, version) {
|
|
|
84
84
|
/**
|
|
85
85
|
* Validate an OpenRTB bid response against an exchange profile.
|
|
86
86
|
* @param {string} input - Raw bid response JSON.
|
|
87
|
-
* @param {"spec"|"google-ab"|"prebid-server"} profile - Exchange profile.
|
|
87
|
+
* @param {"spec"|"google-ab"|"prebid-server"|"xandr"|"magnite"} profile - Exchange profile.
|
|
88
88
|
* @param {string} [version] - OpenRTB version id (default: latest tracked 2.6 snapshot).
|
|
89
89
|
*/
|
|
90
90
|
export function validateResponseProfile(input, profile, version) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rtblint-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "OpenRTB linter: validates OpenRTB 2.x bid requests and bid responses against versioned IAB spec snapshots",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Aleks <aleks@vastlint.org>",
|
package/wasm/rtblint_wasm.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function validate_dialect(version_id: string, dialect_id: string, input:
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* Validate an OpenRTB bid request against a JSON dialect and an exchange
|
|
58
|
-
* profile ("spec", "google-ab",
|
|
58
|
+
* profile ("spec", "google-ab", "prebid-server", "xandr", or "magnite"). Empty profile id means the specification
|
|
59
59
|
* only. Unknown ids are rejected.
|
|
60
60
|
*/
|
|
61
61
|
export function validate_profile(version_id: string, dialect_id: string, profile_id: string, input: string): any;
|
package/wasm/rtblint_wasm.js
CHANGED
|
@@ -159,7 +159,7 @@ exports.validate_dialect = validate_dialect;
|
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Validate an OpenRTB bid request against a JSON dialect and an exchange
|
|
162
|
-
* profile ("spec", "google-ab",
|
|
162
|
+
* profile ("spec", "google-ab", "prebid-server", "xandr", or "magnite"). Empty profile id means the specification
|
|
163
163
|
* only. Unknown ids are rejected.
|
|
164
164
|
* @param {string} version_id
|
|
165
165
|
* @param {string} dialect_id
|
|
Binary file
|