New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dlightjs/emotion

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dlightjs/emotion - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

dist/styled.view.d.ts

108

dist/index.js
var Ae = Object.defineProperty;
var Re = (e, r, n) => r in e ? Ae(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n;
var _ = (e, r, n) => (Re(e, typeof r != "symbol" ? r + "" : r, n), n);
var V = (e, r, n) => (Re(e, typeof r != "symbol" ? r + "" : r, n), n);
import * as Ie from "@dlightjs/dlight";

@@ -73,3 +73,3 @@ import { View as ce } from "@dlightjs/dlight";

}
function I(e) {
function R(e) {
return e.length;

@@ -102,3 +102,3 @@ }

}
function P() {
function I() {
return E(M, S);

@@ -145,3 +145,3 @@ }

function xe(e) {
return Z = T = 1, Ee = I(M = e), S = 0, [];
return Z = T = 1, Ee = R(M = e), S = 0, [];
}

@@ -155,3 +155,3 @@ function $e(e) {

function Ye(e) {
for (; (g = P()) && g < 33; )
for (; (g = I()) && g < 33; )
O();

@@ -163,3 +163,3 @@ return q(e) > 2 || q(g) > 3 ? "" : " ";

;
return G(e, U() + (r < 6 && P() == 32 && O() == 32));
return G(e, U() + (r < 6 && I() == 32 && O() == 32));
}

@@ -186,3 +186,3 @@ function te(e) {

for (; O() && e + g !== 47 + 10; )
if (e + g === 42 + 42 && P() === 47)
if (e + g === 42 + 42 && I() === 47)
break;

@@ -192,3 +192,3 @@ return "/*" + G(r, S - 1) + "*" + J(e === 47 ? e : O());

function Be(e) {
for (; !q(P()); )
for (; !q(I()); )
O();

@@ -201,3 +201,3 @@ return G(e, S);

function B(e, r, n, s, i, a, o, c, u) {
for (var d = 0, f = 0, h = o, v = 0, k = 0, $ = 0, m = 1, N = 1, y = 1, w = 0, A = "", j = i, V = a, R = s, b = A; N; )
for (var d = 0, f = 0, h = o, v = 0, k = 0, $ = 0, m = 1, N = 1, y = 1, w = 0, C = "", j = i, P = a, A = s, b = C; N; )
switch ($ = w, w = O()) {

@@ -224,3 +224,3 @@ case 40:

case 47:
switch (P()) {
switch (I()) {
case 42:

@@ -235,3 +235,3 @@ case 47:

case 123 * m:
c[d++] = I(b) * y;
c[d++] = R(b) * y;
case 125 * m:

@@ -245,3 +245,3 @@ case 59:

case 59 + f:
k > 0 && I(b) - h && Y(k > 32 ? ue(b + ";", s, n, h - 1) : ue(p(b, " ", "") + ";", s, n, h - 2), u);
k > 0 && R(b) - h && Y(k > 32 ? ue(b + ";", s, n, h - 1) : ue(p(b, " ", "") + ";", s, n, h - 2), u);
break;

@@ -251,5 +251,5 @@ case 59:

default:
if (Y(R = fe(b, r, n, d, f, i, c, A, j = [], V = [], h), a), w === 123)
if (Y(A = fe(b, r, n, d, f, i, c, C, j = [], P = [], h), a), w === 123)
if (f === 0)
B(b, r, R, R, j, a, h, c, V);
B(b, r, A, A, j, a, h, c, P);
else

@@ -260,12 +260,12 @@ switch (v === 99 && E(b, 3) === 110 ? 100 : v) {

case 115:
B(e, R, R, s && Y(fe(e, R, R, 0, 0, i, c, A, i, j = [], h), V), i, V, h, c, s ? j : V);
B(e, A, A, s && Y(fe(e, A, A, 0, 0, i, c, C, i, j = [], h), P), i, P, h, c, s ? j : P);
break;
default:
B(b, R, R, R, [""], V, 0, c, V);
B(b, A, A, A, [""], P, 0, c, P);
}
}
d = f = k = 0, m = y = 1, A = b = "", h = o;
d = f = k = 0, m = y = 1, C = b = "", h = o;
break;
case 58:
h = 1 + I(b), k = $;
h = 1 + R(b), k = $;
default:

@@ -283,9 +283,9 @@ if (m < 1) {

case 44:
c[d++] = (I(b) - 1) * y, y = 1;
c[d++] = (R(b) - 1) * y, y = 1;
break;
case 64:
P() === 45 && (b += F(O())), v = P(), f = h = I(A = b += Be(U())), w++;
I() === 45 && (b += F(O())), v = I(), f = h = R(C = b += Be(U())), w++;
break;
case 45:
$ === 45 && I(b) == 2 && (m = 0);
$ === 45 && R(b) == 2 && (m = 0);
}

@@ -297,4 +297,4 @@ }

for (var h = i - 1, v = i === 0 ? a : [""], k = ie(v), $ = 0, m = 0, N = 0; $ < s; ++$)
for (var y = 0, w = W(e, h + 1, h = Me(m = o[$])), A = e; y < k; ++y)
(A = we(m > 0 ? v[y] + " " + w : p(w, /&\f/g, v[y]))) && (u[N++] = A);
for (var y = 0, w = W(e, h + 1, h = Me(m = o[$])), C = e; y < k; ++y)
(C = we(m > 0 ? v[y] + " " + w : p(w, /&\f/g, v[y]))) && (u[N++] = C);
return Q(e, r, n, i === 0 ? se : c, u, d, f);

@@ -325,3 +325,3 @@ }

}
return I(n = D(e.children, s)) ? e.return = e.value + "{" + n + "}" : "";
return R(n = D(e.children, s)) ? e.return = e.value + "{" + n + "}" : "";
}

@@ -348,3 +348,3 @@ function Ze(e) {

var er = function(r, n, s) {
for (var i = 0, a = 0; i = a, a = P(), i === 38 && a === 12 && (n[s] = 1), !q(a); )
for (var i = 0, a = 0; i = a, a = I(), i === 38 && a === 12 && (n[s] = 1), !q(a); )
O();

@@ -357,3 +357,3 @@ return G(r, S);

case 0:
i === 38 && P() === 12 && (n[s] = 1), r[s] += er(S - 1, n, s);
i === 38 && I() === 12 && (n[s] = 1), r[s] += er(S - 1, n, s);
break;

@@ -365,3 +365,3 @@ case 2:

if (i === 44) {
r[++s] = P() === 58 ? "&\f" : "", n[s] = r[s].length;
r[++s] = I() === 58 ? "&\f" : "", n[s] = r[s].length;
break;

@@ -514,3 +514,3 @@ }

case 4765:
if (I(e) - 1 - r > 6)
if (R(e) - 1 - r > 6)
switch (E(e, r + 1)) {

@@ -530,3 +530,3 @@ case 109:

case 6444:
switch (E(e, I(e) - 3 - (~re(e, "!important") && 10))) {
switch (E(e, R(e) - 3 - (~re(e, "!important") && 10))) {
case 107:

@@ -622,8 +622,8 @@ return p(e, ":", ":" + l) + e;

};
u = function(N, y, w, A) {
u = function(N, y, w, C) {
f = w, process.env.NODE_ENV !== "production" && y.map !== void 0 && (f = {
insert: function(V) {
w.insert(V + y.map);
insert: function(P) {
w.insert(P + y.map);
}
}), k(N ? N + "{" + y.styles + "}" : y.styles), A && ($.inserted[y.name] = !0);
}), k(N ? N + "{" + y.styles + "}" : y.styles), C && ($.inserted[y.name] = !0);
};

@@ -729,6 +729,6 @@ }

return n.replace(Oe, function(s, i, a) {
return C = {
return _ = {
name: i,
styles: a,
next: C
next: _
}, i;

@@ -764,6 +764,6 @@ });

if (n.anim === 1)
return C = {
return _ = {
name: n.name,
styles: n.styles,
next: C
next: _
}, n.name;

@@ -774,6 +774,6 @@ if (n.styles !== void 0) {

for (; s !== void 0; )
C = {
_ = {
name: s.name,
styles: s.styles,
next: C
next: _
}, s = s.next;

@@ -787,4 +787,4 @@ var i = n.styles + ";";

if (e !== void 0) {
var a = C, o = n(e);
return C = a, z(e, r, o);
var a = _, o = n(e);
return _ = a, z(e, r, o);
} else

@@ -848,7 +848,7 @@ process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");

process.env.NODE_ENV !== "production" && (_e = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
var C, ee = function(r, n, s) {
var _, ee = function(r, n, s) {
if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
return r[0];
var i = !0, a = "";
C = void 0;
_ = void 0;
var o = r[0];

@@ -870,3 +870,3 @@ o == null || o.raw === void 0 ? (i = !1, a += z(s, n, o)) : (process.env.NODE_ENV !== "production" && o[0] === void 0 && console.error(pe), a += o[0]);

map: u,
next: C,
next: _,
toString: function() {

@@ -878,3 +878,3 @@ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";

styles: a,
next: C
next: _
};

@@ -1012,10 +1012,9 @@ }, $r = !0;

super(...arguments);
_(this, "_$deps", {
V(this, "_$deps", {
_$content: /* @__PURE__ */ new Map()
});
_(this, "_$tag", "Styled");
_(this, "_$$_$content", "_$prop");
V(this, "_$$_$content", "_$prop");
// @ts-expect-error
_(this, "_$content", "");
_(this, "_$forwardProps", !0);
V(this, "_$content", "");
V(this, "_$forwardProps", !0);
}

@@ -1032,10 +1031,9 @@ Afterset() {

super(...arguments);
_(this, "_$deps", {
V(this, "_$deps", {
_$content: /* @__PURE__ */ new Map()
});
_(this, "_$tag", "Styled");
_(this, "_$$_$content", "_$prop");
V(this, "_$$_$content", "_$prop");
// @ts-expect-error
_(this, "_$content", "");
_(this, "_$forwardProps", !0);
V(this, "_$content", "");
V(this, "_$forwardProps", !0);
}

@@ -1042,0 +1040,0 @@ Body() {

@@ -1,1 +0,1 @@

export { styled } from "./styled.tsd";
export { styled } from "./styled.view.ts";
{
"name": "@dlightjs/emotion",
"version": "0.0.8",
"version": "0.0.9",
"type": "module",

@@ -15,8 +15,8 @@ "files": [

"vite-plugin-dts": "^1.7.1",
"@dlightjs/useless": "0.0.3",
"vite-plugin-dlight-transpiler": "0.4.1"
"@dlightjs/types": "0.1.0",
"vite-plugin-dlight-transpiler": "0.4.3"
},
"dependencies": {
"@emotion/css": "^11.10.6",
"@dlightjs/dlight": "0.4.8"
"@dlightjs/dlight": "0.4.9"
},

@@ -23,0 +23,0 @@ "scripts": {

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