@eslint/object-schema
Advanced tools
Comparing version 2.1.3 to 2.1.4
/** | ||
* @filedescription Types for object-schema package. | ||
* @fileoverview Types for object-schema package. | ||
*/ | ||
@@ -4,0 +4,0 @@ |
export type ObjectDefinition = import("./types.ts").ObjectDefinition; | ||
export type PropertyDefinition = import("./types.ts").PropertyDefinition; | ||
/** | ||
* @filedescription Merge Strategy | ||
* @fileoverview Merge Strategy | ||
*/ | ||
@@ -68,3 +68,3 @@ /** | ||
/** | ||
* @filedescription Validation Strategy | ||
* @fileoverview Validation Strategy | ||
*/ | ||
@@ -71,0 +71,0 @@ /** |
// @ts-self-types="./index.d.ts" | ||
/** | ||
* @filedescription Merge Strategy | ||
* @fileoverview Merge Strategy | ||
*/ | ||
//----------------------------------------------------------------------------- | ||
@@ -53,6 +52,5 @@ // Class | ||
/** | ||
* @filedescription Validation Strategy | ||
* @fileoverview Validation Strategy | ||
*/ | ||
//----------------------------------------------------------------------------- | ||
@@ -152,3 +150,3 @@ // Class | ||
/** | ||
* @filedescription Object Schema | ||
* @fileoverview Object Schema | ||
*/ | ||
@@ -269,5 +267,5 @@ | ||
// copy over custom properties that aren't represented | ||
for (const key of Object.keys(source)) { | ||
if (!(key in this)) { | ||
this[key] = source[key]; | ||
for (const sourceKey of Object.keys(source)) { | ||
if (!(sourceKey in this)) { | ||
this[sourceKey] = source[sourceKey]; | ||
} | ||
@@ -379,3 +377,5 @@ } | ||
if ( | ||
objects.some(object => object == null || typeof object !== "object") | ||
objects.some( | ||
object => object === null || typeof object !== "object", | ||
) | ||
) { | ||
@@ -382,0 +382,0 @@ throw new TypeError("All arguments must be objects."); |
/** | ||
* @filedescription Types for object-schema package. | ||
* @fileoverview Types for object-schema package. | ||
*/ | ||
@@ -4,0 +4,0 @@ /** |
/** | ||
* @filedescription Types for object-schema package. | ||
* @fileoverview Types for object-schema package. | ||
*/ | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "@eslint/object-schema", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "An object schema merger/validator", | ||
"type": "module", | ||
"main": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"exports": { | ||
@@ -29,3 +31,4 @@ "require": { | ||
"test:jsr": "npx jsr@latest publish --dry-run", | ||
"test": "mocha tests/" | ||
"test": "mocha tests/", | ||
"test:coverage": "c8 npm test" | ||
}, | ||
@@ -49,6 +52,7 @@ "repository": { | ||
"devDependencies": { | ||
"c8": "^9.1.0", | ||
"mocha": "^10.4.0", | ||
"rollup": "^4.16.2", | ||
"typescript": "^5.4.5", | ||
"rollup-plugin-copy": "^3.5.0" | ||
"rollup-plugin-copy": "^3.5.0", | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -55,0 +59,0 @@ "engines": { |
@@ -225,1 +225,14 @@ # ObjectSchema Package | ||
Apache 2.0 | ||
## Sponsors | ||
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. [Become a Sponsor](https://eslint.org/donate) to get your logo on our README and website. | ||
<!-- NOTE: This section is autogenerated. Do not manually edit.--> | ||
<!--sponsorsstart--> | ||
<h3>Platinum Sponsors</h3> | ||
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="undefined"></a></p><h3>Gold Sponsors</h3> | ||
<p><a href="#"><img src="https://images.opencollective.com/guest-bf377e88/avatar.png" alt="Eli Schleifer" height="96"></a> <a href="https://engineering.salesforce.com"><img src="https://images.opencollective.com/salesforce/ca8f997/logo.png" alt="Salesforce" height="96"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="96"></a></p><h3>Silver Sponsors</h3> | ||
<p><a href="https://www.jetbrains.com/"><img src="https://images.opencollective.com/jetbrains/fe76f99/logo.png" alt="JetBrains" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301?v=4" alt="American Express" height="64"></a> <a href="https://www.workleap.com"><img src="https://avatars.githubusercontent.com/u/53535748?u=d1e55d7661d724bf2281c1bfd33cb8f99fe2465f&v=4" alt="Workleap" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
<p><a href="https://www.notion.so"><img src="https://images.opencollective.com/notion/bf3b117/logo.png" alt="notion" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.ignitionapp.com"><img src="https://avatars.githubusercontent.com/u/5753491?v=4" alt="Ignition" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104?v=4" alt="Nx" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774?v=4" alt="HeroCoders" height="32"></a></p> | ||
<!--sponsorsend--> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55487
1065
238
5