Skip to content

Commit 0e517dc

Browse files
committed
Update docs
1 parent c93c229 commit 0e517dc

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

docs/modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ Creates a parse function to be used later to parse CSS selectors.
134134
| Name | Type | Description |
135135
| :------ | :------ | :------ |
136136
| `options` | `Object` | - |
137-
| `options.strict?` | `boolean` | CSS selector parser in modern browsers is very forgiving. For instance, it works fine with unclosed attribute selectors: `"[attr=value"`. Set to `false` in order to mimic browser behaviour. **`Default`** ```ts true ``` |
138-
| `options.substitutes?` | `boolean` | Flag to enable substitutes. This is not part of CSS syntax, but rather a useful feature to pass variables into CSS selectors. **`Example`** ```ts "[attr=$variable]" ``` **`Default`** ```ts fase ``` |
139-
| `options.syntax?` | [`CssLevel`](modules.md#csslevel) \| [`SyntaxDefinition`](interfaces/SyntaxDefinition.md) | CSS Syntax options to be used for parsing. Can either be one of the predefined CSS levels ([CssLevel](modules.md#csslevel)) or a more detailed syntax definition ([SyntaxDefinition](interfaces/SyntaxDefinition.md)). **`Default`** ```ts "latest" ``` |
137+
| `options.strict?` | `boolean` | CSS selector parser in modern browsers is very forgiving. For instance, it works fine with unclosed attribute selectors: `"[attr=value"`. Set to `false` in order to mimic browser behaviour. Default: `true` |
138+
| `options.substitutes?` | `boolean` | Flag to enable substitutes. This is not part of CSS syntax, but rather a useful feature to pass variables into CSS selectors. Default: `false` **`Example`** ```ts "[attr=$variable]" ``` |
139+
| `options.syntax?` | [`CssLevel`](modules.md#csslevel) \| [`SyntaxDefinition`](interfaces/SyntaxDefinition.md) | CSS Syntax options to be used for parsing. Can either be one of the predefined CSS levels ([CssLevel](modules.md#csslevel)) or a more detailed syntax definition ([SyntaxDefinition](interfaces/SyntaxDefinition.md)). Default: `"latest"` |
140140

141141
#### Returns
142142

src/parser.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ export function createParser(
4646
/**
4747
* CSS Syntax options to be used for parsing.
4848
* Can either be one of the predefined CSS levels ({@link CssLevel}) or a more detailed syntax definition ({@link SyntaxDefinition}).
49-
* @default "latest"
49+
* Default: `"latest"`
5050
*/
5151
syntax?: CssLevel | SyntaxDefinition;
5252
/**
5353
* Flag to enable substitutes.
5454
* This is not part of CSS syntax, but rather a useful feature to pass variables into CSS selectors.
55+
* Default: `false`
5556
* @example "[attr=$variable]"
56-
* @default fase
5757
*/
5858
substitutes?: boolean;
5959
/**
6060
* CSS selector parser in modern browsers is very forgiving. For instance, it works fine with unclosed attribute
6161
* selectors: `"[attr=value"`.
6262
* Set to `false` in order to mimic browser behaviour.
63-
* @default true
63+
* Default: `true`
6464
*/
6565
strict?: boolean;
6666
} = {}

tools/README.md

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -146,21 +146,8 @@ LICENSE
146146

147147
MIT
148148

149-
Security contact information
150-
----------------------------
149+
## Security contact information
151150

152151
To report a security vulnerability, please use the
153-
[Tidelift security contact](https://tidelift.com/security). Tidelift will
154-
coordinate the fix and disclosure.
155-
156-
`css-selector-parser` for enterprise
157-
------------------------------
158-
159-
Available as part of the Tidelift Subscription
160-
161-
The maintainers of `css-selector-parser` and thousands of other packages are working with
162-
Tidelift to deliver commercial support and maintenance for the open source
163-
dependencies you use to build your applications. Save time, reduce risk, and
164-
improve code health, while paying the maintainers of the exact dependencies you
165-
use.
166-
[Learn more.](https://tidelift.com/subscription/pkg/npm-css-selector-parser?utm_source=npm-css-selector-parser&utm_medium=referral&utm_campaign=enterprise)
152+
[Tidelift security contact](https://tidelift.com/security).
153+
Tidelift will coordinate the fix and disclosure.

0 commit comments

Comments
 (0)