@nina-protocol/nina-db 0.0.5 → 0.0.7
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/dist/models/Release.js +0 -1
- package/dist/utils/index.js +0 -1
- package/package.json +1 -1
- package/src/models/Release.js +0 -1
- package/src/utils/index.js +0 -1
- package/dist/utils/knexfile.js +0 -33
package/dist/models/Release.js
CHANGED
|
@@ -90,7 +90,6 @@ export default class Release extends Model {
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
format = async () => {
|
|
93
|
-
console.log('formatting release: ', this.publicKey);
|
|
94
93
|
const publisher = await this.$relatedQuery('publisher').select('publicKey');
|
|
95
94
|
const publishedThroughHub = await this.$relatedQuery('publishedThroughHub');
|
|
96
95
|
if (publishedThroughHub) {
|
package/dist/utils/index.js
CHANGED
|
@@ -4,7 +4,6 @@ const removeQuotesFromStartAndEndOfString = (string) => {
|
|
|
4
4
|
return string.substring(1, string.length - 1).substring(-1, string.length - 1);
|
|
5
5
|
};
|
|
6
6
|
export const stripHtmlIfNeeded = (object, value) => {
|
|
7
|
-
console.log('stripHtmlIfNeeded', object, value);
|
|
8
7
|
let strippedDescription = striptags(object[value], [], ' ');
|
|
9
8
|
strippedDescription = strippedDescription.replace(' ', ' ');
|
|
10
9
|
if (strippedDescription !== object[value]) {
|
package/package.json
CHANGED
package/src/models/Release.js
CHANGED
|
@@ -101,7 +101,6 @@ export default class Release extends Model {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
format = async () => {
|
|
104
|
-
console.log('formatting release: ', this.publicKey)
|
|
105
104
|
const publisher = await this.$relatedQuery('publisher').select('publicKey');
|
|
106
105
|
const publishedThroughHub = await this.$relatedQuery('publishedThroughHub');
|
|
107
106
|
if (publishedThroughHub) {
|
package/src/utils/index.js
CHANGED
|
@@ -6,7 +6,6 @@ const removeQuotesFromStartAndEndOfString = (string) => {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export const stripHtmlIfNeeded = (object, value) => {
|
|
9
|
-
console.log('stripHtmlIfNeeded', object, value)
|
|
10
9
|
let strippedDescription = striptags(object[value], [], ' ');
|
|
11
10
|
strippedDescription = strippedDescription.replace(' ', ' ');
|
|
12
11
|
if (strippedDescription !== object[value]) {
|
package/dist/utils/knexfile.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Update with your config settings.
|
|
2
|
-
/**
|
|
3
|
-
* @type { Object.<string, import("knex").Knex.Config> }
|
|
4
|
-
*/
|
|
5
|
-
export default {
|
|
6
|
-
development: {
|
|
7
|
-
client: 'postgresql',
|
|
8
|
-
connection: {
|
|
9
|
-
host: process.env.POSTGRES_HOST,
|
|
10
|
-
database: process.env.POSTGRES_DATABASE,
|
|
11
|
-
user: process.env.POSTGRES_USER,
|
|
12
|
-
password: process.env.POSTGRES_PASSWORD,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
staging: {
|
|
16
|
-
client: 'postgresql',
|
|
17
|
-
connection: {
|
|
18
|
-
host: process.env.POSTGRES_HOST,
|
|
19
|
-
database: process.env.POSTGRES_DATABASE,
|
|
20
|
-
user: process.env.POSTGRES_USER,
|
|
21
|
-
password: process.env.POSTGRES_PASSWORD,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
production: {
|
|
25
|
-
client: 'postgresql',
|
|
26
|
-
connection: {
|
|
27
|
-
host: process.env.POSTGRES_HOST,
|
|
28
|
-
database: process.env.POSTGRES_DATABASE,
|
|
29
|
-
user: process.env.POSTGRES_USER,
|
|
30
|
-
password: process.env.POSTGRES_PASSWORD,
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
};
|