Comparing version 0.0.1 to 0.1.0
@@ -1,59 +0,105 @@ | ||
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.bradpitt = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
'use strict'; | ||
/******/ (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) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var isObj = function isObj(o) { | ||
return o !== null && 'object' === (typeof o === 'undefined' ? 'undefined' : _typeof(o)) && !('nodeType' in o); | ||
}; | ||
var returnSize = function returnSize(el, type) { | ||
var isWindow = el !== null && el.window ? true : false; | ||
if (isWindow) { | ||
return Math.max(el['outer' + type], document.documentElement['client' + type]); | ||
} | ||
return Math.max(el['offset' + type], el['client' + type]); | ||
}; | ||
var returnPosition = function returnPosition() { | ||
if (window.pageYOffset !== undefined) { | ||
return window.pageYOffset; | ||
} else { | ||
return (document.documentElement || document.body.parentNode || document.body).scrollTop; | ||
} | ||
}; | ||
var returnScroll = function returnScroll() { | ||
return window.scrollY || window.pageYOffset; | ||
}; | ||
/** | ||
* @param {string} type Either 'parallax', or 'mousemove' | ||
* @param {object} el Required dom element | ||
* @param {...array} args Optional args | ||
*/ | ||
var bradpitt = function bradpitt(type, el) { | ||
var isParallax = type === 'parallax' ? true : false; | ||
var instance = Object.create({ | ||
init: function init() { | ||
console.log('les guac'); | ||
} | ||
}); | ||
}; | ||
exports.default = { | ||
parallax: function parallax(el, options) { | ||
return bradpitt('parallax', el, options); | ||
} | ||
}; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var isObj = function isObj(o) { | ||
return o !== null && 'object' === (typeof o === 'undefined' ? 'undefined' : _typeof(o)) && !('nodeType' in o); | ||
}; | ||
var returnSize = function returnSize(el, type) { | ||
var isWindow = el !== null && el.window ? true : false; | ||
if (isWindow) { | ||
return Math.max(el['outer' + type], document.documentElement['client' + type]); | ||
} | ||
return Math.max(el['offset' + type], el['client' + type]); | ||
}; | ||
var returnPosition = function returnPosition() { | ||
if (window.pageYOffset !== undefined) { | ||
return window.pageYOffset; | ||
} else { | ||
return (document.documentElement || document.body.parentNode || document.body).scrollTop; | ||
} | ||
}; | ||
var returnScroll = function returnScroll() { | ||
return window.scrollY || window.pageYOffset; | ||
}; | ||
/** | ||
* @param {string} type Either 'parallax', or 'mousemove' | ||
* @param {object} el Required dom element | ||
* @param {...array} args Optional args | ||
*/ | ||
var bradpitt = function bradpitt(type, el) { | ||
var isParallax = type === 'parallax' ? true : false; | ||
var instance = Object.create({ | ||
init: function init() { | ||
console.log('les guac'); | ||
} | ||
}); | ||
}; | ||
exports.default = { | ||
parallax: function parallax(el, options) { | ||
return bradpitt('parallax', el, options); | ||
} | ||
}; | ||
},{}]},{},[1])(1) | ||
}); | ||
/***/ } | ||
/******/ ]); | ||
//# sourceMappingURL=bradpitt.js.map |
{ | ||
"name": "bradpitt", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Set of javascript modules that do cool stuff", | ||
"main": "dist/bradpitt.js", | ||
"scripts": { | ||
"build": "mkdir -p dist && browserify index.js --standalone bradpitt > dist/bradpitt.js" | ||
"build": "gulp build" | ||
}, | ||
@@ -37,12 +37,19 @@ "browserify": { | ||
"babel-cli": "^6.14.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"compression-webpack-plugin": "^0.3.1", | ||
"babel-core": "^6.0.20", | ||
"gulp-sass": "^2.2.0", | ||
"imports-loader": "^0.6.5", | ||
"babel-loader": "^6.0.1", | ||
"babel-preset-es2015": "^6.0.15", | ||
"babel-register": "^6.9.0", | ||
"babelify": "^7.3.0", | ||
"browserify": "^13.0.1", | ||
"bundle-size": "^0.7.0", | ||
"minifyify": "^7.3.3", | ||
"query-string": "^4.2.3", | ||
"raf": "^3.3.0", | ||
"watchify": "^3.7.0" | ||
"eslint": "^1.10.1", | ||
"eslint-config-eslint": "^1.0.1", | ||
"gulp": "^3.9.0", | ||
"gulp-livereload": "^3.8.1", | ||
"gulp-util": "^3.0.7", | ||
"node-libs-browser": "^0.5.3", | ||
"webpack": "^1.12.9" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
12331
13
202
0
17
1