@activepieces/pieces-common 0.1.0 → 0.2.0

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@activepieces/pieces-common",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "^0.26.3",
7
7
  "axios": "1.2.4",
8
8
  "nanoid": "^3.3.4",
9
- "@activepieces/pieces-framework": "0.4.0",
10
- "@activepieces/shared": "0.4.0",
9
+ "@activepieces/pieces-framework": "0.5.0",
10
+ "@activepieces/shared": "0.5.0",
11
11
  "tslib": "1.14.1"
12
12
  },
13
13
  "main": "./src/index.js",
@@ -1,3 +1,2 @@
1
1
  import { OAuth2PropertyValue } from "@activepieces/pieces-framework";
2
2
  export declare const getAccessTokenOrThrow: (auth: OAuth2PropertyValue | undefined) => string;
3
- export * from './assertions';
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAccessTokenOrThrow = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const getAccessTokenOrThrow = (auth) => {
6
5
  const accessToken = auth === null || auth === void 0 ? void 0 : auth.access_token;
7
6
  if (accessToken === undefined) {
@@ -10,5 +9,4 @@ const getAccessTokenOrThrow = (auth) => {
10
9
  return accessToken;
11
10
  };
12
11
  exports.getAccessTokenOrThrow = getAccessTokenOrThrow;
13
- tslib_1.__exportStar(require("./assertions"), exports);
14
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/common/src/lib/helpers/index.ts"],"names":[],"mappings":";;;;AAEO,MAAM,qBAAqB,GAAG,CAAC,IAAqC,EAAU,EAAE;IACrF,MAAM,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC;IAEvC,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AARW,QAAA,qBAAqB,yBAQhC;AAEF,uDAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/common/src/lib/helpers/index.ts"],"names":[],"mappings":";;;AAEO,MAAM,qBAAqB,GAAG,CAAC,IAAqC,EAAU,EAAE;IACrF,MAAM,WAAW,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,YAAY,CAAC;IAEvC,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AARW,QAAA,qBAAqB,yBAQhC"}
@@ -1,2 +0,0 @@
1
- export declare function assertNotNullOrUndefined<T>(value: T | null | undefined, fieldName: string): asserts value is T;
2
- export declare const isNotUndefined: <T>(value: T | undefined) => value is T;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNotUndefined = exports.assertNotNullOrUndefined = void 0;
4
- function assertNotNullOrUndefined(value, fieldName) {
5
- if (value === null || value === undefined) {
6
- throw new Error(`${fieldName} is null or undefined`);
7
- }
8
- }
9
- exports.assertNotNullOrUndefined = assertNotNullOrUndefined;
10
- const isNotUndefined = (value) => {
11
- return value !== undefined;
12
- };
13
- exports.isNotUndefined = isNotUndefined;
14
- //# sourceMappingURL=assertions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assertions.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/common/src/lib/helpers/assertions.ts"],"names":[],"mappings":";;;AAAA,SAAgB,wBAAwB,CACtC,KAA2B,EAC3B,SAAiB;IAEjB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,uBAAuB,CAAC,CAAC;KACtD;AACH,CAAC;AAPD,4DAOC;AAEM,MAAM,cAAc,GAAG,CAAI,KAAoB,EAAc,EAAE;IACpE,OAAO,KAAK,KAAK,SAAS,CAAC;AAC7B,CAAC,CAAA;AAFY,QAAA,cAAc,kBAE1B"}