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

@expo/steps

Package Overview
Dependencies
Maintainers
22
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/steps - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

6

dist_commonjs/BuildConfig.d.ts

@@ -35,3 +35,3 @@ import Joi from 'joi';

};
export type BuildStepInputs = Record<string, string>;
export type BuildStepInputs = Record<string, string | boolean>;
export type BuildStepOutputs = (string | {

@@ -51,4 +51,4 @@ name: string;

name: string;
defaultValue?: string;
allowedValues?: string[];
defaultValue?: string | boolean;
allowedValues?: (string | boolean)[];
required?: boolean;

@@ -55,0 +55,0 @@ })[];

@@ -7,3 +7,3 @@ import { BuildRuntimePlatform } from './BuildRuntimePlatform.js';

export type BuildFunctionById = Record<string, BuildFunction>;
export type BuildFunctionCallInputs = Record<string, string>;
export type BuildFunctionCallInputs = Record<string, string | boolean>;
export declare class BuildFunction {

@@ -10,0 +10,0 @@ readonly namespace?: string;

@@ -6,4 +6,4 @@ import { BuildStepContext } from './BuildStepContext.js';

id: string;
allowedValues?: string[];
defaultValue?: string;
allowedValues?: (string | boolean)[];
defaultValue?: string | boolean;
required?: boolean;

@@ -18,4 +18,4 @@ }

readonly stepDisplayName: string;
readonly defaultValue?: string;
readonly allowedValues?: string[];
readonly defaultValue?: string | boolean;
readonly allowedValues?: (string | boolean)[];
readonly required: boolean;

@@ -25,4 +25,4 @@ private _value?;

constructor(ctx: BuildStepContext, { id, stepDisplayName, allowedValues, defaultValue, required }: BuildStepInputParams);
get value(): string | undefined;
set(value: string | undefined): BuildStepInput;
get value(): string | boolean | undefined;
set(value: string | boolean | undefined): BuildStepInput;
isValueOneOfAllowedValues(): boolean;

@@ -29,0 +29,0 @@ }

@@ -35,3 +35,3 @@ import Joi from 'joi';

};
export type BuildStepInputs = Record<string, string>;
export type BuildStepInputs = Record<string, string | boolean>;
export type BuildStepOutputs = (string | {

@@ -51,4 +51,4 @@ name: string;

name: string;
defaultValue?: string;
allowedValues?: string[];
defaultValue?: string | boolean;
allowedValues?: (string | boolean)[];
required?: boolean;

@@ -55,0 +55,0 @@ })[];

@@ -13,8 +13,8 @@ import assert from 'assert';

is: Joi.exist(),
then: Joi.string()
.valid(Joi.in('allowedValues'))
.messages({ 'any.only': '{{#label}} must be one of allowed values' }),
otherwise: Joi.string(),
then: Joi.valid(Joi.in('allowedValues')).messages({
'any.only': '{{#label}} must be one of allowed values',
}),
otherwise: Joi.alternatives().try(Joi.string(), Joi.boolean()),
}),
allowedValues: Joi.array().items(Joi.string()),
allowedValues: Joi.array().items(Joi.string(), Joi.boolean()),
required: Joi.boolean(),

@@ -31,3 +31,3 @@ })

id: Joi.string(),
inputs: Joi.object().pattern(Joi.string(), Joi.string()),
inputs: Joi.object().pattern(Joi.string(), Joi.alternatives().try(Joi.string(), Joi.boolean())),
name: Joi.string(),

@@ -34,0 +34,0 @@ workingDirectory: Joi.string(),

@@ -7,3 +7,3 @@ import { BuildRuntimePlatform } from './BuildRuntimePlatform.js';

export type BuildFunctionById = Record<string, BuildFunction>;
export type BuildFunctionCallInputs = Record<string, string>;
export type BuildFunctionCallInputs = Record<string, string | boolean>;
export declare class BuildFunction {

@@ -10,0 +10,0 @@ readonly namespace?: string;

@@ -151,4 +151,4 @@ import assert from 'assert';

const vars = inputs.reduce((acc, input) => {
var _a;
acc[input.id] = (_a = input.value) !== null && _a !== void 0 ? _a : '';
var _a, _b;
acc[input.id] = (_b = (_a = input.value) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : '';
return acc;

@@ -155,0 +155,0 @@ }, {});

@@ -6,4 +6,4 @@ import { BuildStepContext } from './BuildStepContext.js';

id: string;
allowedValues?: string[];
defaultValue?: string;
allowedValues?: (string | boolean)[];
defaultValue?: string | boolean;
required?: boolean;

@@ -18,4 +18,4 @@ }

readonly stepDisplayName: string;
readonly defaultValue?: string;
readonly allowedValues?: string[];
readonly defaultValue?: string | boolean;
readonly allowedValues?: (string | boolean)[];
readonly required: boolean;

@@ -25,4 +25,4 @@ private _value?;

constructor(ctx: BuildStepContext, { id, stepDisplayName, allowedValues, defaultValue, required }: BuildStepInputParams);
get value(): string | undefined;
set(value: string | undefined): BuildStepInput;
get value(): string | boolean | undefined;
set(value: string | boolean | undefined): BuildStepInput;
isValueOneOfAllowedValues(): boolean;

@@ -29,0 +29,0 @@ }

@@ -21,3 +21,3 @@ import { BuildStepRuntimeError } from './errors.js';

}
if (rawValue === undefined) {
if (rawValue === undefined || typeof rawValue === 'boolean') {
return rawValue;

@@ -24,0 +24,0 @@ }

@@ -45,3 +45,5 @@ import { BuildConfigError, BuildWorkflowError } from './errors.js';

}
const paths = findOutputPaths(currentStepInput.defaultValue);
const paths = typeof currentStepInput.defaultValue !== 'boolean'
? findOutputPaths(currentStepInput.defaultValue)
: [];
for (const { stepId: referencedStepId, outputId: referencedStepOutputId } of paths) {

@@ -48,0 +50,0 @@ if (!(referencedStepId in visitedStepByStepId)) {

{
"name": "@expo/steps",
"type": "module",
"version": "1.0.19",
"version": "1.0.20",
"main": "./dist_commonjs/index.cjs",

@@ -61,3 +61,3 @@ "types": "./dist_esm/index.d.ts",

},
"gitHead": "49198cf3e5d08f8ec12b13400218a941b1f92349"
"gitHead": "22325ec07e078567c6ef416bdfdd253320227774"
}

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

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

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