@surfside/ads-core-mock 0.1.21 → 0.1.23
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/README.md +15 -15
- package/lib/cjs/BuildInfo.js +1 -1
- package/lib/cjs/BuildInfo.js.map +1 -1
- package/lib/cjs/mock/Bidder.js +52 -52
- package/lib/cjs/mock/Configuration.js +251 -251
- package/lib/esm/BuildInfo.js +1 -1
- package/lib/esm/BuildInfo.js.map +1 -1
- package/lib/esm/mock/Bidder.js +52 -52
- package/lib/esm/mock/Configuration.js +251 -251
- package/package.json +36 -36
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# @surfside/ads-core-mock
|
|
2
|
-
|
|
3
|
-
To install dependencies:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
bun install
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
To run:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
bun run src/index.ts
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This project was created using `bun init` in bun v1.2.10. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
|
1
|
+
# @surfside/ads-core-mock
|
|
2
|
+
|
|
3
|
+
To install dependencies:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun run src/index.ts
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This project was created using `bun init` in bun v1.2.10. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
package/lib/cjs/BuildInfo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SurfsideAdsCoreMockVersionInfo = void 0;
|
|
4
|
-
exports.SurfsideAdsCoreMockVersionInfo = { buildBranch: '
|
|
4
|
+
exports.SurfsideAdsCoreMockVersionInfo = { buildBranch: 'hotfix-0.1.23', buildHash: 'f4f4536', buildVer: '0.1.23' };
|
|
5
5
|
//# sourceMappingURL=BuildInfo.js.map
|
package/lib/cjs/BuildInfo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"BuildInfo.js","sourceRoot":"src/","sources":["BuildInfo.ts"],"names":[],"mappings":";;;AAAa,QAAA,8BAA8B,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC"}
|
package/lib/cjs/mock/Bidder.js
CHANGED
|
@@ -167,58 +167,58 @@ const makeVideo = (requestId, impid, videoUrl) => ({
|
|
|
167
167
|
impid,
|
|
168
168
|
price: 3.50,
|
|
169
169
|
adid: '123456',
|
|
170
|
-
adm: `<?xml version="1.0" encoding="utf-8"?>
|
|
171
|
-
<VAST version="3.0">
|
|
172
|
-
<Ad id="preroll">
|
|
173
|
-
<InLine>
|
|
174
|
-
<Impression id="impression"><![CDATA[http://localhost:3005/impression]]></Impression>
|
|
175
|
-
<AdSystem><![CDATA[2.0]]></AdSystem>
|
|
176
|
-
<AdTitle><![CDATA[Title]]></AdTitle>
|
|
177
|
-
<Creatives>
|
|
178
|
-
<Creative>
|
|
179
|
-
<CompanionAds/>
|
|
180
|
-
</Creative>
|
|
181
|
-
<Creative>
|
|
182
|
-
<Linear>
|
|
183
|
-
<TrackingEvents>
|
|
184
|
-
<Tracking event="start"><![CDATA[http://localhost:3005/start]]>
|
|
185
|
-
</Tracking>
|
|
186
|
-
<Tracking event="firstQuartile"><![CDATA[http://localhost:3005/first]]>
|
|
187
|
-
</Tracking>
|
|
188
|
-
<Tracking event="midpoint"><![CDATA[http://localhost:3005/midpoint]]>
|
|
189
|
-
</Tracking>
|
|
190
|
-
<Tracking event="thirdQuartile"><![CDATA[http://localhost:3005/third]]>
|
|
191
|
-
</Tracking>
|
|
192
|
-
<Tracking event="complete"><![CDATA[http://localhost:3005/complete]]>
|
|
193
|
-
</Tracking>
|
|
194
|
-
<Tracking event="stop"><![CDATA[http://localhost:3005/stop]]>
|
|
195
|
-
</Tracking>
|
|
196
|
-
</TrackingEvents>
|
|
197
|
-
<Duration><![CDATA[00:30]]></Duration>
|
|
198
|
-
<MediaFiles>
|
|
199
|
-
<MediaFile
|
|
200
|
-
delivery="progressive"
|
|
201
|
-
type="video/mp4"
|
|
202
|
-
width="320"
|
|
203
|
-
height="240"
|
|
204
|
-
><![CDATA[${videoUrl}]]></MediaFile>
|
|
205
|
-
</MediaFiles>
|
|
206
|
-
<VideoClicks>
|
|
207
|
-
<ClickThrough id="scanscout"><![CDATA[{SURF_COMMERCE_URL}]]>
|
|
208
|
-
</ClickThrough>
|
|
209
|
-
</VideoClicks>
|
|
210
|
-
</Linear>
|
|
211
|
-
<Extensions>
|
|
212
|
-
<Extension>
|
|
213
|
-
<Name>Wicked Sour Gummies</Name>
|
|
214
|
-
<BrandName>Surfside</BrandName>
|
|
215
|
-
<ProductType>Edible</ProductType>
|
|
216
|
-
</Extension>
|
|
217
|
-
</Extensions>
|
|
218
|
-
</Creative>
|
|
219
|
-
</Creatives>
|
|
220
|
-
</InLine>
|
|
221
|
-
</Ad>
|
|
170
|
+
adm: `<?xml version="1.0" encoding="utf-8"?>
|
|
171
|
+
<VAST version="3.0">
|
|
172
|
+
<Ad id="preroll">
|
|
173
|
+
<InLine>
|
|
174
|
+
<Impression id="impression"><![CDATA[http://localhost:3005/impression]]></Impression>
|
|
175
|
+
<AdSystem><![CDATA[2.0]]></AdSystem>
|
|
176
|
+
<AdTitle><![CDATA[Title]]></AdTitle>
|
|
177
|
+
<Creatives>
|
|
178
|
+
<Creative>
|
|
179
|
+
<CompanionAds/>
|
|
180
|
+
</Creative>
|
|
181
|
+
<Creative>
|
|
182
|
+
<Linear>
|
|
183
|
+
<TrackingEvents>
|
|
184
|
+
<Tracking event="start"><![CDATA[http://localhost:3005/start]]>
|
|
185
|
+
</Tracking>
|
|
186
|
+
<Tracking event="firstQuartile"><![CDATA[http://localhost:3005/first]]>
|
|
187
|
+
</Tracking>
|
|
188
|
+
<Tracking event="midpoint"><![CDATA[http://localhost:3005/midpoint]]>
|
|
189
|
+
</Tracking>
|
|
190
|
+
<Tracking event="thirdQuartile"><![CDATA[http://localhost:3005/third]]>
|
|
191
|
+
</Tracking>
|
|
192
|
+
<Tracking event="complete"><![CDATA[http://localhost:3005/complete]]>
|
|
193
|
+
</Tracking>
|
|
194
|
+
<Tracking event="stop"><![CDATA[http://localhost:3005/stop]]>
|
|
195
|
+
</Tracking>
|
|
196
|
+
</TrackingEvents>
|
|
197
|
+
<Duration><![CDATA[00:30]]></Duration>
|
|
198
|
+
<MediaFiles>
|
|
199
|
+
<MediaFile
|
|
200
|
+
delivery="progressive"
|
|
201
|
+
type="video/mp4"
|
|
202
|
+
width="320"
|
|
203
|
+
height="240"
|
|
204
|
+
><![CDATA[${videoUrl}]]></MediaFile>
|
|
205
|
+
</MediaFiles>
|
|
206
|
+
<VideoClicks>
|
|
207
|
+
<ClickThrough id="scanscout"><![CDATA[{SURF_COMMERCE_URL}]]>
|
|
208
|
+
</ClickThrough>
|
|
209
|
+
</VideoClicks>
|
|
210
|
+
</Linear>
|
|
211
|
+
<Extensions>
|
|
212
|
+
<Extension>
|
|
213
|
+
<Name>Wicked Sour Gummies</Name>
|
|
214
|
+
<BrandName>Surfside</BrandName>
|
|
215
|
+
<ProductType>Edible</ProductType>
|
|
216
|
+
</Extension>
|
|
217
|
+
</Extensions>
|
|
218
|
+
</Creative>
|
|
219
|
+
</Creatives>
|
|
220
|
+
</InLine>
|
|
221
|
+
</Ad>
|
|
222
222
|
</VAST>`,
|
|
223
223
|
nurl: 'https://www.surfside.io/win-notice'
|
|
224
224
|
}]
|