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

phonegap-soundwave

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phonegap-soundwave - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

lib/middleware/ext/useragent.js

18

lib/middleware/cordova_plugins.js

@@ -5,4 +5,5 @@ /*!

var path = require('path'),
fs = require('fs');
var fs = require('fs'),
path = require('path'),
useragent = require('./ext/useragent');

@@ -19,9 +20,8 @@ /**

if (req.url.indexOf('cordova_plugins.js') >= 0) {
// assume ios only for now
var cordova_plugins = fs.readFileSync(
path.join(__dirname, '../../res/middleware/cordova/ios/cordova_plugins.js')
);
res.writeHead(200, {'Content-Type': 'text/javascript'});
res.end(cordova_plugins);
var agent = useragent.parse(req.headers['user-agent']),
filepath = path.join(__dirname, '../../res/middleware/cordova', agent.platform, 'cordova_plugins.js'),
data = fs.readFileSync(filepath);
res.writeHead(200, { 'Content-Type': 'text/javascript' });
res.end(data);
} else {

@@ -28,0 +28,0 @@ next();

@@ -5,4 +5,5 @@ /*!

var path = require('path'),
fs = require('fs');
var fs = require('fs'),
path = require('path'),
useragent = require('./ext/useragent');

@@ -22,8 +23,8 @@ /**

if (req.url.indexOf('cordova.js') >= 0 || req.url.indexOf('phonegap.js') >= 0) {
// assume ios only for now
var cordovajs = fs.readFileSync(
path.join(__dirname, '../../res/middleware/cordova/ios/cordova.js')
);
var agent = useragent.parse(req.headers['user-agent']),
filepath = path.join(__dirname, '../../res/middleware/cordova', agent.platform, 'cordova.js'),
data = fs.readFileSync(filepath);
res.writeHead(200, { 'Content-Type': 'text/javascript' });
res.end(cordovajs);
res.end(data);
} else {

@@ -30,0 +31,0 @@ next();

@@ -5,4 +5,5 @@ /*!

var path = require('path'),
fs = require('fs');
var fs = require('fs'),
path = require('path'),
useragent = require('./ext/useragent');

@@ -19,10 +20,9 @@ /**

if (req.url.indexOf('plugins/') >= 0) {
// assume ios only for now
var new_path = req.url.split('plugins/')[1];
var the_plugin = fs.readFileSync(
path.join(__dirname, '../../res/middleware/cordova/ios/plugins', new_path)
);
res.writeHead(200, {'Content-Type': 'text/javascript'});
res.end(the_plugin);
var agent = useragent.parse(req.headers['user-agent']),
pluginPath = req.url.split('plugins/')[1],
filepath = path.join(__dirname, '../../res/middleware/cordova', agent.platform, 'plugins', pluginPath),
data = fs.readFileSync(filepath);
res.writeHead(200, { 'Content-Type': 'text/javascript' });
res.end(data);
} else {

@@ -29,0 +29,0 @@ next();

{
"name": "phonegap-soundwave",
"description": "Connect middleware to stream a PhoneGap app.",
"version": "0.6.0",
"version": "0.7.0",
"homepage": "https://github.com/phonegap/node-phonegap-soundwave",

@@ -31,3 +31,4 @@ "repository": {

"shelljs": "0.2.6",
"tar": "0.1.19"
"tar": "0.1.19",
"useragent": "2.0.7"
},

@@ -34,0 +35,0 @@ "devDependencies": {

// Platform: android
// 3.4.0-dev-8f301f8
// 3.2.0
/*

@@ -22,4 +22,4 @@ Licensed to the Apache Software Foundation (ASF) under one

;(function() {
var CORDOVA_JS_BUILD_LABEL = '3.4.0-dev-8f301f8';
// file: src/scripts/require.js
var CORDOVA_JS_BUILD_LABEL = '3.2.0';
// file: lib/scripts/require.js

@@ -38,3 +38,3 @@ /*jshint -W079 */

inProgressModules = {},
SEPARATOR = ".";
SEPERATOR = ".";

@@ -49,3 +49,3 @@

if (id.charAt(0) === ".") {
resultantId = module.id.slice(0, module.id.lastIndexOf(SEPARATOR)) + SEPARATOR + id.slice(2);
resultantId = module.id.slice(0, module.id.lastIndexOf(SEPERATOR)) + SEPERATOR + id.slice(2);
}

@@ -104,3 +104,3 @@ return require(resultantId);

// file: src/cordova.js
// file: lib/cordova.js
define("cordova", function(require, exports, module) {

@@ -323,3 +323,3 @@

// file: src/android/android/nativeapiprovider.js
// file: lib/android/android/nativeapiprovider.js
define("cordova/android/nativeapiprovider", function(require, exports, module) {

@@ -347,3 +347,3 @@

// file: src/android/android/promptbasednativeapi.js
// file: lib/android/android/promptbasednativeapi.js
define("cordova/android/promptbasednativeapi", function(require, exports, module) {

@@ -370,3 +370,3 @@

// file: src/common/argscheck.js
// file: lib/common/argscheck.js
define("cordova/argscheck", function(require, exports, module) {

@@ -437,3 +437,3 @@

// file: src/common/base64.js
// file: lib/common/base64.js
define("cordova/base64", function(require, exports, module) {

@@ -494,3 +494,3 @@

// file: src/common/builder.js
// file: lib/common/builder.js
define("cordova/builder", function(require, exports, module) {

@@ -564,3 +564,3 @@

} catch(e) {
utils.alert('Exception building Cordova JS globals: ' + e + ' for key "' + key + '"');
utils.alert('Exception building cordova JS globals: ' + e + ' for key "' + key + '"');
}

@@ -609,3 +609,3 @@ });

// file: src/common/channel.js
// file: lib/common/channel.js
define("cordova/channel", function(require, exports, module) {

@@ -851,3 +851,3 @@

// file: src/android/exec.js
// file: lib/android/exec.js
define("cordova/exec", function(require, exports, module) {

@@ -1089,3 +1089,3 @@

// file: src/common/exec/proxy.js
// file: lib/common/exec/proxy.js
define("cordova/exec/proxy", function(require, exports, module) {

@@ -1120,3 +1120,3 @@

// file: src/common/init.js
// file: lib/common/init.js
define("cordova/init", function(require, exports, module) {

@@ -1235,3 +1235,3 @@

// file: src/common/modulemapper.js
// file: lib/common/modulemapper.js
define("cordova/modulemapper", function(require, exports, module) {

@@ -1337,3 +1337,3 @@

// file: src/android/platform.js
// file: lib/android/platform.js
define("cordova/platform", function(require, exports, module) {

@@ -1379,3 +1379,3 @@

// file: src/android/plugin/android/app.js
// file: lib/android/plugin/android/app.js
define("cordova/plugin/android/app", function(require, exports, module) {

@@ -1457,7 +1457,6 @@

// file: src/common/pluginloader.js
// file: lib/common/pluginloader.js
define("cordova/pluginloader", function(require, exports, module) {
var modulemapper = require('cordova/modulemapper');
var urlutil = require('cordova/urlutil');

@@ -1531,10 +1530,7 @@ // Helper function to inject a <script> tag.

function injectPluginScript(pathPrefix, finishPluginLoading) {
var pluginPath = pathPrefix + 'cordova_plugins.js';
injectScript(pluginPath, function() {
injectScript(pathPrefix + 'cordova_plugins.js', function(){
try {
var moduleList = require("cordova/plugin_list");
handlePluginsObject(pathPrefix, moduleList, finishPluginLoading);
}
catch (e) {
} catch (e) {
// Error loading cordova_plugins.js, file not found or something

@@ -1576,5 +1572,7 @@ // this is an acceptable error, pre-3.0.0, so we just move on.

// file: src/common/urlutil.js
// file: lib/common/urlutil.js
define("cordova/urlutil", function(require, exports, module) {
var urlutil = exports;
var anchorEl = document.createElement('a');

@@ -1585,4 +1583,3 @@ /**

*/
exports.makeAbsolute = function makeAbsolute(url) {
var anchorEl = document.createElement('a');
urlutil.makeAbsolute = function(url) {
anchorEl.href = url;

@@ -1592,6 +1589,5 @@ return anchorEl.href;

});
// file: src/common/utils.js
// file: lib/common/utils.js
define("cordova/utils", function(require, exports, module) {

@@ -1767,3 +1763,3 @@

window.cordova = require('cordova');
// file: src/scripts/bootstrap.js
// file: lib/scripts/bootstrap.js

@@ -1770,0 +1766,0 @@ require('cordova/init');

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