Problem/Motivation

When user add crypto-js library using composer default path of aes.js is "libraries/CryptojS/rollups/aes.js" while module adding library as "libraries/CryptojS/aes.js".

Steps to reproduce

Add following repo in composer.json

{
            "type":"package",
            "package": {
                "name": "password-encrypt/CryptojS",
                "version": "3.1.2",
                "type": "drupal-library",
                "dist": {
                    "url": "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/crypto-js/CryptoJS%20v3.1.2.zip",
                    "type": "zip"
                }
            }
        }

Proposed resolution

  1. Update composer.json
  2. Update password_encrypt.libraries.yml with updated path.

Remaining tasks

Update project description for drupal 8.

User interface changes

NA

API changes

NA

Data model changes

NA

Comments

Bunty Badgujar created an issue. See original summary.

bunty badgujar’s picture

Status: Active » Needs review
StatusFileSize
new1.14 KB

A patch for updating composer.json and password_encrypt.libraries.yml

bunty badgujar’s picture

StatusFileSize
new1.59 KB

Fix installation requirement check.

vselivanov’s picture

StatusFileSize
new2.95 KB

Fixed Composer deprecation warning with uppercase package name:
Deprecation warning: require.js/CryptoJS is invalid, it should not contain uppercase characters. Please use js/cryptojs instead. Make sure you fix this as Composer 2.0 will error.