Socket
Book a DemoInstallSign in
Socket

@evolv-delivery/device-data-pdp

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evolv-delivery/device-data-pdp

Captures a value on one page and binds it to the remote context on another page

0.4.2
latest
Source
npmnpm
Version published
Maintainers
6
Created
Source

Example Audience Integration

Created for experiment DP Nudge

Sets sessionStorage item on /example/page/1 of evolv:example-value containing exampleValue.

Reads evolv:example-value on /example/page/2, setting boolean remoteContext entries for vz.exampleValue.

Setup

To create new-integration from this template in your /evolv/env-integrations folder:

rsync -av templates/ new-integration

And then customize your package.json, src/index.js, and README.md to fit your project

NPM scripts

npm run buildBuilds dist/../index.js files
npm run watchAutomatically builds on save of src/index.js
npm run serveHosts dist folder on port 8080
npm run devWatch and serve
npm startSame as npm run dev
npm run publishBuild and publish to npm

Local Hosting

Run npm start to host locally. To run in your browser inject the following into your <head> tag using Resource Override

(() => {
  if (window.self !== window.top) return;

  console.log('[evolv-local] example-integration: inject');

  const script = document.createElement('script');
  script.type = 'module';
  script.text =
    'import integration from "http://localhost:8080/dist/es/index.js"; console.log("[evolv-local] example-integration: load"); integration()';
  document.head.appendChild(script);
})();

FAQs

Package last updated on 12 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.