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

@stylable/runtime

Package Overview
Dependencies
Maintainers
6
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/runtime - npm Package Compare versions

Comparing version 5.3.0 to 5.3.1-rc.1

dist/pure.d.ts

6

dist/runtime.d.ts

@@ -1,6 +0,4 @@

import type { Host, StateMap } from './types';
import type { Host } from './types';
export { injectCSS, statesRuntime, classesRuntime } from './pure';
export declare function stylesheet(host?: Host): Required<Pick<Host, "stc" | "sts">>;
declare const sti: ((namespace: string, css: string, depth: number, runtimeId: string) => void) | undefined;
declare const stc: (namespace: string, stateMapping?: StateMap | null | undefined) => string, sts: (namespace: string, context: string | undefined, stateOrClass?: string | StateMap | undefined, ...classes: (string | undefined)[]) => string;
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime };
//# sourceMappingURL=runtime.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.classesRuntime = exports.statesRuntime = exports.injectCSS = exports.stylesheet = void 0;
const inject_styles_1 = require("./inject-styles");
exports.stylesheet = exports.classesRuntime = exports.statesRuntime = exports.injectCSS = void 0;
var pure_1 = require("./pure");
Object.defineProperty(exports, "injectCSS", { enumerable: true, get: function () { return pure_1.injectCSS; } });
Object.defineProperty(exports, "statesRuntime", { enumerable: true, get: function () { return pure_1.statesRuntime; } });
Object.defineProperty(exports, "classesRuntime", { enumerable: true, get: function () { return pure_1.classesRuntime; } });
function stylesheet(host) {

@@ -75,7 +78,2 @@ host = host || {};

exports.stylesheet = stylesheet;
const { sti } = (0, inject_styles_1.injectStyles)({});
exports.injectCSS = sti;
const { stc, sts } = stylesheet({});
exports.statesRuntime = stc;
exports.classesRuntime = sts;
//# sourceMappingURL=runtime.js.map

@@ -1,6 +0,4 @@

import type { Host, StateMap } from './types';
import type { Host } from './types';
export { injectCSS, statesRuntime, classesRuntime } from './pure';
export declare function stylesheet(host?: Host): Required<Pick<Host, "stc" | "sts">>;
declare const sti: ((namespace: string, css: string, depth: number, runtimeId: string) => void) | undefined;
declare const stc: (namespace: string, stateMapping?: StateMap | null | undefined) => string, sts: (namespace: string, context: string | undefined, stateOrClass?: string | StateMap | undefined, ...classes: (string | undefined)[]) => string;
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime };
//# sourceMappingURL=runtime.d.ts.map

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

import { injectStyles } from './inject-styles';
export { injectCSS, statesRuntime, classesRuntime } from './pure';
export function stylesheet(host) {

@@ -71,5 +71,2 @@ host = host || {};

}
const { sti } = injectStyles({});
const { stc, sts } = stylesheet({});
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime };
//# sourceMappingURL=runtime.js.map
{
"name": "@stylable/runtime",
"version": "5.3.0",
"version": "5.3.1-rc.1",
"description": "Stylable runtime DOM integration",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

/* eslint-disable no-var */
import type { Host, StateMap, StateValue } from './types';
import { injectStyles } from './inject-styles';
export { injectCSS, statesRuntime, classesRuntime } from './pure';

@@ -91,5 +91,1 @@ export function stylesheet(host?: Host) {

}
const { sti } = injectStyles({});
const { stc, sts } = stylesheet({});
export { sti as injectCSS, stc as statesRuntime, sts as classesRuntime };

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

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