@prodigio-io/sdk 1.0.4 → 1.0.5
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +12 -5
- package/dist/index.mjs +12 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -102,7 +102,8 @@ declare class Prodigio {
|
|
|
102
102
|
readonly applications: {
|
|
103
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
104
104
|
};
|
|
105
|
-
static
|
|
105
|
+
static readonly POWERED_BY: PoweredBy;
|
|
106
|
+
static badge(poweredBy?: PoweredBy): BadgeProps;
|
|
106
107
|
static meta(): {
|
|
107
108
|
name: string;
|
|
108
109
|
content: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -102,7 +102,8 @@ declare class Prodigio {
|
|
|
102
102
|
readonly applications: {
|
|
103
103
|
submit: (params: SubmitApplicationParams) => Promise<ApplicationResult>;
|
|
104
104
|
};
|
|
105
|
-
static
|
|
105
|
+
static readonly POWERED_BY: PoweredBy;
|
|
106
|
+
static badge(poweredBy?: PoweredBy): BadgeProps;
|
|
106
107
|
static meta(): {
|
|
107
108
|
name: string;
|
|
108
109
|
content: string;
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var ProdigioError = class extends Error {
|
|
|
34
34
|
this.name = "ProdigioError";
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
var
|
|
37
|
+
var _Prodigio = class _Prodigio {
|
|
38
38
|
constructor(config) {
|
|
39
39
|
// ── Jobs ──────────────────────────────────────────────────────────────────
|
|
40
40
|
this.jobs = {
|
|
@@ -122,15 +122,14 @@ var Prodigio = class {
|
|
|
122
122
|
}
|
|
123
123
|
return res.json();
|
|
124
124
|
}
|
|
125
|
-
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
126
|
-
// Returns props to spread onto your <a> element.
|
|
127
125
|
static badge(poweredBy) {
|
|
126
|
+
const pb = poweredBy != null ? poweredBy : _Prodigio.POWERED_BY;
|
|
128
127
|
return {
|
|
129
|
-
href:
|
|
128
|
+
href: pb.url,
|
|
130
129
|
"data-prodigio-badge": "true",
|
|
131
130
|
target: "_blank",
|
|
132
131
|
rel: "noopener noreferrer",
|
|
133
|
-
text:
|
|
132
|
+
text: pb.text
|
|
134
133
|
};
|
|
135
134
|
}
|
|
136
135
|
// Returns the <meta> tag props for server-rendered compliance verification.
|
|
@@ -140,6 +139,14 @@ var Prodigio = class {
|
|
|
140
139
|
return { name: "prodigio-badge", content: "true" };
|
|
141
140
|
}
|
|
142
141
|
};
|
|
142
|
+
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
143
|
+
// Returns props to spread onto your <a> element.
|
|
144
|
+
// poweredBy is optional — defaults to Prodigio's built-in attribution.
|
|
145
|
+
_Prodigio.POWERED_BY = {
|
|
146
|
+
text: "Hiring powered by Prodigio",
|
|
147
|
+
url: "https://prodigio.io"
|
|
148
|
+
};
|
|
149
|
+
var Prodigio = _Prodigio;
|
|
143
150
|
var index_default = Prodigio;
|
|
144
151
|
// Annotate the CommonJS export names for ESM import in node:
|
|
145
152
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var ProdigioError = class extends Error {
|
|
|
8
8
|
this.name = "ProdigioError";
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
var
|
|
11
|
+
var _Prodigio = class _Prodigio {
|
|
12
12
|
constructor(config) {
|
|
13
13
|
// ── Jobs ──────────────────────────────────────────────────────────────────
|
|
14
14
|
this.jobs = {
|
|
@@ -96,15 +96,14 @@ var Prodigio = class {
|
|
|
96
96
|
}
|
|
97
97
|
return res.json();
|
|
98
98
|
}
|
|
99
|
-
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
100
|
-
// Returns props to spread onto your <a> element.
|
|
101
99
|
static badge(poweredBy) {
|
|
100
|
+
const pb = poweredBy != null ? poweredBy : _Prodigio.POWERED_BY;
|
|
102
101
|
return {
|
|
103
|
-
href:
|
|
102
|
+
href: pb.url,
|
|
104
103
|
"data-prodigio-badge": "true",
|
|
105
104
|
target: "_blank",
|
|
106
105
|
rel: "noopener noreferrer",
|
|
107
|
-
text:
|
|
106
|
+
text: pb.text
|
|
108
107
|
};
|
|
109
108
|
}
|
|
110
109
|
// Returns the <meta> tag props for server-rendered compliance verification.
|
|
@@ -114,6 +113,14 @@ var Prodigio = class {
|
|
|
114
113
|
return { name: "prodigio-badge", content: "true" };
|
|
115
114
|
}
|
|
116
115
|
};
|
|
116
|
+
// ── Badge ─────────────────────────────────────────────────────────────────
|
|
117
|
+
// Returns props to spread onto your <a> element.
|
|
118
|
+
// poweredBy is optional — defaults to Prodigio's built-in attribution.
|
|
119
|
+
_Prodigio.POWERED_BY = {
|
|
120
|
+
text: "Hiring powered by Prodigio",
|
|
121
|
+
url: "https://prodigio.io"
|
|
122
|
+
};
|
|
123
|
+
var Prodigio = _Prodigio;
|
|
117
124
|
var index_default = Prodigio;
|
|
118
125
|
export {
|
|
119
126
|
Prodigio,
|