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

@giphy/js-analytics

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giphy/js-analytics - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

9

dist/send-pingback.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var append_query_1 = __importDefault(require("append-query"));
var js_util_1 = require("@giphy/js-util");

@@ -11,7 +7,6 @@ // TODO remove api key

exports.sendPingback = function (session) {
var headers = new Headers();
var qs = js_util_1.getGiphySDKRequestParams();
var headers = js_util_1.getGiphySDKRequestHeaders();
headers.set('Content-Type', 'application/json');
js_util_1.Logger.debug("Pingback session", session);
return fetch(append_query_1.default(pingBackUrl, qs), {
return fetch(pingBackUrl, {
method: 'POST',

@@ -18,0 +13,0 @@ body: JSON.stringify({ sessions: [session] }),

@@ -11,3 +11,3 @@ {

"name": "@giphy/js-analytics",
"version": "1.4.1",
"version": "1.4.2",
"main": "dist/index.js",

@@ -25,3 +25,3 @@ "types": "dist/index.d.ts",

"@giphy/js-types": "^2.0.1",
"@giphy/js-util": "^1.5.3",
"@giphy/js-util": "^1.6.0",
"@types/uuid": "^7.0.0",

@@ -42,3 +42,3 @@ "append-query": "^2.1.0",

},
"gitHead": "26d8ff734a35fc3176f870cfe8ec6c8f5df78f02"
"gitHead": "fdcd4970ae3cb0b1122e133e4df7bb25fa7392d4"
}

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

import { getGiphySDKRequestHeaders, Logger } from '@giphy/js-util'
import { Session } from './session'
import appendQuery from 'append-query'
import { getGiphySDKRequestParams, Logger } from '@giphy/js-util'

@@ -9,7 +8,6 @@ // TODO remove api key

export const sendPingback = (session: Session) => {
const headers = new Headers()
const qs = getGiphySDKRequestParams()
const headers = getGiphySDKRequestHeaders()
headers.set('Content-Type', 'application/json')
Logger.debug(`Pingback session`, session)
return fetch(appendQuery(pingBackUrl, qs), {
return fetch(pingBackUrl, {
method: 'POST',

@@ -16,0 +14,0 @@ body: JSON.stringify({ sessions: [session] }),

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