Socket
Socket
Sign inDemoInstall

@stackblitz/sdk

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackblitz/sdk - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

3

bundles/sdk.js

@@ -33,3 +33,4 @@ "use strict";

view: (value) => enumParam("view", value, UI_VIEWS),
zenMode: (value) => trueParam("zenMode", value)
zenMode: (value) => trueParam("zenMode", value),
organization: (value) => `${stringParams("orgName", value?.name)}&${stringParams("orgProvider", value?.provider)}`
};

@@ -36,0 +37,0 @@ function buildParams(options = {}) {

@@ -32,3 +32,4 @@ const CONNECT_INTERVAL = 500;

view: (value) => enumParam("view", value, UI_VIEWS),
zenMode: (value) => trueParam("zenMode", value)
zenMode: (value) => trueParam("zenMode", value),
organization: (value) => `${stringParams("orgName", value?.name)}&${stringParams("orgProvider", value?.provider)}`
};

@@ -35,0 +36,0 @@ function buildParams(options = {}) {

@@ -36,3 +36,4 @@ (function(global, factory) {

view: (value) => enumParam("view", value, UI_VIEWS),
zenMode: (value) => trueParam("zenMode", value)
zenMode: (value) => trueParam("zenMode", value),
organization: (value) => `${stringParams("orgName", value?.name)}&${stringParams("orgProvider", value?.provider)}`
};

@@ -39,0 +40,0 @@ function buildParams(options = {}) {

# @stackblitz/sdk changelog
## v1.10.0 (2024-05-03)
- Added support for `organization` in `ProjectOptions`
## v1.9.0 (2023-04-04)

@@ -4,0 +7,0 @@

{
"name": "@stackblitz/sdk",
"version": "1.9.0",
"version": "1.10.0",
"description": "SDK for generating and embedding StackBlitz projects.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -107,2 +107,11 @@ import type { PROJECT_TEMPLATES, UI_SIDEBAR_VIEWS, UI_THEMES, UI_VIEWS } from './constants';

/**
* Set the organization where you want to run the project.
*
* Defaults to no organization.
*/
organization?: {
provider: 'github';
name: string;
};
/**
* Show the sidebar as open or closed on page load.

@@ -109,0 +118,0 @@ *

@@ -15,3 +15,3 @@ import type { EmbedOptions, OpenOptions } from './interfaces';

*/
declare type ParamName = '_test' | 'clicktoload' | 'ctl' | 'devtoolsheight' | 'embed' | 'file' | 'hidedevtools' | 'hideExplorer' | 'hideNavigation' | 'initialpath' | 'showSidebar' | 'sidebarView' | 'startScript' | 'terminalHeight' | 'theme' | 'view' | 'zenMode';
declare type ParamName = '_test' | 'clicktoload' | 'ctl' | 'devtoolsheight' | 'embed' | 'file' | 'hidedevtools' | 'hideExplorer' | 'hideNavigation' | 'initialpath' | 'showSidebar' | 'sidebarView' | 'startScript' | 'terminalHeight' | 'theme' | 'view' | 'zenMode' | 'orgName' | 'orgProvider';
export declare const generators: Record<keyof ParamOptions, (value: any) => string>;

@@ -18,0 +18,0 @@ export declare function buildParams(options?: ParamOptions): string;

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