@nodert-win10-cu/windows.devices.bluetooth.advertisement
Advanced tools
Comparing version 0.2.96 to 0.3.1
@@ -1,9 +0,16 @@ | ||
// Copyright (c) Microsoft Corporation | ||
// Copyright (c) Microsoft Corporation, Nadav Bar, and Felix Rieseberg | ||
// All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
// Licensed under the Apache License, Version 2.0 (the ""License""); you may | ||
// not use this file except in compliance with the License. You may obtain a | ||
// copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. | ||
// THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
// OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY | ||
// IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
// MERCHANTABLITY OR NON-INFRINGEMENT. | ||
// | ||
// See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. | ||
// See the Apache Version 2.0 License for specific language governing permissions | ||
// and limitations under the License. | ||
var path = require('path'); | ||
@@ -14,51 +21,48 @@ var fs = require('fs'); | ||
try { | ||
// this little trick makes node.js Tools for VS load intellisense for the module | ||
if (fs.existsSync(path.join(__dirname, 'NodeRT_Windows_Devices_Bluetooth_Advertisement.d.js)'))) { | ||
module.exports = require('./NodeRT_Windows_Devices_Bluetooth_Advertisement.d.js'); | ||
} | ||
// this little trick makes node.js Tools for VS load intellisense for the module | ||
if (fs.existsSync(path.join(__dirname, 'NodeRT_Windows_Devices_Bluetooth_Advertisement.d.js)'))) { | ||
module.exports = require('./NodeRT_Windows_Devices_Bluetooth_Advertisement.d.js'); | ||
} else { | ||
module.exports = require('../build/Release/binding.node'); | ||
} | ||
catch(e) { | ||
throw e; | ||
} | ||
var externalReferencedNamespaces = ['Windows.Storage.Streams', 'Windows.Devices.Bluetooth']; | ||
if (externalReferencedNamespaces.length > 0) { | ||
var namespaceRegistry = global.__winRtNamespaces__; | ||
var namespaceRegistry = global.__winRtNamespaces__; | ||
if (!namespaceRegistry) { | ||
namespaceRegistry = {}; | ||
Object.defineProperty(global, '__winRtNamespaces__', { | ||
configurable: true, | ||
writable: false, | ||
enumerable: false, | ||
value: namespaceRegistry | ||
}); | ||
} | ||
if (!namespaceRegistry) { | ||
namespaceRegistry = {}; | ||
Object.defineProperty(global, '__winRtNamespaces__', { | ||
configurable: true, | ||
writable: false, | ||
enumerable: false, | ||
value: namespaceRegistry | ||
}); | ||
} | ||
function requireNamespace(namespace) { | ||
var moduleName = namespace.toLowerCase(); | ||
if (npmScope) { | ||
moduleName = '@' + npmScope + '/' + moduleName; | ||
} | ||
function requireNamespace(namespace) { | ||
var moduleName = namespace.toLowerCase(); | ||
var m = require(moduleName); | ||
delete namespaceRegistry[namespace]; | ||
namespaceRegistry[namespace] = m; | ||
return m; | ||
if (npmScope) { | ||
moduleName = '@' + npmScope + '/' + moduleName; | ||
} | ||
for (var i in externalReferencedNamespaces) { | ||
var ns = externalReferencedNamespaces[i]; | ||
if (!namespaceRegistry.hasOwnProperty(ns)) { | ||
Object.defineProperty(namespaceRegistry, ns, { | ||
configurable: true, | ||
enumerable: true, | ||
get: requireNamespace.bind(null, ns) | ||
}); | ||
} | ||
var m = require(moduleName); | ||
delete namespaceRegistry[namespace]; | ||
namespaceRegistry[namespace] = m; | ||
return m; | ||
} | ||
for (var i in externalReferencedNamespaces) { | ||
var ns = externalReferencedNamespaces[i]; | ||
if (!namespaceRegistry.hasOwnProperty(ns)) { | ||
Object.defineProperty(namespaceRegistry, ns, { | ||
configurable: true, | ||
enumerable: true, | ||
get: requireNamespace.bind(null, ns) | ||
}); | ||
} | ||
} | ||
} | ||
} |
{ | ||
"name": "@nodert-win10-cu/windows.devices.bluetooth.advertisement", | ||
"version": "0.2.96", | ||
"version": "0.3.1", | ||
"description": "Use the Windows.Devices.Bluetooth.Advertisement UWP API directly from Node.js", | ||
"main": "lib/main.js", | ||
"scripts" : { | ||
"install" : "node-gyp rebuild --msvs_version=2015" | ||
"install" : "node-gyp rebuild --msvs_version=2017" | ||
}, | ||
"os": [ | ||
"win32" | ||
], | ||
"keywords": [ | ||
@@ -37,5 +34,5 @@ "Windows.Devices.Bluetooth.Advertisement", | ||
"Microsoft" | ||
], | ||
], | ||
"dependencies" : { | ||
"nan" : "latest" | ||
"nan" : "latest" | ||
}, | ||
@@ -48,5 +45,8 @@ "repository": { | ||
"author": "Generated by NodeRT", | ||
"contributors": [ "nadavbar <nadavbar@gmail.com> (http://www.nadavos.com)", "Felix Rieseberg <felix@felix.fun> (https://felixrieseberg.com/)" ], | ||
"contributors": [ | ||
"nadavbar <nadavbar@gmail.com> (http://www.nadavos.com)", | ||
"Felix Rieseberg <felix@felixrieseberg.com> (https://www.felix.fun)" | ||
], | ||
"gypfile": true, | ||
"license": "Apache-2.0" | ||
} |
@@ -19,3 +19,3 @@ @nodert-win10-cu/windows.devices.bluetooth.advertisement | ||
============ | ||
* Visual Studio version 2015 and above. (Express Desktop versions also work!) | ||
* Visual Studio version 2017 and above. (Express Desktop versions also work!) | ||
* Python 2.7 (for node-gyp) | ||
@@ -40,3 +40,3 @@ * <b>Important:</b> Updated versions of npm and node-gyp. (Note that the ones that are bundled with node might not be up to date). In order to install latest npm, run: | ||
If you wish to rebuild this module using node-gyp, make sure to use the appropriate VS version using --msvs_version=2012/2013/2015 flag: | ||
If you wish to rebuild this module using node-gyp, make sure to use the appropriate VS version using --msvs_version=2012/2013/2015/2017 flag: | ||
@@ -47,3 +47,3 @@ For example: | ||
cd [module folder path] | ||
node-gyp rebuild --msvs_version=2015 | ||
node-gyp rebuild --msvs_version=2017 | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
333965
0
100
440
19