applay-utils 1.2.14 → 1.2.16
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.
- package/.github/workflows/action1.yml +15 -0
- package/package.json +1 -1
- package/utils/mdb.js +2 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Publish Package to npmjs
|
|
2
|
+
on: [push]
|
|
3
|
+
jobs:
|
|
4
|
+
build:
|
|
5
|
+
runs-on: ubuntu-latest
|
|
6
|
+
steps:
|
|
7
|
+
- uses: actions/checkout@v3
|
|
8
|
+
- uses: actions/setup-node@v3
|
|
9
|
+
with:
|
|
10
|
+
node-version: '16.x'
|
|
11
|
+
registry-url: 'https://registry.npmjs.org'
|
|
12
|
+
- run: npm ci
|
|
13
|
+
- run: npm publish
|
|
14
|
+
env:
|
|
15
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
package/utils/mdb.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var MongoBase = require('mongodb');
|
|
2
2
|
var ObjectId = require('mongodb').ObjectId;
|
|
3
|
+
var ObjectID = ObjectId;
|
|
3
4
|
|
|
4
5
|
var MDB = {
|
|
5
6
|
status: {},
|
|
@@ -206,7 +207,7 @@ function build(data, model, user) {
|
|
|
206
207
|
|
|
207
208
|
module.exports = {
|
|
208
209
|
ObjectId,
|
|
209
|
-
ObjectID
|
|
210
|
+
ObjectID,
|
|
210
211
|
connect,
|
|
211
212
|
connectAsync,
|
|
212
213
|
stopCustom,
|