ngx-ratio-image 0.0.8 → 0.0.9

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.
@@ -6,35 +6,33 @@ name: Node.js CI
6
6
  on:
7
7
  workflow_dispatch:
8
8
  push:
9
- branches: [ "main" ]
9
+ branches: ['main']
10
10
  pull_request:
11
- branches: [ "main" ]
11
+ branches: ['main']
12
12
 
13
13
  env:
14
14
  CI: true
15
15
  DISPLAY: ':10.0'
16
16
  CHROME_BIN: '/usr/bin/chromium'
17
17
 
18
-
19
18
  jobs:
20
19
  build:
21
-
22
20
  runs-on: ubuntu-latest
23
21
  timeout-minutes: 5
24
22
  strategy:
25
23
  matrix:
26
- node-version: [ 16.x, 18.x ]
24
+ node-version: [16.x, 18.x]
27
25
  # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
28
26
 
29
27
  steps:
30
- - uses: actions/checkout@v3
31
- - name: Use Node.js ${{ matrix.node-version }}
32
- uses: actions/setup-node@v3
33
- with:
34
- node-version: ${{ matrix.node-version }}
35
- cache: 'npm'
36
- - name: Setup Chrome
37
- uses: browser-actions/setup-chrome@v1.2.0
38
- - run: npm ci
39
- - run: npm run build --if-present
40
- - run: npm run test:ci
28
+ - uses: actions/checkout@v3
29
+ - name: Use Node.js ${{ matrix.node-version }}
30
+ uses: actions/setup-node@v3
31
+ with:
32
+ node-version: ${{ matrix.node-version }}
33
+ cache: 'npm'
34
+ - name: Setup Chrome
35
+ uses: browser-actions/setup-chrome@v1.2.0
36
+ - run: npm ci
37
+ - run: npm run build --if-present
38
+ - run: npm run test:ci
@@ -5,7 +5,7 @@ name: Node.js Package
5
5
 
6
6
  on:
7
7
  release:
8
- types: [ created ]
8
+ types: [created]
9
9
 
10
10
  env:
11
11
  CI: true
@@ -17,26 +17,26 @@ jobs:
17
17
  runs-on: ubuntu-latest
18
18
  timeout-minutes: 10
19
19
  steps:
20
- - uses: actions/checkout@v3
21
- - uses: actions/setup-node@v3
22
- with:
23
- node-version: 16
24
- - run: npm ci
25
- - run: npm run build
26
- - name: Setup Chrome
27
- uses: browser-actions/setup-chrome@v1.2.0
28
- - run: npm run test:ci
20
+ - uses: actions/checkout@v3
21
+ - uses: actions/setup-node@v3
22
+ with:
23
+ node-version: 16
24
+ - run: npm ci
25
+ - run: npm run build
26
+ - name: Setup Chrome
27
+ uses: browser-actions/setup-chrome@v1.2.0
28
+ - run: npm run test:ci
29
29
 
30
30
  publish-npm:
31
31
  needs: build
32
32
  runs-on: ubuntu-latest
33
33
  steps:
34
- - uses: actions/checkout@v3
35
- - uses: actions/setup-node@v3
36
- with:
37
- node-version: 16
38
- registry-url: https://registry.npmjs.org/
39
- - run: npm ci
40
- - run: npm publish
41
- env:
42
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34
+ - uses: actions/checkout@v3
35
+ - uses: actions/setup-node@v3
36
+ with:
37
+ node-version: 16
38
+ registry-url: https://registry.npmjs.org/
39
+ - run: npm ci
40
+ - run: npm publish
41
+ env:
42
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-ratio-image",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "author": {
5
5
  "name": "Gerd Siebert"
6
6
  },
@@ -16,7 +16,7 @@
16
16
  "Angular 16"
17
17
  ],
18
18
  "license": "MIT",
19
- "main": "dist/ratio-image/esm2022/ratio-image.mjs",
19
+ "main": "dist/ngx-ratio-image/esm2022/ratio-image.mjs",
20
20
  "scripts": {
21
21
  "ng": "ng",
22
22
  "prettier": "prettier --write \"**/*.{js,json,css,scss,less,md,ts,html,component.html}\"",
@@ -30,7 +30,7 @@
30
30
  "test:ci": "ng test --code-coverage --no-watch --browsers=ChromeHeadless --source-map=false",
31
31
  "lint": "ng lint",
32
32
  "packagr": "ng-packagr -p ng-package.json",
33
- "publish": "rm -rf node_modules && npm install && npm run build && cd dist/ratio-image && npm publish && cd ../../"
33
+ "publish": "rm -rf node_modules && npm install && npm run build && cd dist/ngx-ratio-image && npm publish && cd ../../"
34
34
  },
35
35
  "private": false,
36
36
  "dependencies": {
@@ -7,8 +7,8 @@
7
7
  "description": "Asn Angular lib to show an image with variable ratio in container with a fixed ratio.",
8
8
  "license": "MIT",
9
9
  "peerDependencies": {
10
- "@angular/common": "^16.1.0",
11
- "@angular/core": "^16.1.0"
10
+ "@angular/common": "^16.0.0 || ^17.0.0",
11
+ "@angular/core": "^16.0.0 || ^17.0.0"
12
12
  },
13
13
  "dependencies": {
14
14
  "tslib": "^2.3.0"
@@ -35,8 +35,8 @@
35
35
  <div>Container: {{ width }} x {{ height }}</div>
36
36
  <div>Natural: {{ naturalWidth }} x {{ naturalHeight }}</div>
37
37
  <div>Pos: {{ imageLeft }} , {{ imageTop }}</div>
38
- <div>Scale: {{ scale | number : '0.0-2' }}</div>
38
+ <div>Scale: {{ scale | number: '0.0-2' }}</div>
39
39
  <div>
40
- Ratio Box , Image: {{ this.ratioBox | number : '0.0-2' }} : 1 , {{ this.ratioImage | number : '0.0-2' }} : 1
40
+ Ratio Box , Image: {{ this.ratioBox | number: '0.0-2' }} : 1 , {{ this.ratioImage | number: '0.0-2' }} : 1
41
41
  </div>
42
42
  </div>
@@ -7,7 +7,7 @@ a:active {
7
7
  color: lightgray;
8
8
  }
9
9
  h1 {
10
- margin: 5px 16px 5px 5px; ;
10
+ margin: 5px 16px 5px 5px;
11
11
  font-size: 32px;
12
12
  }
13
13
  .navigation-items {
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />