@liase/core 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # liase (`@liase/core`)
2
2
 
3
- > *Named "liase" — yes, that's a typo of "liaison". The correct spelling has been pointed out. The name has not been corrected. Moving on.*
4
-
5
3
  > :warning: **This package is currently experimental and the API is both poorly documented and likely to change**
6
4
 
7
5
  liase attempts to provide a consistent API to search for, and pull the metadata of, various types of media (images, video, gifs, etc) from a variety of sites and sources.
@@ -1 +1 @@
1
- {"version":3,"file":"generateResponse.d.ts","sourceRoot":"","sources":["../src/generateResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAE9D,wBAAsB,gBAAgB,CACpC,kBAAkB,EAAE,2BAA2B,GAC9C,OAAO,CAAC,eAAe,CAAC,CAoB1B;AA0DD,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,EACtC,OAAO,EAAE,cAAc;;;;;EAgBxB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,cAAc,EACvB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,aAAa,CAAC,GACtE,cAAc,CAahB"}
1
+ {"version":3,"file":"generateResponse.d.ts","sourceRoot":"","sources":["../src/generateResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAE9D,wBAAsB,gBAAgB,CACpC,kBAAkB,EAAE,2BAA2B,GAC9C,OAAO,CAAC,eAAe,CAAC,CAoB1B;AA4DD,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,EACtC,OAAO,EAAE,cAAc;;;;;EAgBxB;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,cAAc,EACvB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,aAAa,CAAC,GACtE,cAAc,CAahB"}
@@ -50,7 +50,7 @@ response, constructorContext, rootActionContext) {
50
50
  }
51
51
  else {
52
52
  if (parsedResponse.page) {
53
- throw Error("has page");
53
+ throw Error('Response has a page property but the request handler paginationType is "none"');
54
54
  }
55
55
  }
56
56
  return parsedResponse;
@@ -60,7 +60,7 @@ function postsToMedia(posts) {
60
60
  const postUrl = `https://bsky.app/profile/${post.uri.split("/").at(2)}/post/${post.uri.split("/").at(-1)}`;
61
61
  if (post.record.embed?.images && post.embed?.images) {
62
62
  if (post.record.embed.images.length !== post.embed.images.length) {
63
- throw Error();
63
+ throw Error(`Bluesky post embed image count mismatch: record has ${post.record.embed.images.length} but view has ${post.embed.images.length}`);
64
64
  }
65
65
  for (let i = 0; i < post.embed.images.length; i++) {
66
66
  const fileCid = post.record.embed.images[i].image.ref.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liase/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,6 +24,10 @@
24
24
  "author": "Callum Gare <callum@gare.au>",
25
25
  "license": "MIT",
26
26
  "type": "module",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/callumgare/liase.git"
30
+ },
27
31
  "dependencies": {
28
32
  "@atproto/api": "^0.13.19",
29
33
  "@refactorjs/http-proxy": "^0.2.14",
@@ -52,7 +56,7 @@
52
56
  "@types/node": "^22.1.0",
53
57
  "@types/pluralize": "^0.0.33",
54
58
  "copy-anything": "^4.0.2",
55
- "semantic-release": "^24.0.0",
59
+ "semantic-release": "^25.0.3",
56
60
  "semantic-release-monorepo": "^8.0.2",
57
61
  "tsc-alias": "^1.8.8",
58
62
  "typescript": "^5.5.3",