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

deliver-on-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deliver-on-client - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

dist/index.min.js

104

dist/index.js

@@ -1,31 +0,73 @@

(function (factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
// Make DeliverOn available to the browser window without requirejs or systemjs
if (typeof window !== "undefined") {
window["DeliverOn"] = DeliverOn;
}
var DeliverOn = (function () {
function DeliverOn(config) {
this.jquery = $.noConflict();
console.log("Starting Deliveron Client with settings", config);
// Search for a data-deliveronhost to load the widget into. If it doesn't exist,
// determine which theme the shop is using and load the widget into the appropriate element.
this.hostContainer = document.querySelector("[data-deliveronhost]");
if (!this.hostContainer) {
}
this.loadWidget(this.hostContainer);
}
DeliverOn.prototype.loadWidget = function (container) {
};
return DeliverOn;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = DeliverOn;
});
var DeliverOn =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__(1);
var Client = function () {
function Client(config) {
this.jquery = $.noConflict();
console.log("Starting Deliveron Client with settings", config);
// Search for a data-deliveronhost to load the widget into. If it doesn't exist,
// determine which theme the shop is using and load the widget into the appropriate element.
this.hostContainer = document.querySelector("[data-deliveronhost]");
if (!this.hostContainer) {}
this.loadWidget(this.hostContainer);
}
Client.prototype.loadWidget = function (container) {};
return Client;
}();
exports.Client = Client;
/***/ },
/* 1 */
/***/ function(module, exports) {
module.exports = $;
/***/ }
/******/ ]);

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

import * as $ from "jquery";
export interface Config

@@ -9,10 +11,4 @@ {

// Make DeliverOn available to the browser window without requirejs or systemjs
if (typeof window !== "undefined")
export class Client
{
window["DeliverOn"] = DeliverOn;
}
export default class DeliverOn
{
constructor(config: Config)

@@ -19,0 +15,0 @@ {

{
"name": "deliver-on-client",
"version": "0.3.0",
"version": "0.4.0",
"description": "The Deliveron client that gets loaded into a Shopify storefront.",
"main": "dist/index.js",
"scripts": {
"prepublish": "tsc -p .",
"prepublish": "gulp",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -28,8 +28,14 @@ },

"homepage": "https://github.com/nozzlegear/deliver-on-client#readme",
"dependencies": {
},
"dependencies": {},
"devDependencies": {
"@types/jquery": "^1.10.21-alpha",
"typescript": "^1.9.0-dev.20160620-1.0"
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"gulp": "^3.9.1",
"gulp-foreach": "^0.1.0",
"gulp-typescript": "^2.13.6",
"typescript": "^1.9.0-dev.20160620-1.0",
"webpack": "^1.13.1",
"webpack-stream": "^3.2.0"
}
}
{
"compilerOptions": {
"module": "umd",
"module": "commonjs",
"target": "es5",

@@ -5,0 +5,0 @@ "noImplicitAny": false,

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