Skip to content

Commit b1bf39d

Browse files
committed
chore: Publish v0.0.14
1 parent c60c0f5 commit b1bf39d

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Built files
2-
*.js
2+
*.test.js
33
!binding.js
44
*.map
55
*.d.ts

packages/css/lib/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.minifySync = exports.minify = void 0;
4+
const binding = require("./binding");
5+
async function minify(content, options) {
6+
return binding.minify(content, toBuffer(options));
7+
}
8+
exports.minify = minify;
9+
function minifySync(content, options) {
10+
return binding.minifySync(content, toBuffer(options));
11+
}
12+
exports.minifySync = minifySync;
13+
function toBuffer(t) {
14+
return Buffer.from(JSON.stringify(t));
15+
}

packages/css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@swc/css",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "Super-fast alternative for postcss",
55
"homepage": "https://swc.rs",
66
"main": "./lib/index.js",

packages/html/lib/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
exports.minifySync = exports.minify = void 0;
4+
const binding = require("./binding");
5+
async function minify(content, options) {
6+
return binding.minify(content, toBuffer(options));
7+
}
8+
exports.minify = minify;
9+
function minifySync(content, options) {
10+
return binding.minifySync(content, toBuffer(options));
11+
}
12+
exports.minifySync = minifySync;
13+
function toBuffer(t) {
14+
return Buffer.from(JSON.stringify(t));
15+
}

packages/html/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@swc/html",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "Super-fast alternative for posthtml",
55
"homepage": "https://swc.rs",
66
"main": "./lib/index.js",

0 commit comments

Comments
 (0)