@lblod/mu-auth-sudo 0.6.0 → 0.6.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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "github": {
3
+ "release": true
4
+ },
5
+ "npm": {
6
+ "publish": false
7
+ }
8
+ }
@@ -0,0 +1,13 @@
1
+ pipeline:
2
+ install:
3
+ image: node:14
4
+ commands:
5
+ - npm ci
6
+ lint:
7
+ image: node:14
8
+ commands:
9
+ - npm run lint
10
+ when:
11
+ event: pull_request
12
+
13
+
@@ -0,0 +1,13 @@
1
+ pipeline:
2
+ install:
3
+ image: node:14
4
+ commands:
5
+ - npm ci
6
+ release:
7
+ image: plugins/npm
8
+ settings:
9
+ token:
10
+ from_secret: npm_access_token
11
+ when:
12
+ event: tag
13
+ tag: v*
package/dist/auth-sudo.js CHANGED
@@ -92,10 +92,6 @@ async function executeRawQuery(queryString) {
92
92
  var attempt = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
93
93
 
94
94
 
95
- if (LOG_SPARQL_QUERIES) {
96
- console.log(queryString);
97
- }
98
-
99
95
  try {
100
96
 
101
97
  var response = await sudoSparqlClient(extraHeaders, connectionOptions).query(queryString).executeRaw();
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@lblod/mu-auth-sudo",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "this package provides an alternative sparql client for the mu-javascript-template that has sudo rights.",
5
5
  "main": "dist/auth-sudo.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "prepare": "rm -rf dist && babel src --out-dir dist/",
9
- "prepublish": "rm -rf dist && babel src --out-dir dist/"
9
+ "prepublish": "rm -rf dist && babel src --out-dir dist/",
10
+ "release": "release-it"
10
11
  },
11
12
  "repository": {
12
13
  "type": "git",
@@ -36,7 +37,8 @@
36
37
  "babel-plugin-add-module-exports": "^1.0.4",
37
38
  "babel-preset-env": "^1.7.0",
38
39
  "babel-preset-es2015": "^6.24.1",
39
- "babel-register": "^6.26.0"
40
+ "babel-register": "^6.26.0",
41
+ "release-it": "^15.5.0"
40
42
  },
41
43
  "dependencies": {
42
44
  "env-var": "^7.0.1",