@eslint-react/shared 1.5.14-next.1 → 1.5.14-next.3
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 -3
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -190,7 +190,7 @@ var getDocsUrl = (pluginName) => (ruleName) => {
|
|
|
190
190
|
};
|
|
191
191
|
var createRuleForPlugin = (pluginName) => utils.ESLintUtils.RuleCreator(getDocsUrl(pluginName));
|
|
192
192
|
|
|
193
|
-
// ../../node_modules/.pnpm/valibot@0.31.0-rc.
|
|
193
|
+
// ../../node_modules/.pnpm/valibot@0.31.0-rc.6/node_modules/valibot/dist/index.js
|
|
194
194
|
var store2;
|
|
195
195
|
function getGlobalMessage(lang) {
|
|
196
196
|
return store2?.get(lang);
|
|
@@ -206,7 +206,7 @@ function getSpecificMessage(reference, lang) {
|
|
|
206
206
|
function _stringify(input) {
|
|
207
207
|
let type = typeof input;
|
|
208
208
|
if (type === "object") {
|
|
209
|
-
type = input
|
|
209
|
+
type = (input && Object.getPrototypeOf(input)?.constructor?.name) ?? "null";
|
|
210
210
|
}
|
|
211
211
|
return type === "string" ? `"${input}"` : type === "number" || type === "bigint" || type === "boolean" ? `${input}` : type;
|
|
212
212
|
}
|
|
@@ -320,7 +320,7 @@ function object(entries, message) {
|
|
|
320
320
|
message,
|
|
321
321
|
_run(dataset, config) {
|
|
322
322
|
const input = dataset.value;
|
|
323
|
-
if (input && typeof input === "object"
|
|
323
|
+
if (input && typeof input === "object") {
|
|
324
324
|
dataset.typed = true;
|
|
325
325
|
dataset.value = {};
|
|
326
326
|
for (const key in this.entries) {
|
package/dist/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ var getDocsUrl = (pluginName) => (ruleName) => {
|
|
|
188
188
|
};
|
|
189
189
|
var createRuleForPlugin = (pluginName) => ESLintUtils.RuleCreator(getDocsUrl(pluginName));
|
|
190
190
|
|
|
191
|
-
// ../../node_modules/.pnpm/valibot@0.31.0-rc.
|
|
191
|
+
// ../../node_modules/.pnpm/valibot@0.31.0-rc.6/node_modules/valibot/dist/index.js
|
|
192
192
|
var store2;
|
|
193
193
|
function getGlobalMessage(lang) {
|
|
194
194
|
return store2?.get(lang);
|
|
@@ -204,7 +204,7 @@ function getSpecificMessage(reference, lang) {
|
|
|
204
204
|
function _stringify(input) {
|
|
205
205
|
let type = typeof input;
|
|
206
206
|
if (type === "object") {
|
|
207
|
-
type = input
|
|
207
|
+
type = (input && Object.getPrototypeOf(input)?.constructor?.name) ?? "null";
|
|
208
208
|
}
|
|
209
209
|
return type === "string" ? `"${input}"` : type === "number" || type === "bigint" || type === "boolean" ? `${input}` : type;
|
|
210
210
|
}
|
|
@@ -318,7 +318,7 @@ function object(entries, message) {
|
|
|
318
318
|
message,
|
|
319
319
|
_run(dataset, config) {
|
|
320
320
|
const input = dataset.value;
|
|
321
|
-
if (input && typeof input === "object"
|
|
321
|
+
if (input && typeof input === "object") {
|
|
322
322
|
dataset.typed = true;
|
|
323
323
|
dataset.value = {};
|
|
324
324
|
for (const key in this.entries) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.5.14-next.
|
|
3
|
+
"version": "1.5.14-next.3",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"tsup": "8.0.2",
|
|
43
43
|
"type-fest": "4.18.3",
|
|
44
|
-
"valibot": "0.31.0-rc.
|
|
44
|
+
"valibot": "0.31.0-rc.6"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsup",
|