@instructure/console 8.10.1 → 8.10.3-snapshot.12

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/console
9
+
6
10
  ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/console
package/LICENSE.md ADDED
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: The MIT License (MIT)
3
+ category: Getting Started
4
+ order: 9
5
+ ---
6
+
7
+ # The MIT License (MIT)
8
+
9
+ Copyright (c) 2015 Instructure, Inc.
10
+
11
+ **Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions.**
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/console",
3
- "version": "8.10.1",
3
+ "version": "8.10.3-snapshot.12+af470a237",
4
4
  "description": "A babel macro made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.1",
27
+ "@instructure/ui-babel-preset": "8.10.3-snapshot.12+af470a237",
28
28
  "@types/babel-plugin-macros": "^2.8.4"
29
29
  },
30
30
  "dependencies": {
@@ -37,5 +37,6 @@
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
- }
40
+ },
41
+ "gitHead": "af470a2374463c265ed1304870b7890fc8bb09a4"
41
42
  }
package/src/console.ts CHANGED
@@ -31,9 +31,7 @@ function getRenderStack() {
31
31
  let renderStack = ''
32
32
  try {
33
33
  // this is so bad to use, that its not even typed :)
34
- renderStack = (
35
- React as any
36
- ).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugCurrentFrame.getStackAddendum()
34
+ renderStack = (React as any).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugCurrentFrame.getStackAddendum()
37
35
  } catch (error) {
38
36
  // log happened outside a react render or couldn't figure out where in the render stack we are.
39
37
  }
@@ -58,6 +56,7 @@ function logMessage(
58
56
  if (process.env.NODE_ENV !== 'production' && !condition) {
59
57
  if (typeof console[level] === 'function') {
60
58
  const renderStack = withRenderStack ? getRenderStack() : ''
59
+ //@ts-expect-error level can be 'constructor' which is not callable
61
60
  console[level](`Warning: ${message}`, ...args, renderStack)
62
61
  } else {
63
62
  throw new Error(`'${level}' is not a valid console method!`)
@@ -1 +1 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../src/console.ts"],"names":[],"mappings":"AAwFA,eAAO,MAAM,KAAK,cACL,OAAO,WACT,MAAM,WACN,OAAO,EAAE,SACuC,CAAA;AAC3D,eAAO,MAAM,IAAI,cAAe,OAAO,WAAW,MAAM,WAAW,OAAO,EAAE,SACrB,CAAA;AACvD,eAAO,MAAM,cAAc,cACd,OAAO,WACT,MAAM,WACN,OAAO,EAAE,SAC2B,CAAA;AAC/C,eAAO,MAAM,IAAI,YAAa,OAAO,EAAE,SAA0B,CAAA;AACjE,eAAO,MAAM,MAAM,eAAgB,OAAO,GAAG,SAAS,WAAW,GAAG,EAAE,SACrC,CAAA;AACjC,eAAO,MAAM,KAAK,aAAc,GAAG,qBAAqB,GAAG,EAAE,SACrB,CAAA;AACxC,eAAO,MAAM,GAAG,aAAc,GAAG,qBAAqB,GAAG,EAAE,SACrB,CAAA"}
1
+ {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../src/console.ts"],"names":[],"mappings":"AAuFA,eAAO,MAAM,KAAK,cACL,OAAO,WACT,MAAM,WACN,OAAO,EAAE,SACuC,CAAA;AAC3D,eAAO,MAAM,IAAI,cAAe,OAAO,WAAW,MAAM,WAAW,OAAO,EAAE,SACrB,CAAA;AACvD,eAAO,MAAM,cAAc,cACd,OAAO,WACT,MAAM,WACN,OAAO,EAAE,SAC2B,CAAA;AAC/C,eAAO,MAAM,IAAI,YAAa,OAAO,EAAE,SAA0B,CAAA;AACjE,eAAO,MAAM,MAAM,eAAgB,OAAO,GAAG,SAAS,WAAW,GAAG,EAAE,SACrC,CAAA;AACjC,eAAO,MAAM,KAAK,aAAc,GAAG,qBAAqB,GAAG,EAAE,SACrB,CAAA;AACxC,eAAO,MAAM,GAAG,aAAc,GAAG,qBAAqB,GAAG,EAAE,SACrB,CAAA"}
package/types/macro.d.ts CHANGED
@@ -7,5 +7,5 @@ export var info: (...args: any[]) => void;
7
7
  export var assert: (...args: any[]) => void;
8
8
  export var debug: (...args: any[]) => void;
9
9
  export var log: (...args: any[]) => void;
10
- export type LogFunc = (isSuppressed: boolean, message: string, ...restParam?: any[]) => any;
10
+ export type LogFunc = (isSuppressed: boolean, message: string, ...restParam?: any[] | undefined) => any;
11
11
  //# sourceMappingURL=macro.d.ts.map