Skip to content

Commit

Permalink
Fix names according to npmjs policy
Browse files Browse the repository at this point in the history
  • Loading branch information
guimard committed Jun 22, 2022
1 parent b468960 commit 693fa48
Show file tree
Hide file tree
Showing 94 changed files with 222 additions and 222 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Beta [Lemonldap::NG](https://lemonldap-ng.org) handler for node.js

* Main package: [lemonldap-ng-handler](./packages/handler/README.md)
* Configuration:
* Main class: [@LLNG/conf](./packages/conf/README.md)
* Configuration backends: [@LLNG/conf-\*](./packages/)
* Main class: [@lemonldap-ng/conf](./packages/conf/README.md)
* Configuration backends: [@lemonldap-ng/conf-\*](./packages/)
* Perl Apache::Session::\* wrapper:
* Main class: [@LLNG/session](./packages/session/README.md)
* Session backends: [@LLNG/session-\*](./packages/)
* Main class: [@lemonldap-ng/session](./packages/session/README.md)
* Session backends: [@lemonldap-ng/session-\*](./packages/)
* Perl-DBI wrapper: [perl-dbi](./packages/perl-dbi/README.md)
* Crypto API: [@LLNG/crypto](./packages/crypto/README.md)
* Constants: [@LLNG/constants](./packages/constants)
* Global typescript types: [@LLNG/types](./packages/types)
* Crypto API: [@lemonldap-ng/crypto](./packages/crypto/README.md)
* Constants: [@lemonldap-ng/constants](./packages/constants)
* Global typescript types: [@lemonldap-ng/types](./packages/types)

## What is [LemonLDAP::NG](https://lemonldap-ng.org)

Expand Down
6 changes: 3 additions & 3 deletions packages/conf-cdbi/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-cdbi
# @lemonldap-ng/conf-cdbi

@LLNG/conf-cdbi is the database connector for CDBI configuration storage
@lemonldap-ng/conf-cdbi is the database connector for CDBI configuration storage

@LLNG/conf-cdbi is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-cdbi is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
6 changes: 3 additions & 3 deletions packages/conf-cdbi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-cdbi",
"name": "@lemonldap-ng/conf-cdbi",
"version": "0.6.0",
"description": "LLNG class for CDBI configuration access",
"description": "lemonldap-ng class for CDBI configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand All @@ -23,7 +23,7 @@
"README.md"
],
"dependencies": {
"@LLNG/conf-dbi": "^0.6.0"
"@lemonldap-ng/conf-dbi": "^0.6.0"
},
"bugs": {
"url": "https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-cdbi/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from '../../rollup.template.js';

export default config( ['@LLNG/conf-dbi'] );
export default config( ['@lemonldap-ng/conf-dbi'] );
4 changes: 2 additions & 2 deletions packages/conf-cdbi/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'

import DBI from '@LLNG/conf-dbi'
import DBI from '@lemonldap-ng/conf-dbi'

class CDBI extends DBI implements Conf_Accessor {
store (fields: LLNG_Conf) {
Expand Down
6 changes: 3 additions & 3 deletions packages/conf-dbi/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-dbi
# @lemonldap-ng/conf-dbi

@LLNG/conf-dbi is a base class of @LLNG/conf-cdbi and @LLNG/conf-rdbi
@lemonldap-ng/conf-dbi is a base class of @lemonldap-ng/conf-cdbi and @lemonldap-ng/conf-rdbi

@LLNG/conf-dbi is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-dbi is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/conf-dbi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-dbi",
"name": "@lemonldap-ng/conf-dbi",
"version": "0.6.0",
"description": "LLNG base class for *DBI configuration access",
"description": "lemonldap-ng base class for *DBI configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
6 changes: 3 additions & 3 deletions packages/conf-file/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-cdbi
# @lemonldap-ng/conf-cdbi

@LLNG/conf-file is the database connector for File configuration storage
@lemonldap-ng/conf-file is the database connector for File configuration storage

@LLNG/conf-file is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-file is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/conf-file/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-file",
"name": "@lemonldap-ng/conf-file",
"version": "0.6.0",
"description": "LLNG class for File configuration access",
"description": "lemonldap-ng class for File configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-file/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import path from 'path'
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'

export type FileArgs = {
dirName: string
Expand Down
6 changes: 3 additions & 3 deletions packages/conf-ldap/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-ldap
# @lemonldap-ng/conf-ldap

@LLNG/conf-ldap is the database connector for LDAP configuration storage.
@lemonldap-ng/conf-ldap is the database connector for LDAP configuration storage.

@LLNG/conf-ldap is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-ldap is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/conf-ldap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-ldap",
"name": "@lemonldap-ng/conf-ldap",
"version": "0.6.0",
"description": "LLNG class for LDAP configuration access",
"description": "lemonldap-ng class for LDAP configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-ldap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type LDAP_Args = {
}

import ldapjs from 'ldapjs'
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'
import {
SearchCallbackResponse,
SearchEntry,
Expand Down
6 changes: 3 additions & 3 deletions packages/conf-mongodb/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-mongodb
# @lemonldap-ng/conf-mongodb

@LLNG/conf-mongodb is the database connector for MongoDB configuration storage.
@lemonldap-ng/conf-mongodb is the database connector for MongoDB configuration storage.

@LLNG/conf-mongodb is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-mongodb is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/conf-mongodb/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-mongodb",
"name": "@lemonldap-ng/conf-mongodb",
"version": "0.5.4",
"description": "LemonLDAP::NG handler for Node.js",
"description": "LemonLDAP::NG configuration connector to MongoDB storage",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-mongodb/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MongoClient } from 'mongodb'
import { Db, Collection, Document } from 'mongodb'
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'

const ref = [
'host',
Expand Down
6 changes: 3 additions & 3 deletions packages/conf-rdbi/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-cdbi
# @lemonldap-ng/conf-cdbi

@LLNG/conf-rdbi is the database connector for RDBI configuration storage
@lemonldap-ng/conf-rdbi is the database connector for RDBI configuration storage

@LLNG/conf-rdbi is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-rdbi is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
6 changes: 3 additions & 3 deletions packages/conf-rdbi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-rdbi",
"name": "@lemonldap-ng/conf-rdbi",
"version": "0.6.0",
"description": "LLNG class for RDBI configuration access",
"description": "lemonldap-ng class for RDBI configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand All @@ -23,7 +23,7 @@
"README.md"
],
"dependencies": {
"@LLNG/conf-dbi": "^0.6.0"
"@lemonldap-ng/conf-dbi": "^0.6.0"
},
"bugs": {
"url": "https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-rdbi/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from '../../rollup.template.js';

export default config(['@LLNG/conf-dbi', '@LLNG/constants']);
export default config(['@lemonldap-ng/conf-dbi', '@lemonldap-ng/constants']);
6 changes: 3 additions & 3 deletions packages/conf-rdbi/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import { hashParameters } from '@LLNG/constants'
import DBI from '@LLNG/conf-dbi'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'
import { hashParameters } from '@lemonldap-ng/constants'
import DBI from '@lemonldap-ng/conf-dbi'

type Serialized = { [key: string]: string | number | boolean }

Expand Down
6 changes: 3 additions & 3 deletions packages/conf-rest/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-rest
# @lemonldap-ng/conf-rest

@LLNG/conf-rest is the database connector for REST configuration storage
@lemonldap-ng/conf-rest is the database connector for REST configuration storage

@LLNG/conf-rest is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-rest is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/conf-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-rest",
"name": "@lemonldap-ng/conf-rest",
"version": "0.6.0",
"description": "LLNG class for REST configuration access",
"description": "lemonldap-ng class for REST configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-rest/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetch from 'node-fetch'
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'

export type REST_Args = {
baseUrl: string
Expand Down
6 changes: 3 additions & 3 deletions packages/conf-yaml/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @LLNG/conf-yaml
# @lemonldap-ng/conf-yaml

@LLNG/conf-yaml is the database connector for YAML configuration storage
@lemonldap-ng/conf-yaml is the database connector for YAML configuration storage

@LLNG/conf-yaml is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf-yaml is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/conf-yaml/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/conf-yaml",
"name": "@lemonldap-ng/conf-yaml",
"version": "0.6.0",
"description": "LLNG class for YAML File configuration access",
"description": "lemonldap-ng class for YAML File configuration access",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/conf-yaml/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from '../../rollup.template.js';

export default config(['@LLNG/conf-file', 'js-yaml', 'fs', 'path']);
export default config(['@lemonldap-ng/conf-file', 'js-yaml', 'fs', 'path']);
6 changes: 3 additions & 3 deletions packages/conf-yaml/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fs from 'fs'
import path from 'path'
import yaml from 'js-yaml'
import FileConf from '@LLNG/conf-file'
import { LLNG_Conf, Conf_Accessor } from '@LLNG/types'
import FileConf from '@lemonldap-ng/conf-file'
import { LLNG_Conf, Conf_Accessor } from '@lemonldap-ng/types'

import { FileArgs } from '@LLNG/conf-file'
import { FileArgs } from '@lemonldap-ng/conf-file'

class YAMLConf extends FileConf implements Conf_Accessor {
dirName: string
Expand Down
10 changes: 5 additions & 5 deletions packages/conf/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @LLNG/conf
# @lemonldap-ng/conf

@LLNG/conf is the configuration accessor.
@lemonldap-ng/conf is the configuration accessor.

## Synopsis

```typescript
import Conf from '@LLNG/conf'
import {LocalConf} from '@LLNG/types' // typescript only
import Conf from '@lemonldap-ng/conf'
import {LocalConf} from '@lemonldap-ng/types' // typescript only
const minimalConf: LocalConf = {
confFile: '/path/to/lemonldap-ng.ini' // default to /etc/lemonldap-ng/lemonldap-ng.ini
Expand All @@ -25,5 +25,5 @@ confAccessor.getConf().then ( (conf: LLNG_Conf) => {
})
```

@LLNG/conf is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/conf is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
18 changes: 9 additions & 9 deletions packages/conf/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@LLNG/conf",
"name": "@lemonldap-ng/conf",
"version": "0.6.0",
"description": "LemonLDAP::NG configuration loader",
"main": "./lib/index.js",
Expand All @@ -23,17 +23,17 @@
"README.md"
],
"dependencies": {
"@LLNG/conf-file": "^0.6.0",
"@LLNG/crypto": "^0.6.0",
"@lemonldap-ng/conf-file": "^0.6.0",
"@lemonldap-ng/crypto": "^0.6.0",
"ini": "^3.0.0"
},
"optionalDependencies": {
"@LLNG/conf-cdbi": "^0.6.0",
"@LLNG/conf-ldap": "^0.6.0",
"@LLNG/conf-mongodb": "^0.6.0",
"@LLNG/conf-rdbi": "^0.6.0",
"@LLNG/conf-rest": "^0.6.0",
"@LLNG/conf-yaml": "^0.6.0"
"@lemonldap-ng/conf-cdbi": "^0.6.0",
"@lemonldap-ng/conf-ldap": "^0.6.0",
"@lemonldap-ng/conf-mongodb": "^0.6.0",
"@lemonldap-ng/conf-rdbi": "^0.6.0",
"@lemonldap-ng/conf-rest": "^0.6.0",
"@lemonldap-ng/conf-yaml": "^0.6.0"
},
"bugs": {
"url": "https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/conf/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import config from '../../rollup.template.js';

export default config(['ini', 'fs', '@LLNG/crypto']);
export default config(['ini', 'fs', '@lemonldap-ng/crypto']);
6 changes: 3 additions & 3 deletions packages/conf/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
LLNG_IniSection,
LLNG_IniFile,
IniSection
} from '@LLNG/types'
} from '@lemonldap-ng/types'

type getConf_Args = {
cfgNum?: number
Expand All @@ -15,7 +15,7 @@ type getConf_Args = {

import fs from 'fs'
import ini from 'ini'
import crypto from '@LLNG/crypto'
import crypto from '@lemonldap-ng/crypto'

class Conf {
localConf: LocalConf
Expand All @@ -33,7 +33,7 @@ class Conf {
if (!confSection.type)
throw new Error('Configuration.type is missing in lemonldap-ng.ini')
this.ready = new Promise<boolean>((resolve, reject) => {
import(`@LLNG/conf-${confSection.type.toLowerCase()}`)
import(`@lemonldap-ng/conf-${confSection.type.toLowerCase()}`)
.then(mod => {
const cl = mod.default
this.module = new cl(confSection)
Expand Down
4 changes: 2 additions & 2 deletions packages/constants/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @LLNG/constants
# @lemonldap-ng/constants

@LLNG/constants is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
@lemonldap-ng/constants is a component of [lemonldap-ng-handler](https://www.npmjs.com/package/lemonldap-ng-handler),
a Node.js handler for [LemonLDAP::NG WebSSO](https://lemonldap-ng.org).
4 changes: 2 additions & 2 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@LLNG/constants",
"name": "@lemonldap-ng/constants",
"version": "0.6.0",
"description": "lemonkdap-ng mani constants",
"description": "lemonldap-ng main constants",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"exports": {
Expand Down
Loading

0 comments on commit 693fa48

Please sign in to comment.