Socket
Socket
Sign inDemoInstall

csstype

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csstype - npm Package Compare versions

Comparing version 2.5.6 to 2.5.7

24

package.json
{
"name": "csstype",
"version": "2.5.6",
"version": "2.5.7",
"main": "",

@@ -18,21 +18,21 @@ "types": "index.d.ts",

"chokidar": "^2.0.4",
"flow-bin": "^0.74.0",
"flow-bin": "^0.79.1",
"jest": "^23.1.0",
"jsdom": "^11.11.0",
"mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#d678f5bb0ac426c833ccdaf55daabf472e6c0ca2",
"mdn-data": "git+https://github.com/mdn/data.git#893a6049355daf5e65361d2858ed08816d58948c",
"jsdom": "^12.0.0",
"mdn-browser-compat-data": "git+https://github.com/mdn/browser-compat-data.git#370be97bf066b9cd8a9977967deb77b6b1ef9eae",
"mdn-data": "git+https://github.com/mdn/data.git#70ef51ce10f76583b3a52918bf0e9ee2688bfb28",
"prettier": "^1.13.5",
"sync-request": "^6.0.0",
"ts-node": "^6.1.1",
"ts-node": "^7.0.1",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.13.0",
"turndown": "^4.0.2",
"typescript": "^2.9.2"
"turndown": "^5.0.0",
"typescript": "^3.0.1"
},
"scripts": {
"update": "ts-node update.ts",
"build": "ts-node build.ts --start",
"watch": "ts-node build.ts --watch",
"update": "ts-node --files update.ts",
"build": "ts-node --files build.ts --start",
"watch": "ts-node --files build.ts --watch",
"lint": "tslint --exclude node_modules/**/* --exclude **/*.d.ts --fix **/*.ts",
"pretty": "prettier --write build.ts **/*.{ts,js,json}",
"pretty": "prettier --write build.ts **/*.{ts,js,json,md}",
"lazy": "tsc && npm run lint && npm run pretty",

@@ -39,0 +39,0 @@ "test": "jest --no-cache",

@@ -26,10 +26,10 @@ # CSSType

* [Style types](#style-types)
* [At-rule types](#at-rule-types)
* [Pseudo types](#pseudo-types)
* [Usage](#usage)
* [What should I do when I get type errors?](#what-should-i-do-when-i-get-type-errors)
* [Version 2.0](#version-20)
* [Contributing](#contributing)
* [Commands](#commands)
- [Style types](#style-types)
- [At-rule types](#at-rule-types)
- [Pseudo types](#pseudo-types)
- [Usage](#usage)
- [What should I do when I get type errors?](#what-should-i-do-when-i-get-type-errors)
- [Version 2.0](#version-20)
- [Contributing](#contributing)
- [Commands](#commands)

@@ -52,13 +52,13 @@ ## Style types

* **All** - Includes `Standard`, `Vendor`, `Obsolete` and `Svg`
* **`Standard`** - Current properties and extends subcategories `StandardLonghand` and `StandardShorthand` _(e.g. `StandardShorthandProperties`)_
* **`Vendor`** - Vendor prefixed properties and extends subcategories `VendorLonghand` and `VendorShorthand` _(e.g. `VendorShorthandProperties`)_
* **`Obsolete`** - Removed or deprecated properties
* **`Svg`** - SVG-specific properties
- **All** - Includes `Standard`, `Vendor`, `Obsolete` and `Svg`
- **`Standard`** - Current properties and extends subcategories `StandardLonghand` and `StandardShorthand` _(e.g. `StandardShorthandProperties`)_
- **`Vendor`** - Vendor prefixed properties and extends subcategories `VendorLonghand` and `VendorShorthand` _(e.g. `VendorShorthandProperties`)_
- **`Obsolete`** - Removed or deprecated properties
- **`Svg`** - SVG-specific properties
Variations:
* **Default** - JavaScript (camel) cased property names
* **`Hyphen`** - CSS (kebab) cased property names
* **`Fallback`** - Also accepts array of values e.g. `string | string[]`
- **Default** - JavaScript (camel) cased property names
- **`Hyphen`** - CSS (kebab) cased property names
- **`Fallback`** - Also accepts array of values e.g. `string | string[]`

@@ -80,11 +80,11 @@ ## At-rule types

* `Pseudos`
- `Pseudos`
Extends:
* `AdvancedPseudos`
- `AdvancedPseudos`
Function-like pseudos e.g. `:not(:first-child)`. The string literal contains the value excluding the parenthesis: `:not`. These are separated because they require an argument that results in infinite number of variations.
* `SimplePseudos`
- `SimplePseudos`

@@ -152,4 +152,4 @@ Plain pseudos e.g. `:hover` that can only be **one** variation.

* Some CSS specs that some vendors has implemented could have been officially rejected or haven't yet received any official acceptance and are therefor not included
* If you're using TypeScript, [type widening](https://blog.mariusschulz.com/2017/02/04/typescript-2-1-literal-type-widening) could be the reason you get `Type 'string' is not assignable to...` errors
- Some CSS specs that some vendors has implemented could have been officially rejected or haven't yet received any official acceptance and are therefor not included
- If you're using TypeScript, [type widening](https://blog.mariusschulz.com/2017/02/04/typescript-2-1-literal-type-widening) could be the reason you get `Type 'string' is not assignable to...` errors

@@ -159,3 +159,3 @@ 2. **Have a look in [issues](https://github.com/frenic/csstype/issues) to see if an issue already has been filed. If not, create a new one.** To help us out, please refer to any information you have found.

* The recommended way is to use **module augmentation**. Here's a few examples:
- The recommended way is to use **module augmentation**. Here's a few examples:

@@ -180,3 +180,3 @@ ```ts

* The alternative way is to use **type assertion**. Here's a few examples:
- The alternative way is to use **type assertion**. Here's a few examples:

@@ -195,3 +195,3 @@ ```ts

* Use **type assertion**. Here's a few examples:
- Use **type assertion**. Here's a few examples:

@@ -212,5 +212,5 @@ ```js

* `msOverflowStyle` is still `msOverflowStyle`
* `mozAppearance` is now `MozAppearance`
* `webkitOverflowScrolling` is now `WebkitOverflowScrolling`
- `msOverflowStyle` is still `msOverflowStyle`
- `mozAppearance` is now `MozAppearance`
- `webkitOverflowScrolling` is now `WebkitOverflowScrolling`

@@ -221,9 +221,9 @@ More info: https://www.andismith.com/blogs/2012/02/modernizr-prefixed/

It's important that you run `$ git config merge.ours.driver true` after you've forked and cloned. That setting prevents merge conflicts when doing rebase because **we want you to commit the generated files** (`index.d.ts` and `index.js.flow`). That's necessary to be able to easily follow the changes your code results in.
**Never modify `index.d.ts` and `index.js.flow` directly. They are generated automatically and committed so that we can easily follow any change it results in.** Therefor it's important that you run `$ git config merge.ours.driver true` after you've forked and cloned. That setting prevents merge conflicts when doing rebase.
### Commands
* `yarn build` Generates typings and type checks them
* `yarn watch` Runs build on each save
* `yarn test` Runs the tests
* `yarn lazy` Type check, lint and formats everything
- `yarn build` Generates typings and type checks them
- `yarn watch` Runs build on each save
- `yarn test` Runs the tests
- `yarn lazy` Type checks, lints and formats everything

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc