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

@journeyapps/cloudcode

Package Overview
Dependencies
Maintainers
0
Versions
504
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/cloudcode - npm Package Compare versions

Comparing version 0.0.0-dev.85acbfc to 0.0.0-dev.860f465

1

dist/CloudCodeRequest.d.ts
/// <reference types="node" />
/// <reference types="node" />
import { Headers } from 'node-fetch';

@@ -3,0 +4,0 @@ import { URL, URLSearchParams } from 'url';

2

dist/InternalTaskContext.d.ts

@@ -15,3 +15,2 @@ import { TaskContextBackend } from './TaskContextBackend';

private startTime;
token: string;
backend: TaskContextBackend;

@@ -29,2 +28,3 @@ monitor: TaskMonitor;

setToken(token: string): void;
get token(): any;
setBackend(opts: {

@@ -31,0 +31,0 @@ baseUrl?: string;

@@ -14,2 +14,3 @@ 'use strict';

const _backendUrl = Symbol();
const _token = Symbol();
class InternalTaskContext {

@@ -24,3 +25,3 @@ constructor(opts) {

this[_backendUrl] = opts.backendUrl;
this.token = null;
this[_token] = null;
this.backend = new TaskContextBackend_1.TaskContextBackend(this[_backendUrl]);

@@ -36,4 +37,9 @@ this.userContext = new TaskContext_1.TaskContext(this);

setToken(token) {
this.token = token;
this[_token] = token;
}
get token() {
// By having a non-enumerable getter instead of a direct writable property, we avoid broken versions of Rollbar
// attempting to replace the token with '********'.
return this[_token];
}
setBackend(opts) {

@@ -40,0 +46,0 @@ assert(this.token, 'No token set');

{
"name": "@journeyapps/cloudcode",
"version": "0.0.0-dev.85acbfc",
"version": "0.0.0-dev.860f465",
"main": "./dist/index",

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

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