@stdlib/console-log-each 0.2.0 → 0.2.2

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +18 -4
  3. package/package.json +11 -33
package/README.md CHANGED
@@ -184,8 +184,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
184
184
  [npm-image]: http://img.shields.io/npm/v/@stdlib/console-log-each.svg
185
185
  [npm-url]: https://npmjs.org/package/@stdlib/console-log-each
186
186
 
187
- [test-image]: https://github.com/stdlib-js/console-log-each/actions/workflows/test.yml/badge.svg?branch=v0.2.0
188
- [test-url]: https://github.com/stdlib-js/console-log-each/actions/workflows/test.yml?query=branch:v0.2.0
187
+ [test-image]: https://github.com/stdlib-js/console-log-each/actions/workflows/test.yml/badge.svg?branch=v0.2.2
188
+ [test-url]: https://github.com/stdlib-js/console-log-each/actions/workflows/test.yml?query=branch:v0.2.2
189
189
 
190
190
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/console-log-each/main.svg
191
191
  [coverage-url]: https://codecov.io/github/stdlib-js/console-log-each?branch=main
package/dist/index.js CHANGED
@@ -1,5 +1,19 @@
1
- "use strict";var d=function(i,s){return function(){return s||i((s={exports:{}}).exports,s),s.exports}};var c=d(function(y,m){
2
- var q=require('@stdlib/assert-is-string/dist').isPrimitive,p=require('@stdlib/assert-is-collection/dist'),g=require('@stdlib/array-base-resolve-getter/dist'),f=require('@stdlib/error-tools-fmtprodmsg/dist'),w=require('@stdlib/console-log/dist');function E(i){var s,l,t,o,u,n,v,r,h,e,a;if(!q(i))throw new TypeError(f('1aZ3F',i));for(u=arguments.length,t=[],s=[],n=[],e=1;e<u;e++)if(r=arguments[e],p(r)){t.push(g(r)),n.push(r),s.push(1),v=r.length,e+=1;break}else r=[r],t.push(g(r)),n.push(r),s.push(0);for(v===void 0&&(v=1);e<u;e++){if(r=arguments[e],p(r)){if(r.length!==v)throw new RangeError(f('1aZD1'));h=1}else r=[r],h=0;t.push(g(r)),n.push(r),s.push(h)}for(o=[i],l=[],e=1;e<u;e++)o.push(null),l.push(0);for(e=0;e<v;e++){for(a=0;a<u-1;a++)o[a+1]=t[a](n[a],l[a]),l[a]+=s[a];w(f.apply(null,o))}}m.exports=E
3
- });var b=c();module.exports=b;
4
- /** @license Apache-2.0 */
1
+ "use strict";var d=function(i,s){return function(){return s||i((s={exports:{}}).exports,s),s.exports}};var c=d(function(y,m){"use strict";var q=require("@stdlib/assert-is-string").isPrimitive,p=require("@stdlib/assert-is-collection"),g=require("@stdlib/array-base-resolve-getter"),f=require("@stdlib/string-format"),w=require("@stdlib/console-log");function E(i){var s,l,t,o,u,n,v,r,h,e,a;if(!q(i))throw new TypeError(f("invalid argument. First argument must be a string. Value: `%s`.",i));for(u=arguments.length,t=[],s=[],n=[],e=1;e<u;e++)if(r=arguments[e],p(r)){t.push(g(r)),n.push(r),s.push(1),v=r.length,e+=1;break}else r=[r],t.push(g(r)),n.push(r),s.push(0);for(v===void 0&&(v=1);e<u;e++){if(r=arguments[e],p(r)){if(r.length!==v)throw new RangeError("invalid argument. Provided collections must have the same length.");h=1}else r=[r],h=0;t.push(g(r)),n.push(r),s.push(h)}for(o=[i],l=[],e=1;e<u;e++)o.push(null),l.push(0);for(e=0;e<v;e++){for(a=0;a<u-1;a++)o[a+1]=t[a](n[a],l[a]),l[a]+=s[a];w(f.apply(null,o))}}m.exports=E});var b=c();module.exports=b;
2
+ /**
3
+ * @license Apache-2.0
4
+ *
5
+ * Copyright (c) 2022 The Stdlib Authors.
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
5
19
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/console-log-each",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Insert array element values into a format string and print the result.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,19 +15,12 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "directories": {
18
- "benchmark": "./benchmark",
19
18
  "doc": "./docs",
20
- "example": "./examples",
21
19
  "lib": "./lib",
22
- "test": "./test"
20
+ "dist": "./dist"
23
21
  },
24
22
  "types": "./docs/types",
25
- "scripts": {
26
- "test": "make test",
27
- "test-cov": "make test-cov",
28
- "examples": "make examples",
29
- "benchmark": "make benchmark"
30
- },
23
+ "scripts": {},
31
24
  "homepage": "https://stdlib.io",
32
25
  "repository": {
33
26
  "type": "git",
@@ -37,29 +30,14 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/array-base-resolve-getter": "^0.2.0",
41
- "@stdlib/assert-is-collection": "^0.2.0",
42
- "@stdlib/assert-is-string": "^0.2.0",
43
- "@stdlib/console-log": "^0.2.0",
44
- "@stdlib/string-format": "^0.2.0",
45
- "@stdlib/error-tools-fmtprodmsg": "^0.2.0"
46
- },
47
- "devDependencies": {
48
- "@stdlib/array-complex128": "^0.1.0",
49
- "@stdlib/array-filled-by": "^0.1.0",
50
- "@stdlib/array-zeros": "^0.1.0",
51
- "@stdlib/math-base-special-abs": "^0.2.0",
52
- "@stdlib/math-base-special-pow": "^0.2.0",
53
- "@stdlib/random-base-discrete-uniform": "^0.1.0",
54
- "@stdlib/utils-map": "^0.1.0",
55
- "@stdlib/utils-nary-function": "^0.2.0",
56
- "proxyquire": "^2.0.0",
57
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
58
- "istanbul": "^0.4.1",
59
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
60
- "@stdlib/bench-harness": "^0.2.0",
61
- "@stdlib/bench": "^0.3.1"
62
- },
33
+ "@stdlib/array-base-resolve-getter": "^0.2.1",
34
+ "@stdlib/assert-is-collection": "^0.2.2",
35
+ "@stdlib/assert-is-string": "^0.2.2",
36
+ "@stdlib/console-log": "^0.2.2",
37
+ "@stdlib/string-format": "^0.2.2",
38
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.2"
39
+ },
40
+ "devDependencies": {},
63
41
  "engines": {
64
42
  "node": ">=0.10.0",
65
43
  "npm": ">2.7.0"