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

yaschema-api-google-cloud-task-creator

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaschema-api-google-cloud-task-creator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/cjs/create-google-cloud-task/create-google-cloud-task/index.js

2

lib/cjs/index.js

@@ -17,5 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./api-fetch/exports"), exports);
__exportStar(require("./config/exports"), exports);
__exportStar(require("./create-google-cloud-task/exports"), exports);
__exportStar(require("./types/exports"), exports);
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ "use strict";

'form-data': () => undefined,
json: JSON.stringify
json: (body) => Buffer.from(JSON.stringify(body), 'utf-8')
};

@@ -9,0 +9,0 @@ const encodeBody = ({ requestType = 'json', body }) => encodersByRequestType[requestType](body);

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

export * from './api-fetch/exports';
export * from './config/exports';
export * from './create-google-cloud-task/exports';
export * from './types/exports';
//# sourceMappingURL=index.d.ts.map

@@ -0,7 +1,7 @@

/// <reference types="node" />
import type { AnyBody, HttpRequestType } from 'yaschema-api';
import type { EncodedRequestBody } from '../api-fetch/types/EncodedRequestBody';
export declare const encodeBody: ({ requestType, body }: {
requestType: HttpRequestType | undefined;
body: AnyBody;
}) => EncodedRequestBody;
}) => Buffer | undefined;
//# sourceMappingURL=encode-body.d.ts.map

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

export * from './api-fetch/exports';
export * from './config/exports';
export * from './create-google-cloud-task/exports';
export * from './types/exports';
//# sourceMappingURL=index.js.map
const encodersByRequestType = {
'form-data': () => undefined,
json: JSON.stringify
json: (body) => Buffer.from(JSON.stringify(body), 'utf-8')
};
export const encodeBody = ({ requestType = 'json', body }) => encodersByRequestType[requestType](body);
//# sourceMappingURL=encode-body.js.map
{
"name": "yaschema-api-google-cloud-task-creator",
"version": "0.0.1",
"version": "0.0.2",
"description": "Google Cloud createTask support for yaschema-api",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,3 +0,3 @@

export * from './api-fetch/exports';
export * from './config/exports';
export * from './create-google-cloud-task/exports';
export * from './types/exports';
import type { AnyBody, HttpRequestType } from 'yaschema-api';
import type { EncodedRequestBody } from '../api-fetch/types/EncodedRequestBody';
type RequestBodyEncoder = (body: AnyBody) => Buffer | undefined;
type RequestBodyEncoder = (body: AnyBody) => EncodedRequestBody;
const encodersByRequestType: Record<HttpRequestType, RequestBodyEncoder> = {
'form-data': () => undefined,
json: JSON.stringify
json: (body) => Buffer.from(JSON.stringify(body), 'utf-8')
};

@@ -11,0 +9,0 @@

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