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

@phantomstudios/ft-lib

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phantomstudios/ft-lib - npm Package Compare versions

Comparing version 0.3.0-rc3 to 0.3.0-rc4

28

lib/utils/attention.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Attention = void 0;
var oViewport = __importStar(require("@financial-times/o-viewport"));
var o_viewport_1 = __importDefault(require("@financial-times/o-viewport"));
var ATTENTION_INTERVAL = 15000;

@@ -63,3 +43,3 @@ var ATTENTION_EVENTS = [

// Need to wait for this to be available
oViewport.listenTo("visibility");
o_viewport_1.default.listenTo("visibility");
document.body.addEventListener("oViewport.visibility", function (ev) { return _this.handleVisibilityChange(ev); }, false);

@@ -66,0 +46,0 @@ this.addVideoEvents();

4

package.json
{
"name": "@phantomstudios/ft-lib",
"description": "A collection of Javascript UI & tracking utils for FT sites",
"version": "0.3.0-rc3",
"version": "0.3.0-rc4",
"main": "lib/index.js",

@@ -71,2 +71,2 @@ "types": "lib/index.d.ts",

}
}
}

@@ -1,2 +0,2 @@

import * as oViewport from "@financial-times/o-viewport";
import oViewport from "@financial-times/o-viewport";

@@ -3,0 +3,0 @@ const ATTENTION_INTERVAL = 15000;

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