ldap-authentication 3.0.3 → 3.1.0

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.
@@ -1,4 +1,4 @@
1
- FROM mcr.microsoft.com/devcontainers/typescript-node:18
1
+ FROM mcr.microsoft.com/devcontainers/typescript-node:20
2
2
 
3
3
  RUN ln -s /usr/bin/gpg /usr/local/bin/gpg
4
4
  RUN apt update && apt install ldap-utils -y
@@ -1,5 +1,3 @@
1
- version: "3"
2
-
3
1
  services:
4
2
  ldap-authentication:
5
3
  build:
@@ -8,7 +6,7 @@ services:
8
6
  volumes:
9
7
  - ..:/workspace:cached
10
8
  command: sleep infinity
11
-
9
+
12
10
  ldap:
13
11
  image: bitnami/openldap
14
12
  ports:
@@ -16,7 +16,7 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  strategy:
18
18
  matrix:
19
- node-version: [15.x, 16.x, 17.x, 18.x]
19
+ node-version: [16.x, 17.x, 18.x, 20.x]
20
20
 
21
21
  name: 'Integration Node v${{ matrix.node-version }}'
22
22
 
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Integration Tests](https://github.com/shaozi/ldap-authentication/actions/workflows/integration-test.yml/badge.svg)](https://github.com/shaozi/ldap-authentication/actions/workflows/integration-test.yml)
4
4
  [![Known Vulnerabilities](https://snyk.io/test/github/shaozi/ldap-authentication/badge.svg?targetFile=package.json)](https://snyk.io/test/github/shaozi/ldap-authentication?targetFile=package.json)
5
+ [![NPM Weekly Downloads](https://img.shields.io/npm/dw/ldap-authentication?logo=npm)](https://img.shields.io/npm/dw/ldap-authentication?logo=npm)
5
6
 
6
7
  ## Goal
7
8
 
@@ -1,4 +1,3 @@
1
- version: "3"
2
1
  services:
3
2
  ldap:
4
3
  image: bitnami/openldap:2.6.3
package/index.js CHANGED
@@ -148,7 +148,7 @@ async function _searchUserGroups(
148
148
  return
149
149
  }
150
150
  res.on('searchEntry', function (entry) {
151
- groups.push(entry.object)
151
+ groups.push(entry.pojo)
152
152
  })
153
153
  res.on('searchReference', function (referral) {})
154
154
  res.on('error', function (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ldap-authentication",
3
- "version": "3.0.3",
3
+ "version": "3.1.0",
4
4
  "description": "A simple async nodejs library for LDAP user authentication",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "homepage": "https://github.com/shaozi/ldap-authentication#readme",
38
38
  "dependencies": {
39
- "ldapjs": "^3.0.1"
39
+ "ldapjs": "^3.0.7"
40
40
  },
41
41
  "devDependencies": {
42
- "jasmine": "^4.6.0"
42
+ "jasmine": "^5.1.0"
43
43
  }
44
44
  }