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

@temporalio/create

Package Overview
Dependencies
Maintainers
4
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@temporalio/create - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

lib/index.js

@@ -15,2 +15,3 @@ #!/usr/bin/env node

const typescriptVersion = '4.2.2';
const npm = /^win/.test(process.platform) ? 'npm.cmd' : 'npm';
const packageJsonBase = {

@@ -154,4 +155,4 @@ version: '0.1.0',

else {
await subprocess_1.spawn('npm', ['install'], { cwd: root, stdio: 'inherit' });
await subprocess_1.spawn('npm', ['install', `temporalio@${temporalVersion}`], { cwd: root, stdio: 'inherit' });
await subprocess_1.spawn(npm, ['install'], { cwd: root, stdio: 'inherit' });
await subprocess_1.spawn(npm, ['install', `temporalio@${temporalVersion}`], { cwd: root, stdio: 'inherit' });
}

@@ -158,0 +159,0 @@ }

4

package.json
{
"name": "@temporalio/create",
"version": "0.1.1",
"version": "0.1.2",
"description": "Create a Temporal project from template",

@@ -29,3 +29,3 @@ "main": "lib/index.js",

},
"gitHead": "ccba912fc77cdf09bea49eae110d0be281a03a5d"
"gitHead": "c97a03fabe6d5760b9f4800de496c721f0131684"
}

@@ -7,3 +7,3 @@ import { Connection } from '@temporalio/client';

const example = connection.workflow<Example>('example', { taskQueue: 'tutorial' });
const result = await example('Temporal');
const result = await example.start('Temporal');
console.log(result); // Hello, Temporal

@@ -10,0 +10,0 @@ }

@@ -5,3 +5,3 @@ import { Worker } from '@temporalio/worker';

// Automatically locate and register activities and workflows
const worker = new Worker(__dirname);
const worker = await Worker.create(__dirname);
// Bind to the `tutorial` queue and start accepting tasks

@@ -8,0 +8,0 @@ await worker.run('tutorial');

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