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

@mongodb-js/mongodb-constants

Package Overview
Dependencies
Maintainers
32
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongodb-js/mongodb-constants - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

184

dist/atlas-search-templates.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ATLAS_SEARCH_TEMPLATES = void 0;
const dedent_1 = __importDefault(require("dedent"));
exports.ATLAS_SEARCH_TEMPLATES = [
{
name: 'Dynamic field mappings',
snippet: (0, dedent_1.default) `{
"mappings": {
"dynamic": true
}
}`,
snippet: `{
"mappings": {
"dynamic": true
}
}`,
version: '4.4.0',

@@ -20,21 +16,21 @@ },

name: 'Static field mappings',
snippet: (0, dedent_1.default) `{
"mappings": {
"dynamic": false,
"fields": {
\${1:<string field name>}: {
"type": "string"
},
\${2:<number field name>}: {
"type": "number"
},
\${3:<date field name>}: {
"type": "date"
},
\${4:<geo field name>}: {
"type": "geo"
},
}
}
}`,
snippet: `{
"mappings": {
"dynamic": false,
"fields": {
\${1:<string field name>}: {
"type": "string"
},
\${2:<number field name>}: {
"type": "number"
},
\${3:<date field name>}: {
"type": "date"
},
\${4:<geo field name>}: {
"type": "geo"
},
}
}
}`,
version: '4.4.0',

@@ -44,24 +40,24 @@ },

name: 'Text field mappings',
snippet: (0, dedent_1.default) `{
"mappings": {
"dynamic": true,
"fields": {
\${1:<string field name>}: [
{
// Enables text queries
"type": "string"
},
{
// Enables autocomplete queries
"type": "autocomplete"
},
{
// Enables sorting
"type": "token"
}
]
}
}
}`,
snippet: `{
"mappings": {
"dynamic": true,
"fields": {
\${1:<string field name>}: [
{
// Enables text queries
"type": "string"
},
{
// Enables autocomplete queries
"type": "autocomplete"
},
{
// Enables sorting
"type": "token"
}
]
}
}
}`,
version: '4.4.0',

@@ -71,34 +67,34 @@ },

name: 'Facet field mappings',
snippet: (0, dedent_1.default) `{
"mappings": {
"dynamic": true,
"fields": {
\${1:<number field name for faceting>}: [
{
"type": "numberFacet"
},
{
"type": "number"
},
],
\${2:<date field name for faceting>}: [
{
"type": "dateFacet"
}
{
"type": "date"
}
],
\${3:<string field name for faceting>}: [
{
"type": "stringFacet"
},
{
"type": "string",
"analyzer": "lucene.keyword"
},
],
}
}
}`,
snippet: `{
"mappings": {
"dynamic": true,
"fields": {
\${1:<number field name for faceting>}: [
{
"type": "numberFacet"
},
{
"type": "number"
},
],
\${2:<date field name for faceting>}: [
{
"type": "dateFacet"
}
{
"type": "date"
}
],
\${3:<string field name for faceting>}: [
{
"type": "stringFacet"
},
{
"type": "string",
"analyzer": "lucene.keyword"
},
],
}
}
}`,
version: '4.4.0',

@@ -108,14 +104,14 @@ },

name: 'Vector Embedding field mapping',
snippet: (0, dedent_1.default) `{
"mappings": {
"dynamic": true,
"fields": {
\${1:<vector embedding field name>}: [
{
"type": "vectorEmbedding"
}
]
}
}
}`,
snippet: `{
"mappings": {
"dynamic": true,
"fields": {
\${1:<vector embedding field name>}: [
{
"type": "vectorEmbedding"
}
]
}
}
}`,
version: '4.4.0',

@@ -122,0 +118,0 @@ },

@@ -16,3 +16,3 @@ {

"homepage": "https://github.com/mongodb-js/devtools-shared",
"version": "0.8.3",
"version": "0.8.4",
"repository": {

@@ -70,6 +70,5 @@ "type": "git",

"dependencies": {
"dedent": "^1.5.1",
"semver": "^7.5.4"
},
"gitHead": "b00d79981a64e33b4a54a32888908eee4f0e152d"
"gitHead": "fcfa7be94c99db5782396b6ed8d21f10c64e8fda"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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