Sha256: 3525815279246adca6396e5a01aa56c9eb64c7f05c1b6c3f857b7e49b8d8b837

Contents?: true

Size: 296 Bytes

Versions: 44

Compression:

Stored size: 296 Bytes

Contents

export default class Configuration {
  constructor() {
    this.config = {};
  }

  set(key, value = null) {
    if (typeof key === "object") {
      this.config = { ...this.config, ...key };
    } else {
      this.config[key] = value;
    }
  }

  get(key) {
    return this.config[key];
  }
}

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/packs/src/decidim/configuration.js
decidim-core-0.28.4 app/packs/src/decidim/configuration.js
decidim-core-0.27.9 app/packs/src/decidim/configuration.js
decidim-core-0.29.0 app/packs/src/decidim/configuration.js
decidim-core-0.28.3 app/packs/src/decidim/configuration.js
decidim-core-0.27.8 app/packs/src/decidim/configuration.js
decidim-core-0.29.0.rc4 app/packs/src/decidim/configuration.js
decidim-core-0.29.0.rc3 app/packs/src/decidim/configuration.js
decidim-core-0.29.0.rc2 app/packs/src/decidim/configuration.js
decidim-core-0.29.0.rc1 app/packs/src/decidim/configuration.js
decidim-core-0.28.2 app/packs/src/decidim/configuration.js
decidim-core-0.27.7 app/packs/src/decidim/configuration.js
decidim-core-0.28.1 app/packs/src/decidim/configuration.js
decidim-core-0.27.6 app/packs/src/decidim/configuration.js
decidim-core-0.26.10 app/packs/src/decidim/configuration.js
decidim-core-0.26.9 app/packs/src/decidim/configuration.js
decidim-core-0.28.0 app/packs/src/decidim/configuration.js
decidim-core-0.27.5 app/packs/src/decidim/configuration.js
decidim-core-0.28.0.rc5 app/packs/src/decidim/configuration.js
decidim-core-0.28.0.rc4 app/packs/src/decidim/configuration.js