@prodigio-io/sdk 2.1.0 → 2.1.2
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 +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +12 -3
package/dist/index.js
CHANGED
|
@@ -271,6 +271,9 @@ var _Prodigio = class _Prodigio {
|
|
|
271
271
|
if (typeof window === "undefined") return;
|
|
272
272
|
if (_initialized) return;
|
|
273
273
|
_initialized = true;
|
|
274
|
+
if (process.env.NODE_ENV !== "production" && !document.querySelector('meta[name="prodigio-badge"]')) {
|
|
275
|
+
console.warn('[Prodigio] Missing <meta name="prodigio-badge" content="true"> in your page <head>. This is required for compliance detection. See docs.prodigio.io');
|
|
276
|
+
}
|
|
274
277
|
const { key, badgeToken, baseUrl = DEFAULT_BASE_URL, badge: badgeConfig } = config;
|
|
275
278
|
const position = (_a = badgeConfig == null ? void 0 : badgeConfig.position) != null ? _a : "bottom-right";
|
|
276
279
|
const cached = getCachedToken(key);
|
package/dist/index.mjs
CHANGED
|
@@ -245,6 +245,9 @@ var _Prodigio = class _Prodigio {
|
|
|
245
245
|
if (typeof window === "undefined") return;
|
|
246
246
|
if (_initialized) return;
|
|
247
247
|
_initialized = true;
|
|
248
|
+
if (process.env.NODE_ENV !== "production" && !document.querySelector('meta[name="prodigio-badge"]')) {
|
|
249
|
+
console.warn('[Prodigio] Missing <meta name="prodigio-badge" content="true"> in your page <head>. This is required for compliance detection. See docs.prodigio.io');
|
|
250
|
+
}
|
|
248
251
|
const { key, badgeToken, baseUrl = DEFAULT_BASE_URL, badge: badgeConfig } = config;
|
|
249
252
|
const position = (_a = badgeConfig == null ? void 0 : badgeConfig.position) != null ? _a : "bottom-right";
|
|
250
253
|
const cached = getCachedToken(key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prodigio-io/sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Official JavaScript SDK for the Prodigio hiring API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -12,14 +12,23 @@
|
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
-
"files": [
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
16
18
|
"scripts": {
|
|
17
19
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
|
|
18
20
|
"dev": "tsup src/index.ts --format esm,cjs --dts --watch"
|
|
19
21
|
},
|
|
20
|
-
"keywords": [
|
|
22
|
+
"keywords": [
|
|
23
|
+
"prodigio",
|
|
24
|
+
"hiring",
|
|
25
|
+
"jobs",
|
|
26
|
+
"recruitment",
|
|
27
|
+
"api"
|
|
28
|
+
],
|
|
21
29
|
"license": "MIT",
|
|
22
30
|
"devDependencies": {
|
|
31
|
+
"@types/node": "^25.6.0",
|
|
23
32
|
"tsup": "^8.0.0",
|
|
24
33
|
"typescript": "^5.0.0"
|
|
25
34
|
}
|