Comments (6)
It looks so, here's the problematic bit:
"scripts": {
"test": "make test && make test-cov",
"blanket": {
"pattern": "//^((?!/node_modules/)(?!/test/).)*$/ig",
"onlyCwd": true,
"data-cover-flags": {
"branchTracking": true
}
},
"travis-cov": {
"threshold": 100
}
},
I'll open a PR to deno_npm
later today.
from deno.
This is now fixed in Deno 1.43.5
from deno.
π The same with npm:joi
:
import joi from "npm:[email protected]";
console.log(joi);
Works with Deno version 1.43.3.
Fails with Deno version 1.43.4:
error: Error getting response at https://registry.npmjs.org/joi for package "joi": invalid type: map, expected a string at line 1 column 18384
at file:///test.ts:1:17
The url https://registry.npmjs.org/joi, does indeed return json that, at the position given in the error message, contains a run-script value that isn't a string, but a json object. It was present in the ancient [email protected]
, removed in the almost as ancient [email protected]
.
- https://github.com/hapijs/joi/blob/v0.1.0/package.json#L30
- https://github.com/hapijs/joi/blob/v0.2.1/package.json
π« Root cause?
I suspect this newly found insensitivity to incorrect package.json
run-scripts, was brought in by this entry in the deno 1.43.4 changelog:
fix(npm): handle null fields in npm registry JSON (#23785)
Following that update, leads to this commit in deno_npm
:
That's how far my understanding goes! I'm not familiar enough with serde in rust to know what the previous default behaviour was, that was apparently overridden here. In general though, for npm compatibility, we might want to be more lenient to parts of json from older versions of modules that we don't even need to use?
from deno.
CC @dsherret can you take a look? Seems like a regression.
from deno.
I think this was caused by denoland/deno_npm#47
from deno.
Thank you so much @dsherret and @bartlomieju!
from deno.
Related Issues (20)
- Publishing JSR pkg that resolves to npm workspace member that's a JSR dep should error?
- deno compile: node addons gets error `missing symbol called`
- Compilation error during cargo install HOT 4
- `node:tty` -> N.WriteStream.prototype.hasColors is not a function
- File with just `+` does not report syntax error HOT 3
- Websocket behaviour change since 1.44.3 HOT 5
- No way to specify specific abstract socket name with `--allow-read/write`.
- Import error on startup when a Fresh project is a workspace member HOT 3
- Non-zero exit code in a test case causes the test to fail since 1.44.0 HOT 1
- `deno test --watch` should always print the full test output HOT 2
- proposal: add `Deno.ConfigFile` HOT 8
- βclient error (SendRequest)β when fetching certain https URLs over proxy HOT 14
- deno publish failed with error: error[excluded-module] when export casing differs from file casing HOT 5
- For loop does not works as expected HOT 2
- Deno APIs missing in Deno runtime HOT 1
- PermissionDenied (EACCES code) when trying to reading files from network-mapped drive
- ERR_MULTIPLE_CALLBACK is thrown during running `test` script in commander.js repo
- deno cache --vendor does not generate an import map HOT 1
- deno cache --vendor does not let me choose a folder name
- node WriteStream leaks in deno tests HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.