You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2019/06/28 03:39:20 UTC

[cordova-electron] branch 1.1.x created (now 32dd1c4)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a change to branch 1.1.x
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git.


      at 32dd1c4  Set VERSION to 1.1.0 (via coho)

This branch includes the following new commits:

     new d3046ea  Update JS snapshot to version 1.1.0 (via coho)
     new 32dd1c4  Set VERSION to 1.1.0 (via coho)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-electron] 01/02: Update JS snapshot to version 1.1.0 (via coho)

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch 1.1.x
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git

commit d3046ea2a909057342893bacad75e08e8aacd7e3
Author: エリス <el...@gmail.com>
AuthorDate: Fri Jun 28 11:37:56 2019 +0900

    Update JS snapshot to version 1.1.0 (via coho)
---
 cordova-lib/cordova.js | 47 ++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 38 insertions(+), 9 deletions(-)

diff --git a/cordova-lib/cordova.js b/cordova-lib/cordova.js
index d753cb9..71c8d3a 100644
--- a/cordova-lib/cordova.js
+++ b/cordova-lib/cordova.js
@@ -1,5 +1,5 @@
 // Platform: electron
-// 2d56086c34734d34c97200246645543b7b3a91cc
+// 4f6abd672e0362767fd4b6fe0b477b1e4c25e1e1
 /*
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
@@ -19,7 +19,7 @@
  under the License.
 */
 ;(function() {
-var PLATFORM_VERSION_BUILD_LABEL = '1.1.0-dev';
+var PLATFORM_VERSION_BUILD_LABEL = '1.1.0';
 // file: src/scripts/require.js
 
 var require;
@@ -70,7 +70,7 @@ var define;
     };
 
     define = function (id, factory) {
-        if (modules[id]) {
+        if (Object.prototype.hasOwnProperty.call(modules, id)) {
             throw 'module ' + id + ' already defined';
         }
 
@@ -205,8 +205,8 @@ var cordova = {
      * @return object
      */
     getOriginalHandlers: function () {
-        return {'document': {'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener},
-            'window': {'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener}};
+        return { 'document': { 'addEventListener': m_document_addEventListener, 'removeEventListener': m_document_removeEventListener },
+            'window': { 'addEventListener': m_window_addEventListener, 'removeEventListener': m_window_removeEventListener } };
     },
     /**
      * Method to fire event from native code
@@ -341,9 +341,38 @@ var typeMap = {
 };
 
 function extractParamName (callee, argIndex) {
-    return (/.*?\((.*?)\)/).exec(callee)[1].split(', ')[argIndex];
+    return (/\(\s*([^)]*?)\s*\)/).exec(callee)[1].split(/\s*,\s*/)[argIndex];
 }
 
+/**
+ * Checks the given arguments' types and throws if they are not as expected.
+ *
+ * `spec` is a string where each character stands for the required type of the
+ * argument at the same position. In other words: the character at `spec[i]`
+ * specifies the required type for `args[i]`. The characters in `spec` are the
+ * first letter of the required type's name. The supported types are:
+ *
+ *     Array, Date, Number, String, Function, Object
+ *
+ * Lowercase characters specify arguments that must not be `null` or `undefined`
+ * while uppercase characters allow those values to be passed.
+ *
+ * Finally, `*` can be used to allow any type at the corresponding position.
+ *
+ * @example
+ * function foo (arr, opts) {
+ *     // require `arr` to be an Array and `opts` an Object, null or undefined
+ *     checkArgs('aO', 'my.package.foo', arguments);
+ *     // ...
+ * }
+ * @param {String} spec - the type specification for `args` as described above
+ * @param {String} functionName - full name of the callee.
+ * Used in the error message
+ * @param {Array|arguments} args - the arguments to be checked against `spec`
+ * @param {Function} [opt_callee=args.callee] - the recipient of `args`.
+ * Used to extract parameter names for the error message
+ * @throws {TypeError} if args do not satisfy spec
+ */
 function checkArgs (spec, functionName, args, opt_callee) {
     if (!moduleExports.enableChecks) {
         return;
@@ -834,7 +863,7 @@ module.exports = channel;
 
 });
 
-// file: /Users/erisu/git/apache/cordova/cordova-electron/cordova-js-src/confighelper.js
+// file: /Users/erisu/release/cordova/cordova-electron/cordova-js-src/confighelper.js
 define("cordova/confighelper", function(require, exports, module) {
 
 let config;
@@ -907,7 +936,7 @@ exports.readConfig = readConfig;
 
 });
 
-// file: /Users/erisu/git/apache/cordova/cordova-electron/cordova-js-src/exec.js
+// file: /Users/erisu/release/cordova/cordova-electron/cordova-js-src/exec.js
 define("cordova/exec", function(require, exports, module) {
 
 /* global require, module, console */
@@ -1255,7 +1284,7 @@ exports.reset();
 
 });
 
-// file: /Users/erisu/git/apache/cordova/cordova-electron/cordova-js-src/platform.js
+// file: /Users/erisu/release/cordova/cordova-electron/cordova-js-src/platform.js
 define("cordova/platform", function(require, exports, module) {
 
 module.exports = {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-electron] 02/02: Set VERSION to 1.1.0 (via coho)

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch 1.1.x
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git

commit 32dd1c40dcc03d8c62c297689107bdacf6e7bfa3
Author: エリス <el...@gmail.com>
AuthorDate: Fri Jun 28 11:37:57 2019 +0900

    Set VERSION to 1.1.0 (via coho)
---
 VERSION | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/VERSION b/VERSION
index 336c367..9084fa2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.1.0-dev
+1.1.0


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org