New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cloudbase/node-sdk

Package Overview
Dependencies
Maintainers
14
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/node-sdk - npm Package Compare versions

Comparing version 2.9.0 to 2.9.1

4

package.json
{
"name": "@cloudbase/node-sdk",
"version": "2.9.0",
"version": "2.9.1",
"description": "tencent cloud base server sdk for node.js",

@@ -32,3 +32,3 @@ "main": "lib/index.js",

"dependencies": {
"@cloudbase/database": "1.4.0",
"@cloudbase/database": "1.4.1",
"@cloudbase/signature-nodejs": "1.0.0-beta.0",

@@ -35,0 +35,0 @@ "@types/retry": "^0.12.0",

@@ -691,2 +691,25 @@ import * as assert from 'power-assert'

})
it('geoNear with distance limit', async () => {
const $ = db.command.aggregate
const _ = db.command
const res = await db
.collection('attractions')
.aggregate()
.geoNear({
distanceField: 'distance',
spherical: true,
near: new db.Geo.Point(113.3089506, 23.0968251),
query: {
city: /zhou/
},
key: 'location',
includeLocs: 'location',
maxDistance: 5000
})
.end()
assert.strictEqual(res.data.length === 1 && res.data[0].city === 'Guangzhou', true)
assert.strictEqual(res.data[0].distance === 4384.68131486958, true)
})
})

@@ -693,0 +716,0 @@

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