@lowdefy/connection-mongodb 4.0.0-rc.9 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/auth/adapters/MongoDBAdapter/MongoDBAdapter.js +3 -3
  2. package/dist/connections/MongoDBCollection/MongoDBAggregation/MongoDBAggregation.js +5 -5
  3. package/dist/connections/MongoDBCollection/MongoDBAggregation/schema.js +1 -1
  4. package/dist/connections/MongoDBCollection/MongoDBCollection.js +1 -1
  5. package/dist/connections/MongoDBCollection/MongoDBDeleteMany/MongoDBDeleteMany.js +5 -21
  6. package/dist/connections/MongoDBCollection/MongoDBDeleteMany/schema.js +1 -1
  7. package/dist/connections/MongoDBCollection/MongoDBDeleteOne/MongoDBDeleteOne.js +5 -24
  8. package/dist/connections/MongoDBCollection/MongoDBDeleteOne/schema.js +1 -1
  9. package/dist/connections/MongoDBCollection/MongoDBFind/MongoDBFind.js +4 -4
  10. package/dist/connections/MongoDBCollection/MongoDBFind/schema.js +1 -1
  11. package/dist/connections/MongoDBCollection/MongoDBFindOne/MongoDBFindOne.js +4 -4
  12. package/dist/connections/MongoDBCollection/MongoDBFindOne/schema.js +1 -1
  13. package/dist/connections/MongoDBCollection/MongoDBInsertMany/MongoDBInsertMany.js +5 -21
  14. package/dist/connections/MongoDBCollection/MongoDBInsertMany/schema.js +1 -1
  15. package/dist/connections/MongoDBCollection/MongoDBInsertOne/MongoDBInsertOne.js +5 -21
  16. package/dist/connections/MongoDBCollection/MongoDBInsertOne/schema.js +1 -1
  17. package/dist/connections/MongoDBCollection/MongoDBUpdateMany/MongoDBUpdateMany.js +5 -22
  18. package/dist/connections/MongoDBCollection/MongoDBUpdateMany/schema.js +1 -1
  19. package/dist/connections/MongoDBCollection/MongoDBUpdateOne/MongoDBUpdateOne.js +5 -29
  20. package/dist/connections/MongoDBCollection/MongoDBUpdateOne/schema.js +1 -1
  21. package/dist/connections/MongoDBCollection/getCollection.js +15 -7
  22. package/dist/connections/MongoDBCollection/schema.js +3 -3
  23. package/dist/connections/MongoDBCollection/serialize.js +1 -1
  24. package/dist/connections.js +1 -1
  25. package/dist/types.js +1 -1
  26. package/package.json +19 -20
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -23,8 +23,8 @@ Default collections are:
23
23
  VerificationTokens: "verification_tokens",
24
24
  }
25
25
  */ // TODO: Docs: MongoDB database name should be in databaseUri
26
- function MongoDBAdapter({ properties }) {
27
- const { databaseUri , mongoDBClientOptions , options } = properties;
26
+ function MongoDBAdapter({ properties }) {
27
+ const { databaseUri, mongoDBClientOptions, options } = properties;
28
28
  const clientPromise = new MongoClient(databaseUri, mongoDBClientOptions).connect();
29
29
  return NextAuthMongoDBAdapter(clientPromise, options);
30
30
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,7 +15,7 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- function checkOutAndMerge({ pipeline , connection }) {
18
+ function checkOutAndMerge({ pipeline, connection }) {
19
19
  if (connection.write !== true) {
20
20
  pipeline.forEach((stage)=>{
21
21
  if (stage.$out != null || stage.$merge != null) {
@@ -24,14 +24,14 @@ function checkOutAndMerge({ pipeline , connection }) {
24
24
  });
25
25
  }
26
26
  }
27
- async function MongodbAggregation({ request , connection }) {
27
+ async function MongodbAggregation({ request, connection }) {
28
28
  const deserializedRequest = deserialize(request);
29
- const { pipeline , options } = deserializedRequest;
29
+ const { pipeline, options } = deserializedRequest;
30
30
  checkOutAndMerge({
31
31
  pipeline,
32
32
  connection
33
33
  });
34
- const { collection , client } = await getCollection({
34
+ const { collection, client } = await getCollection({
35
35
  connection
36
36
  });
37
37
  let res;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,37 +15,21 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbDeleteMany({ blockId , connection , pageId , request , requestId , payload }) {
18
+ async function MongodbDeleteMany({ connection, request }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { filter , options } = deserializedRequest;
21
- const { collection , client , logCollection } = await getCollection({
20
+ const { filter, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let response;
25
25
  try {
26
26
  response = await collection.deleteMany(filter, options);
27
- if (logCollection) {
28
- await logCollection.insertOne({
29
- args: {
30
- filter,
31
- options
32
- },
33
- blockId,
34
- pageId,
35
- payload,
36
- requestId,
37
- response,
38
- timestamp: new Date(),
39
- type: 'MongoDBDeleteMany',
40
- meta: connection.changeLog?.meta
41
- });
42
- }
43
27
  } catch (error) {
44
28
  await client.close();
45
29
  throw error;
46
30
  }
47
31
  await client.close();
48
- const { acknowledged , deletedCount } = serialize(response);
32
+ const { acknowledged, deletedCount } = serialize(response);
49
33
  return {
50
34
  acknowledged,
51
35
  deletedCount
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,34 +15,15 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbDeleteOne({ blockId , connection , pageId , request , requestId , payload }) {
18
+ async function MongodbDeleteOne({ connection, request }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { filter , options } = deserializedRequest;
21
- const { collection , client , logCollection } = await getCollection({
20
+ const { filter, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let response;
25
25
  try {
26
- if (logCollection) {
27
- const { value , ...responseWithoutValue } = await collection.findOneAndDelete(filter, options);
28
- response = responseWithoutValue;
29
- await logCollection.insertOne({
30
- args: {
31
- filter,
32
- options
33
- },
34
- blockId,
35
- pageId,
36
- payload,
37
- requestId,
38
- before: value,
39
- timestamp: new Date(),
40
- type: 'MongoDBDeleteOne',
41
- meta: connection.changeLog?.meta
42
- });
43
- } else {
44
- response = await collection.deleteOne(filter, options);
45
- }
26
+ response = await collection.deleteOne(filter, options);
46
27
  } catch (error) {
47
28
  await client.close();
48
29
  throw error;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,10 +15,10 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbFind({ request , connection }) {
18
+ async function MongodbFind({ request, connection }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { query , options } = deserializedRequest;
21
- const { collection , client } = await getCollection({
20
+ const { query, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let res;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,10 +15,10 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbFindOne({ request , connection }) {
18
+ async function MongodbFindOne({ request, connection }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { query , options } = deserializedRequest;
21
- const { collection , client } = await getCollection({
20
+ const { query, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let res;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,37 +15,21 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbInsertMany({ blockId , connection , pageId , request , requestId , payload }) {
18
+ async function MongodbInsertMany({ connection, request }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { docs , options } = deserializedRequest;
21
- const { collection , client , logCollection } = await getCollection({
20
+ const { docs, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let response;
25
25
  try {
26
26
  response = await collection.insertMany(docs, options);
27
- if (logCollection) {
28
- await logCollection.insertOne({
29
- args: {
30
- docs,
31
- options
32
- },
33
- blockId,
34
- pageId,
35
- payload,
36
- requestId,
37
- response,
38
- timestamp: new Date(),
39
- type: 'MongoDBInsertMany',
40
- meta: connection.changeLog?.meta
41
- });
42
- }
43
27
  } catch (error) {
44
28
  await client.close();
45
29
  throw error;
46
30
  }
47
31
  await client.close();
48
- const { acknowledged , insertedCount } = serialize(response);
32
+ const { acknowledged, insertedCount } = serialize(response);
49
33
  return {
50
34
  acknowledged,
51
35
  insertedCount
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,37 +15,21 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbInsertOne({ blockId , connection , pageId , request , requestId , payload }) {
18
+ async function MongodbInsertOne({ connection, request }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { doc , options } = deserializedRequest;
21
- const { collection , client , logCollection } = await getCollection({
20
+ const { doc, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let response;
25
25
  try {
26
26
  response = await collection.insertOne(doc, options);
27
- if (logCollection) {
28
- await logCollection.insertOne({
29
- args: {
30
- doc,
31
- options
32
- },
33
- blockId,
34
- pageId,
35
- payload,
36
- requestId,
37
- response,
38
- timestamp: new Date(),
39
- type: 'MongoDBInsertOne',
40
- meta: connection.changeLog?.meta
41
- });
42
- }
43
27
  } catch (error) {
44
28
  await client.close();
45
29
  throw error;
46
30
  }
47
31
  await client.close();
48
- const { acknowledged , insertedId } = serialize(response);
32
+ const { acknowledged, insertedId } = serialize(response);
49
33
  return {
50
34
  acknowledged,
51
35
  insertedId
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,38 +15,21 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbUpdateMany({ blockId , connection , pageId , request , requestId , payload }) {
18
+ async function MongodbUpdateMany({ connection, request }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { filter , update , options } = deserializedRequest;
21
- const { collection , client , logCollection } = await getCollection({
20
+ const { filter, update, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let response;
25
25
  try {
26
26
  response = await collection.updateMany(filter, update, options);
27
- if (logCollection) {
28
- await logCollection.insertOne({
29
- args: {
30
- filter,
31
- update,
32
- options
33
- },
34
- blockId,
35
- pageId,
36
- payload,
37
- requestId,
38
- response,
39
- timestamp: new Date(),
40
- type: 'MongoDBUpdateMany',
41
- meta: connection.changeLog?.meta
42
- });
43
- }
44
27
  } catch (error) {
45
28
  await client.close();
46
29
  throw error;
47
30
  }
48
31
  await client.close();
49
- const { modifiedCount , upsertedId , upsertedCount , matchedCount } = serialize(response);
32
+ const { modifiedCount, upsertedId, upsertedCount, matchedCount } = serialize(response);
50
33
  return {
51
34
  modifiedCount,
52
35
  upsertedId,
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -15,39 +15,15 @@
15
15
  */ import getCollection from '../getCollection.js';
16
16
  import { serialize, deserialize } from '../serialize.js';
17
17
  import schema from './schema.js';
18
- async function MongodbUpdateOne({ blockId , connection , pageId , request , requestId , payload }) {
18
+ async function MongodbUpdateOne({ connection, request }) {
19
19
  const deserializedRequest = deserialize(request);
20
- const { filter , update , options } = deserializedRequest;
21
- const { collection , client , logCollection } = await getCollection({
20
+ const { filter, update, options } = deserializedRequest;
21
+ const { collection, client } = await getCollection({
22
22
  connection
23
23
  });
24
24
  let response;
25
25
  try {
26
- if (logCollection) {
27
- const { value , ...responseWithoutValue } = await collection.findOneAndUpdate(filter, update, options);
28
- response = responseWithoutValue;
29
- const after = await collection.findOne({
30
- _id: value ? value._id : response.lastErrorObject?.upserted
31
- });
32
- await logCollection.insertOne({
33
- args: {
34
- filter,
35
- update,
36
- options
37
- },
38
- blockId,
39
- pageId,
40
- payload,
41
- requestId,
42
- before: value,
43
- after,
44
- timestamp: new Date(),
45
- type: 'MongoDBUpdateOne',
46
- meta: connection.changeLog?.meta
47
- });
48
- } else {
49
- response = await collection.updateOne(filter, update, options);
50
- }
26
+ response = await collection.updateOne(filter, update, options);
51
27
  } catch (error) {
52
28
  await client.close();
53
29
  throw error;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -13,17 +13,25 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import { MongoClient } from 'mongodb';
16
- async function getCollection({ connection }) {
17
- let client;
18
- const { collection , databaseName , databaseUri , changeLog , options } = connection;
19
- client = new MongoClient(databaseUri, options);
16
+ import { type } from '@lowdefy/helpers';
17
+ async function getCollection({ connection }) {
18
+ const { collection, databaseName, databaseUri, options } = connection;
19
+ if (!type.isString(databaseUri)) {
20
+ throw new Error('Database URI must be a string');
21
+ }
22
+ const client = new MongoClient(databaseUri, options);
20
23
  await client.connect();
21
24
  try {
25
+ if (!type.isString(databaseName) && !type.isNone(databaseName)) {
26
+ throw new Error('Database name must be a string');
27
+ }
22
28
  const db = client.db(databaseName);
29
+ if (!type.isString(collection)) {
30
+ throw new Error('Collection name must be a string');
31
+ }
23
32
  return {
24
33
  client,
25
- collection: db.collection(collection),
26
- logCollection: changeLog?.collection && db.collection(changeLog.collection)
34
+ collection: db.collection(collection)
27
35
  };
28
36
  } catch (error) {
29
37
  await client.close();
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -30,14 +30,14 @@
30
30
  },
31
31
  databaseName: {
32
32
  type: 'string',
33
- description: 'AWS IAM secret access key with s3 access.',
33
+ description: 'Database name.',
34
34
  errorMessage: {
35
35
  type: 'MongoDBCollection connection property "databaseName" should be a string.'
36
36
  }
37
37
  },
38
38
  collection: {
39
39
  type: 'string',
40
- description: 'AWS region the bucket is located in.',
40
+ description: 'Collection name.',
41
41
  errorMessage: {
42
42
  type: 'MongoDBCollection connection property "collection" should be a string.'
43
43
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/namespace */ /*
2
- Copyright 2020-2023 Lowdefy, Inc
2
+ Copyright 2020-2024 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/connection-mongodb",
3
- "version": "4.0.0-rc.9",
3
+ "version": "4.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -35,32 +35,31 @@
35
35
  "files": [
36
36
  "dist/*"
37
37
  ],
38
- "scripts": {
39
- "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
40
- "clean": "rm -rf dist",
41
- "prepublishOnly": "pnpm build",
42
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
43
- },
44
38
  "dependencies": {
45
- "@lowdefy/helpers": "4.0.0-rc.9",
46
- "@next-auth/mongodb-adapter": "1.1.1",
47
- "mongodb": "4.13.0",
39
+ "@lowdefy/helpers": "4.0.1",
40
+ "@next-auth/mongodb-adapter": "1.1.3",
41
+ "mongodb": "6.3.0",
48
42
  "saslprep": "1.0.3"
49
43
  },
50
44
  "devDependencies": {
51
- "@lowdefy/ajv": "4.0.0-rc.9",
52
- "@shelf/jest-mongodb": "4.1.4",
53
- "@swc/cli": "0.1.59",
54
- "@swc/core": "1.3.24",
55
- "@swc/jest": "0.2.24",
56
- "jest": "28.1.0",
57
- "jest-environment-node": "28.1.0",
58
- "next-auth": "4.20.1",
45
+ "@lowdefy/ajv": "4.0.1",
46
+ "@shelf/jest-mongodb": "4.1.7",
47
+ "@swc/cli": "0.1.63",
48
+ "@swc/core": "1.3.99",
49
+ "@swc/jest": "0.2.29",
50
+ "jest": "28.1.3",
51
+ "jest-environment-node": "28.1.3",
52
+ "next": "13.5.4",
53
+ "next-auth": "4.24.5",
59
54
  "react": "18.2.0",
60
55
  "react-dom": "18.2.0"
61
56
  },
62
57
  "publishConfig": {
63
58
  "access": "public"
64
59
  },
65
- "gitHead": "d20e6ac424643feca527a732dc2b0710713c8243"
66
- }
60
+ "scripts": {
61
+ "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
62
+ "clean": "rm -rf dist",
63
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
64
+ }
65
+ }