Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@linaria/server

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linaria/server - npm Package Compare versions

Comparing version 3.0.0-beta.13 to 3.0.0-beta.19

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

# [3.0.0-beta.19](https://github.com/callstack/linaria/compare/v3.0.0-beta.18...v3.0.0-beta.19) (2022-06-03)
### Features
* **babel:** api for custom tags ([#976](https://github.com/callstack/linaria/issues/976)) ([3285ccc](https://github.com/callstack/linaria/commit/3285ccc1d00449b78b3fc74087528cd38cbdd116))
* **babel:** new way for detecting tag imports ([#974](https://github.com/callstack/linaria/issues/974)) ([3305cfb](https://github.com/callstack/linaria/commit/3305cfb0c0f65abdacceeb7e6bad118c59f7d551))
# [3.0.0-beta.13](https://github.com/callstack/linaria/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-09-13)

@@ -8,0 +20,0 @@

34

esm/collect.js

@@ -5,2 +5,20 @@ /**

import postcss from 'postcss';
const extractClassesFromHtml = html => {
const htmlClasses = [];
const regex = /\s+class="([^"]+)"/gm;
let match = regex.exec(html);
while (match !== null) {
match[1].split(' ').forEach(className => {
// eslint-disable-next-line no-param-reassign
className = className.replace(/\\|\^|\$|\{|\}|\[|\]|\(|\)|\.|\*|\+|\?|\|/g, '\\$&');
htmlClasses.push(className);
});
match = regex.exec(html);
}
return new RegExp(htmlClasses.join('|'), 'gm');
};
export default function collect(html, css) {

@@ -85,18 +103,2 @@ const animations = new Set();

}
const extractClassesFromHtml = html => {
const htmlClasses = [];
const regex = /\s+class="([^"]+)"/gm;
let match = regex.exec(html);
while (match !== null) {
match[1].split(' ').forEach(className => {
className = className.replace(/\\|\^|\$|\{|\}|\[|\]|\(|\)|\.|\*|\+|\?|\|/g, '\\$&');
htmlClasses.push(className);
});
match = regex.exec(html);
}
return new RegExp(htmlClasses.join('|'), 'gm');
};
//# sourceMappingURL=collect.js.map

@@ -15,2 +15,19 @@ "use strict";

*/
const extractClassesFromHtml = html => {
const htmlClasses = [];
const regex = /\s+class="([^"]+)"/gm;
let match = regex.exec(html);
while (match !== null) {
match[1].split(' ').forEach(className => {
// eslint-disable-next-line no-param-reassign
className = className.replace(/\\|\^|\$|\{|\}|\[|\]|\(|\)|\.|\*|\+|\?|\|/g, '\\$&');
htmlClasses.push(className);
});
match = regex.exec(html);
}
return new RegExp(htmlClasses.join('|'), 'gm');
};
function collect(html, css) {

@@ -99,18 +116,2 @@ const animations = new Set();

}
const extractClassesFromHtml = html => {
const htmlClasses = [];
const regex = /\s+class="([^"]+)"/gm;
let match = regex.exec(html);
while (match !== null) {
match[1].split(' ').forEach(className => {
className = className.replace(/\\|\^|\$|\{|\}|\[|\]|\(|\)|\.|\*|\+|\?|\|/g, '\\$&');
htmlClasses.push(className);
});
match = regex.exec(html);
}
return new RegExp(htmlClasses.join('|'), 'gm');
};
//# sourceMappingURL=collect.js.map
{
"name": "@linaria/server",
"version": "3.0.0-beta.13",
"version": "3.0.0-beta.19",
"publishConfig": {

@@ -18,2 +18,5 @@ "access": "public"

"repository": "git@github.com:callstack/linaria.git",
"engines": {
"node": "^12.16.0 || >=13.7.0"
},
"bugs": {

@@ -47,3 +50,3 @@ "url": "https://github.com/callstack/linaria/issues"

},
"gitHead": "c49df269ebbbc956d43720b007a92f9f865662c5"
"gitHead": "73aab0a3908325333e452b9cbd5e438a0f1de463"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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