Skip to content

Commit b56a435

Browse files
Remove logs, rebuild
1 parent 84dc9c4 commit b56a435

File tree

8 files changed

+38
-29
lines changed

8 files changed

+38
-29
lines changed

dist/cjs/index.d.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export {};
1+
type Options = Record<string, any>;
2+
declare const _default: {
3+
(options: Options): {
4+
handler: import("tailwindcss/types/config").PluginCreator;
5+
config?: Partial<import("tailwindcss").Config> | undefined;
6+
};
7+
__isOptionsFunction: true;
8+
};
9+
export default _default;

dist/cjs/index.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
};
55
Object.defineProperty(exports, "__esModule", { value: true });
66
const plugin_1 = __importDefault(require("tailwindcss/plugin"));
7-
module.exports = plugin_1.default.withOptions(function (options = {}) {
7+
exports.default = plugin_1.default.withOptions(function (options = {}) {
88
return function ({ matchUtilities, theme, config }) {
99
const context = {
1010
theme,
@@ -14,17 +14,12 @@ module.exports = plugin_1.default.withOptions(function (options = {}) {
1414
matchUtilities({
1515
js: (value) => {
1616
const escape = (str) => {
17-
console.log(`escaping \`${str}\``);
1817
return str.replace(/_/g, '\\_').replace(/ /g, '_');
1918
};
2019
const unescape = (str) => {
21-
console.log(`unescaping \`${str}\``);
22-
str = str.replace(/(?<!\\)_/g, ' ');
23-
str = str.replace(/\\_/g, '_');
24-
return str;
20+
return str.replace(/(?<!\\)_/g, ' ').replace(/\\_/g, '_');
2521
};
2622
const parseString = (str) => {
27-
console.log(`parsing \`${str}\``);
2823
return str.split(/(#{.*?})/g).map((el, i) => (i % 2 === 1 ? el.slice(2, -1) : el));
2924
};
3025
const parts = parseString(escape(value));

dist/esm/index.d.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export {};
1+
type Options = Record<string, any>;
2+
declare const _default: {
3+
(options: Options): {
4+
handler: import("tailwindcss/types/config").PluginCreator;
5+
config?: Partial<import("tailwindcss").Config> | undefined;
6+
};
7+
__isOptionsFunction: true;
8+
};
9+
export default _default;

dist/esm/index.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import plugin from 'tailwindcss/plugin';
2-
module.exports = plugin.withOptions(function (options = {}) {
2+
export default plugin.withOptions(function (options = {}) {
33
return function ({ matchUtilities, theme, config }) {
44
const context = {
55
theme,
@@ -9,17 +9,12 @@ module.exports = plugin.withOptions(function (options = {}) {
99
matchUtilities({
1010
js: (value) => {
1111
const escape = (str) => {
12-
console.log(`escaping \`${str}\``);
1312
return str.replace(/_/g, '\\_').replace(/ /g, '_');
1413
};
1514
const unescape = (str) => {
16-
console.log(`unescaping \`${str}\``);
17-
str = str.replace(/(?<!\\)_/g, ' ');
18-
str = str.replace(/\\_/g, '_');
19-
return str;
15+
return str.replace(/(?<!\\)_/g, ' ').replace(/\\_/g, '_');
2016
};
2117
const parseString = (str) => {
22-
console.log(`parsing \`${str}\``);
2318
return str.split(/(#{.*?})/g).map((el, i) => (i % 2 === 1 ? el.slice(2, -1) : el));
2419
};
2520
const parts = parseString(escape(value));

dist/types/index.d.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
export {};
1+
type Options = Record<string, any>;
2+
declare const _default: {
3+
(options: Options): {
4+
handler: import("tailwindcss/types/config").PluginCreator;
5+
config?: Partial<import("tailwindcss").Config> | undefined;
6+
};
7+
__isOptionsFunction: true;
8+
};
9+
export default _default;

index.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import plugin from 'tailwindcss/plugin';
22

33
type Options = Record<string, any>;
44

5-
module.exports = plugin.withOptions(function (options: Options = {}) {
5+
export default plugin.withOptions(function (options: Options = {}) {
66
return function ({ matchUtilities, theme, config }) {
77
const context = {
88
theme,
@@ -12,19 +12,14 @@ module.exports = plugin.withOptions(function (options: Options = {}) {
1212
matchUtilities({
1313
js: (value) => {
1414
const escape = (str: string) => {
15-
console.log(`escaping \`${str}\``);
1615
return str.replace(/_/g, '\\_').replace(/ /g, '_');
1716
};
1817

1918
const unescape = (str: string) => {
20-
console.log(`unescaping \`${str}\``);
21-
str = str.replace(/(?<!\\)_/g, ' ');
22-
str = str.replace(/\\_/g, '_');
23-
return str;
19+
return str.replace(/(?<!\\)_/g, ' ').replace(/\\_/g, '_');
2420
};
2521

2622
const parseString = (str: string) => {
27-
console.log(`parsing \`${str}\``);
2823
return str.split(/(#{.*?})/g).map((el, i) => (i % 2 === 1 ? el.slice(2, -1) : el));
2924
};
3025

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-jstool",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "JS script injection utility for Tailwind CSS",
55
"main": "./dist/cjs/index.js",
66
"files": [

0 commit comments

Comments
 (0)