adapt-authoring-tags 1.3.0 → 1.3.2
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/lib/TagsModule.js
CHANGED
|
@@ -102,11 +102,11 @@ class TagsModule extends AbstractApiModule {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/** @override */
|
|
105
|
-
async insert (
|
|
105
|
+
async insert (data, options = {}, mongoOptions = {}) {
|
|
106
106
|
// allow attempts to create tags that already exist
|
|
107
|
-
const
|
|
107
|
+
const tag = await this.findOne(data, { ...options, strict: false }, mongoOptions)
|
|
108
108
|
if (tag) return tag
|
|
109
|
-
return super.insert(
|
|
109
|
+
return super.insert(data, options, mongoOptions)
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/** @override */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-tags",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Module for managing tags",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-tags",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"test": "node --test 'tests/**/*.spec.js'"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
+
"adapt-authoring-server": "^2.1.0",
|
|
14
15
|
"@semantic-release/git": "^10.0.1",
|
|
15
16
|
"conventional-changelog-eslint": "^6.0.0",
|
|
16
17
|
"semantic-release": "^25.0.2",
|